Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/21/2024 05:24 AM - edited 06/21/2024 05:38 AM
Hi Guys,
In REST connector we have to hard code the entitlement type section for each entitlement type in the "entitlementParams" section of ImportAccountEntJSON for ex:
"entitlementParams": {
"connection": "oauthConnection",
"processingType": "SequentialAndIterative",
"entTypes": {
"Role1": {
"entTypeOrder": 1,
"call": {
"call1": {
"callOrder": 0,
"http": {
"url": "@HOSTNAME@/api/v2/custom_roles.json",
"httpHeaders": {"Authorization": "${access_token}"},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "custom_roles",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "id~#~char",
"entitlement_value": "name~#~char"
}}},
"Role2": {}
}}
For importing multiple entitlement types we have to add above section for each entitlement type.
If we have 10 ET then we have to add 10 sections in Json.
Is there any way to import these number of entitlement types in an efficient way or dynamic way.
And if in future new Entitlement types are added it should import automatically, there should not be any need to add the above json section for each and new entitlement types.
Thanks,
Aditya
06/21/2024 06:01 AM
You need to hardcode each entitlement type. There is no alternative or looping can be done in REST connector
06/24/2024 02:41 AM
@Aditya In REST Connector, specifying the ET is mandatory. Creating ET on the run is not supported