cancel
Showing results for 
Search instead for 
Did you mean: 

Values saved in a prompt

Former Member
0 Kudos

Hello Friends,

I have a requirement wherein I need to identify whether the prompt(s) of a Web Intelligence document have any saved value or not. Can I get that info using RESTful web services?

Regards,

-CF

Accepted Solutions (1)

Accepted Solutions (1)

former_member197386
Active Contributor
0 Kudos

Hello Chris,

Does the hint provided by Eric helps you?

Regards,

Anthony

Former Member
0 Kudos

Hi Anthony,

Not yet, I have been able to get the list of data providers in the Webi document but I am still struggling to get the list of prompts and the values stored in them.

It would really be very helpful to me if you can let me know what i need to do after retrieving the list of data providers.

Regards,

-Chris

eric_festinger
Contributor
0 Kudos

hi Chris,

You don't even need to get the list of data providers (unless you want to process separately each data provider's prompts).

To get the list of parameters (prompts, contexts, etc.) of a Web Intelligence document:

GET .../documents/{docId}/parameters

with Accept-Type: application/xml or application/json

eric

former_member197386
Active Contributor
0 Kudos

Yes,

GET .../documents/{docId}/parameters is the API you need.


In the response, you will find all prompts (and also context and SAP Variable if any exists), for each parameter, previous and default answers are returned.


Is it OK?


Regards,

Anthony

Former Member
0 Kudos

Thank you so much Eric and Anthony.

I got the info I required using the steps you suggested.

Regards,

-CF

Answers (1)

Answers (1)

eric_festinger
Contributor
0 Kudos

hi Chris,

You may find the default values (if any) in //parameter/answer/info/values, and the previous values (if any) in //parameter/answer/info/previous.

Does this answer to your question or were you looking for something else?

eric