Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Best way to Import N number of entitlement types in a REST import

Aditya
New Contributor
New Contributor

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

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

You need to hardcode each entitlement type. There is no alternative or looping can be done in REST connector


Regards,
Rushikesh Vartak
If you find this response useful, kindly consider selecting 'Accept As Solution' and clicking on the 'Kudos' button.

Vedanth-BK
Regular Contributor
Regular Contributor

@Aditya In REST Connector, specifying the ET is mandatory. Creating ET on the run is not supported 

Thank you
Vedanth B.K