06-06-2022
09:14 PM
- last edited on
06-07-2022
09:02 AM
by
Dave
Hi,
We are having an integration whereby the pagination information is limited, having only total count of the list.
Can Saviynt able to perform the pagination by only using the information?
Below is the sample data from get Account api call.
Sample Response
{
"code": 0,
"msg": "success",
"time": 1649407227,
"eventTime": "2022-04-08T08:40:27.000+00:00",
"data": {
"total": 57.0,
"list": [
{
"name": "XXX XXX XXX",
"email": "XXXXX@maxis.com.my",
"mobile": "XXXXX",
"role_id": "61ca672402170764e573ea52",
"status": 4.0,
"maxis_id": "NSABARI",
"create_time": "2022-04-06T14:11:31+08:00",
"update_time": "2022-04-06T14:42:14+08:00"
},
{
"name": "XXX XXX XXX",
"email": "XXXX@maxis.com.my",
"mobile": "XXXXXXXXX",
"role_id": "61ca672402170764e573ea52",
"status": 4.0,
"maxis_id": "GKUMARA",
"create_time": "2022-04-05T17:23:15+08:00",
"update_time": "2022-04-05T18:39:03+08:00"
},
{
"name": "XXX XXX XXX",
"email": "XXXX@maxis.com.my",
"mobile": "XXXXXXXXXX",
"role_id": "61b838916bd51f4bc6258175",
"status": 1.0,
"maxis_id": "MJLOK",
"create_time": "2022-04-05T13:18:50+08:00",
"update_time": "2022-04-05T17:19:11+08:00"
}
]
}
}
[This post has been edited by a moderator to remove personally identifiable information (emails, names, and phone numbers) to abide by the Saviynt Community Terms of Use and Participation Guidelines.]
06-07-2022 07:14 AM
Hello,
Does the api have a batch size of what can be the maximum result sent in one call?
06-08-2022 01:49 AM
Hi,
The above is the only payload response that we are getting from the application but we do pass a fixed page number and page size attribute in the URL on making importAccountEntJSON call.
"url": "xxxxxxxx.com&pageNo=1&pageSize=10",
06-08-2022 09:22 AM
Hello,
You May use the following :
"pagination":{
"page":{
"pageSizeParam":"pageNo",
"pageSize":10,
"pageRecordCount":10,
"pageNumberParam":"pageSize",
"totalCountPath":"data.total",
"firstPageNumber":1
}
}