Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Importing data from different pages using REST based connector

rohan32
New Contributor
New Contributor
We are integrating an application with Saviynt . The data that we are getting from the API is not coming up as part of single response, but in different pages.
When we run it once, the <OverallStatus>More data Available</OverallStatus>
and when we run it for the second time , it says the overall result as OK.
As per the REST connector guide, it says to use a concept of pagination to go to the next page. But for our application , we are not getting the next page URL in the response of the first call.
The only thing we are getting is the request ID that can be used to make the next call :
<wsse:Security>
<wsu:Timestamp wsu:Id="Timestamp-8942b4c1-8ccd-461c-a439-26cbed1d01fa">
<wsu:Created>2022-11-17T12:25:58Z</wsu:Created>
<wsu:Expires>2022-11-17T12:30:58Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</env:Header>
<soap:Body>
<RetrieveResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<OverallStatus>More Data Available</OverallStatus>
<RequestID>2785da29-b041-4485-bff0-e60d5df18850</RequestID>
<Results xsi:type="AccountUser">
Upon reading some articles (https://salesforce.stackexchange.com/questions/88128/continuerequest-within-the-soap-envelope) , we came accross an attribute that can be used in the second call to get the data from the first call :
<ContinueRequest>requestID</ContinueRequest>
Here we need to specify the request ID dynamically from the first call.
We have tried using the syntax : <ContinueRequest>${call1?.response?.soap:Envelope.soap:Body.RetrieveResponseMsg.RequestID}</ContinueRequest> in the second call but it is not working .
Can you please let us know what syntax can be used or if there another way to handle this scenario?
0 REPLIES 0