We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

Rest Connector Pagination in Import Account JSON

yogendragautam
New Contributor II
New Contributor II

Hi,

 

Postman response on a get User request is as shown below.

 

 ],
    "pageable": {
        "sort": {
            "unsorted": true,
            "sorted": false,
            "empty": true
        },
        "pageNumber": 0,
        "pageSize": 20,
        "offset": 0,
        "paged": true,
        "unpaged": false
    },
    "totalElements": 37,
    "last": false,
    "totalPages": 2,
    "first": true,
    "size": 20,
    "number": 0,
    "sort": {
        "unsorted": true,
        "sorted": false,
        "empty": true
    },
    "numberOfElements": 20,
    "empty": false
}
 
Please assist on how to handle pagination for such a response.
2 REPLIES 2

rushikeshvartak
All-Star
All-Star

Share your current json


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

yogendragautam
New Contributor II
New Contributor II

Here you go:

 

{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"deleteLinks": true,
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"listField": "content",
"keyField": "name",
"http": {
"url": "https://gtqaapi.multibankportal.com/auth/oauth/token",
"httpMethod": "POST",
"httpContentType": "application/x-www-form-urlencoded",
"httpParams": {
"grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
"assertion": "${access_token}",
"company_id": "COM003763"
},
"httpHeaders": {
"Authorization": "Basic ******************************************************"
},
"successResponses": {
"statusCode": [
201,
200
]
}
}
},
"call2": {
"callOrder": 1,
"stageNumber": 1,
"listField": "content",
"keyField": "name",
"http": {
"url": "https://gtqaapi.multibankportal.com/auth/v1/companies/COM003763/users",
"httpMethod": "GET",
"httpContentType": "application/json",
"httpHeaders": {
"Authorization": "Bearer ${response.call1.responseText.access_token}"
}
},
"colsToPropsMap": {
"accountID": "userId~#~char",
"name": "username~#~char"
},
"successResponses": {
"statusCode": [
200,
201
]
}
}
}
}
}