Hi IdentityNow Experts ,
here’s one target we’ve configured through Web Services Connector. It supports queryToken for pagination. This is how it works:
- Request body of first call would not have queryToken and it will return 100 records.
- Next request body would have queryToken received from first response body.
- Calls will continue until we stop receiving queryToken in response body.
- Root Path to get the accounts is QueryResult/results but query token is under QueryResult so not able to get queryToken in response as the Root path is QueryResult/results. Sample respone is as below - {
“@type”: “QueryResult”,
“queryToken”: “*****”,
“result”: [
{
“@type”: “AccountUserRole”,
“id”: “id1”,
“accountId”: “abc”,
“userId”: “uerid1”,
“roleId”: “roleid1”,
“lastName”: “”,
“firstName”: “”
},
{
“@type”: “AccountUserRole”,
“id”: “id1”,
“accountId”: “abc”,
“userId”: “userid1”,
“roleId”: “roleid2”,
“lastName”: “”,
“firstName”: “”
},
{
“@type”: “AccountUserRole”,
“id”: “id2”,
“accountId”: “abc”,
“userId”: “userid2”,
“roleId”: “roleid3”,
“lastName”: “”,
“firstName”: “”
},
{
“@type”: “AccountUserRole”,
“id”: “id2”,
“accountId”: “abc”,
“userId”: “userid2”,
“roleId”: “roleid1”,
“lastName”: “”,
“firstName”: “”
}
“numberOfResults”: 435
}
Can you please suggest how the pagination will work in this case?
