I’m trying to get all requests. I found
this post and tried to do it the same way.
The URL I’m sending with HTTP GET method is
…/sdpapi/request/?OPERATION_NAME=GET_REQUESTS&TECHNICIAN_KEY=XXX…XXX&INPUT_DATA=<Details><parameter><name>from</name><value>0</value></parameter><parameter><name>limit</name><value>25</value></parameter><parameter><name>filterby</name><value>All_Requests</value></parameter></Details>
The response body is:
<operation name="GET">
<result>
<status>Failed</status>
<message>Error when performing - GET - null</message>
</result>
</operation>
If using HTTP POST with the same URL the response body is:
<operation name="POST">
<result>
<status>Failed</status>
<message>Error when adding request details - null</message>
</result>
</operation>
changing the URL to get one specific request by its ID is no problem and works.
HTTP GET and URL:
…/sdpapi/request/12597/?OPERATION_NAME=GET_REQUEST&TECHNICIAN_KEY=XXX…XXX&INPUT_DATA=<Details><parameter><name>from</name><value>0</value></parameter><parameter><name>limit</name><value>25</value></parameter><parameter><name>filterby</name><value>All_Requests</value></parameter></Details>
Response:
<operation name="GET">
<result>
<status>Success</status>
<message>Request updated successfully</message>
</result>
<details>
<workorderid>12597</workorderid>
…
</details>
</operation>
Where is the problem with getting all the requests?