Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/22/2024 08:42 AM
Hi Team ,
we have a REST application where we are getting values as "values" : ["Accountname","alias","email","firstname","lastname","Statuskey",[{"id": "(entitlementt id)","entityid" : 9000]
we are able to import entitlements in the entitlement mapping by using the UserGroup API , however we are not able to get the association between accounts & entitlements
we are also able to get the info in cp31 as the accentmapping , but still the association is not being imported from logs we are facing error as Exception evaluating property 'id' for java.util.ArrayList, Reason: groovy.lang.MissingPropertyException: No such property: id for class: java.lang.String"
08/22/2024 08:58 AM
Hi @RizvanaShaik , can you share ss of cp31 value been stored and postman response and json you are using current.
08/22/2024 09:08 AM
08/23/2024 05:53 AM
Please find the below shared details
{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {},
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "<URL here>",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "rows",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "object.id~#~char",
"name": "values[0]~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?.next_page==null?null:response.completeResponseMap.next_page}"
}
}
}
}
},
"entitlementParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"Group": {
"entTypeOrder": 0,
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "<URL here>",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "rows",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "object.id~#~char",
"entitlement_value": "values[0]~#~char"
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?.next_page==null?null:response.completeResponseMap.next_page}"
}
},
"disableDeletedEntitlements": true
}
}
}
}
},
"acctEntParams": {
"connection": "acctAuth",
"entTypes": {
"Group": {
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"processingType": "httpAcctToEnt",
"http": {
"httpHeaders": {
"Authorization": "${access_token}"
},
"url": "<URL here>",
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "",
"acctKeyField": "accountID",
"entKeyField": "entitlementID",
"entIdPath": "rows[*].values[9][*].id",
"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?.next_page==null?null:response.completeResponseMap.next_page}"
}
}
}
}
}
}
}
}
08/23/2024 06:07 AM
"entIdPath": "values.id",
08/23/2024 07:26 AM
HI @rushikeshvartak, the recommendation you specified didn't work. below is the CURL command we have in our postman
curl --location 'https://<URL> here' \
--header 'Authorization: Basic xyzabc' \
--header 'Cookie: xyzabc' \
--data ''
08/23/2024 07:28 AM
Provides api response in text format
08/26/2024 04:39 AM
Please find the below sample api response in text format
{
"rows": [
{
"object": {
"id": "0", - AccountID
"entityId":
},
"values": [
"Test", - AccountName
"",
"",
"",
"",
"",
"1",
"",
"",
[
{
"id": "1", - Entitlement ID
"entityId":
}
]
]
}
]
}
08/26/2024 05:51 AM
"entIdPath": "rows.values[9].id",
08/26/2024 09:40 AM
Hi @rushikeshvartak, the recommendation you specified the above didn't work.
08/26/2024 10:20 AM
rows[*].values[9].id
08/27/2024 02:09 AM
@rushikeshvartak Tried with the above recommendation, still it is not working.
08/26/2024 09:21 PM
@RizvanaShaik
Can you try this .
"entitlementID": "values[9][0].id~#~char"
08/27/2024 02:10 AM
@stalluri tried with the above recommendation as passing the "entitlementID": "values[9][0].id~#~char" in the acctEntMappings, still it is not working.
08/27/2024 06:55 AM
@RizvanaShaik
Can you try these
{ "listField": "rows[*].values[9]", "keyField": "accountID", "colsToPropsMap": { "entitlementID": "id~#~char" } }
or
{
"listField": "rows",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "object.id~#~char",
"name": "values[0]~#~char",
"entitlementID": "values[*].id~#~char"
}
}