Skip to Content
0
Former Member
Oct 12, 2016 at 08:49 PM

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

113 Views Last edit Jun 26, 2018 at 09:57 PM 2 rev

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.