Skip to Content
0

POSTing rows to a Transient Report Instance via REST API's OData protocol with JSON?

Oct 12, 2016 at 08:49 PM

49

avatar image

The documentation defines the REST interface for POSTing Rows to a Transient Report Instance as follows:

POST  http://<baseURI>/infostore/.../rpt/<reportID>/data.svc/Rows 
    POST a row to an instance of a report. 

As the documentation states, I first create a Transient Report Instance with "supressData=true". Once this is data-less report is created, I make a POST request to the above REST endpoint, attempting to pass a list of JSON objects (Row entities, in OData-speak) that will define the transient report's data source.

I had to guess at the structure of this request's body, and all attempts have failed. The documentation shows how to post one Row at time, but only through XML.

In need to post several rows, and to do so via JSON.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers