business-objects-sdk

How to obtain the report data from BO with the use of RESTful Web Services?


I would appreciate the sample code (URL String) that returns the data. So far I am able to get the information about the report but I am not able to get the data.


Solution

  • From: http://help.sap.com/saphelpiis_sbo41sp4wi-sdk/frameset.htm?45f89e086e041014910aba7db0e91070.html

    Get the list of data providers:

    GET <webiURL>/documents/{documentId}/dataproviders
    

    Within the result you'll get the DP IDs that look like:

    <id>DP0</id>
    

    Then get the number of "flows" in the DP:

    GET <webiURL>/documents/{documentId}/dataproviders/DP/flows/count
    

    Then get the flow data:

    GET <webiURL>/documents/{documentId}/dataproviders/DP0/flows/0