and more in a single search tool across platforms. Read the announcement here. |
05/24/2022 11:09 PM
05/25/2022 02:46 AM
Hi Meegeaten,
When you look for the Pagination JSON element, The hostname is missing in the nextURL Path.
"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?_links.next.href==null?null: 'https://hostname/' + response.completeResponseMap?_links.next.href}"
}
}
Try out the above recommendation and get back.
05/26/2022 09:38 AM
Hi Rajesh,
I have implemented the suggested recommendation and constructed importAccEnt JSON as below.
Could you please verify on the pagination? Thanks.
{
"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"deleteLinks": true,
"accountThresholdValue": 1000,
"correlateInactiveAccounts": true,
"inactivateAccountsNotInFile": false,
"statusColumn": "customproperty3",
"activeStatus": [
"True"
]
},
"call": {
"call1": {
"callOrder": 0,
"connection": "userAuth",
"stageNumber": 0,
"http": {
"url": "https://test-rightcloud.maxis.com.my/api/v2/users/?attributes=id,user.is-active,user.first-name,user.last-name,is-super-admin,is-devops-admin,is-global-viewer,has-api-access",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "_embedded",
"keyField": "accountID",
"statusConfig": {
"active": ["True"],
"inactive": ["False"]
},
"colsToPropsMap": {
"accountID": "user~dot#username~#~char",
"name": "user~dot#username~#~char",
"status": "user~dot#is-active~#~char",
"displayName": "#CONST#${response.id != null? response.'user.first-name'+' '+ response.'user.last-name' : null}~#~char",
"customproperty1": "user~dot#email~#~char",
"customproperty2": "id~#~char",
"customproperty3": "user~dot#is-active~#~char",
"customproperty4": "is-super-admin~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?_links.next.href==null?null: 'https://test-rightcloud.maxis.com.my/api/v2/users/?attributes=id,user.is-active,user.first-name,user.last-name,is-super-admin,is-devops-admin,is-global-viewer,has-api-access' + response.completeResponseMap?_links.next.href}"
}
}
}
}
}
}
05/26/2022 09:21 PM
Hi Micky,
Please try the following for the Pagination
"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?_links.next.href==null?null: 'https://test-rightcloud.maxis.com.my' + response.completeResponseMap?_links.next.href}"
}