How to pass parameters (Input Control) in XML while scheduling Report from rest_v2?

I see the example of Json code to schedule report in Web Service Guide. I tried to create equivalent XML code to pass values for input controls but its not working. Below is my code..
 
<source>
<reportUnitURI>/reports/Test_Report</reportUnitURI>
<parameters>
<parameterValues>
<name>parameter1</name>
<value>Done</value>
</parameterValues>
</parameters>
</source>

 

jigar.patel's picture
Joined: Jan 30 2015 - 12:21am
Last seen: 2 years 10 months ago

1 Answer:

I did this and it worked...

<source>
<parameters>
<parameterValues>
<entry>
<key>parameter1</key>
<value xsi:type='xs:string' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>ASDF</value>
</entry>
</parameterValues>
</parameters>

<reportUnitURI>/reports/Test_Report</reportUnitURI>

</source>

jigar.patel's picture
Joined: Jan 30 2015 - 12:21am
Last seen: 2 years 10 months ago
Feedback