cancel
Showing results for 
Search instead for 
Did you mean: 

RESTful API for Webi Report LatestInstance

Former Member
0 Kudos

Hi,

Old to BO and new to RESTful Technology,  I need your expertise ,

My Requirement is refreshing  webi report using BO scheduler after completion of job, I will export that report instance to xml format.

I wrote one curl command, that is not returning the latest instance. Please see my below CURL command, am I need to tag any parameter to this Curl to get latest instance.

curl -G -s -H "accept:text/xml" -H "X-SAP-PVL:en_US" -H 'X-SAP-LogonToken:"localhost:6400@{3&2=9388,U3&2v=localhost:6400,UP&66=60,U3&68=secEnterprise:User,UP&S9=5872,U3&qe=100,U3&vz=d3R3QCu2YlHiHM0D9wNGSU8XiSs1rEPpGDAdTtv9PVI,UP}"' "http://localhost:6405/biprws/raylight/v1/documents/8852" >/tmp/exportxml.xml

Thanks in Advance.

Satya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Satya, the call you're doing opens the document with id = 8852.

If you want to get the last instance of scheduler document 8852, you will have to get the list of schedules from the doc with id 8852, find the id of the last instance with no errors  and do a call with this id.

Regards,

Rogerio

Former Member
0 Kudos

Thanks Rogerio,

How to get list of instance doc id for parent doc id ?  and how to find out with no errors.do we have any API in REST?


After your post I read one more time RESTful API book and googled., still I am not able to find out the API/Property for this.

Regards,
Satya

eric_festinger
Contributor
0 Kudos

hello Satya,

You may use "[GET] .../documents/{documentId}/schedules" (application/xml or application/json) to get the list of all existing (scheduled) instances of the document {documentId}.


Regards,


eric

Former Member
0 Kudos

HI,

You can find the REST API Documentation at help.sap.com

Regards,

Rogerio

Former Member
0 Kudos

Thanks Eric

Answers (0)