07/03/2024 05:22 AM - edited 07/11/2024 01:07 AM
I am trying to import accounts and entitlements from the rest application. I am able import only 50 accounts and 6 entitlements. Here I am importing entitlements from the accounts itself. In the api response header there is a link field, there is no count and starting page info in both response and header. I am providing the json and the sample response and link.
Here is the Postman response:-
Solved! Go to Solution.
07/04/2024 11:16 PM
Please refer to the REST connector guide for JSON construction and supported formats.
07/07/2024 10:15 PM - edited 07/09/2024 07:21 AM
CP31 value is populated in Saviynt Still the all the entitlements are not imported. Now the accounts are imported but the entitlements count is only 13
07/11/2024 01:07 AM
Issue resolved. I am sharing the updated json for your reference.
{
"accountParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"call": {
"call0": {
"callOrder": 1,
"stageNumber": 1,
"http": {
"httpMethod": "GET",
"url": "xxxxx/admin/api/2024-07/users.json",
"httpHeaders": {
"X-xx-Access-Token": "${access_token}",
"Accept": "*/*"
}
},
"listField": "users",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "email~#~char",
"customproperty1": "firstName~#~char",
"customproperty2": "lastName~#~char",
"customproperty3": "email~#~char",
"customproperty4": "permissions[0]~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${headers?.link==null?'':headers?.link?.contains('next')?headers?.link?.split(',')?.size()==2?headers?.link?.split(',')[1]?.replace('<', '')?.replace('>; rel=\"next\"','')?.trim():headers?.link?.split(',')[0].replace('<', '').replace('>; rel=\"next\"','').trim():''}"
}
}
}
},
"acctEntMappings": {
"permissions": {
"listPath": "permissions",
"idPath": "",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID":"#CONST#${return response?.toString()}~#~char",
"entitlement_value":"#CONST#${return response?.toString()}~#~char"
}
}
}
},
"entitlementParams": {
"connection": "userAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"permissions": {
}
}
},
"acctEntParams": {
"entTypes": {
"permissions": {
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"processingType": "acctToEntMapping"
}
}
}
}
}
}