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

variable + string in entitlementID map

Robbe_Cronos
Regular Contributor II
Regular Contributor II

Hello, we are trying to map imported entitlements from a rest connector. 

The entitlementID should be a combination of a variable we get back (id) + a string of word (_Owner_50).

How can we concatenate these 2? We have tried something like this but none of these give us an entitlementID back.

 

"entitlementID": "id + \"_Owner_Test\"~#~char"
"entitlementID": "${response.id + \"_Owner_test\"}~#~char" --> This gives us the correct format back if we use it in CUSTOMPROPERTIES, but not in entitlementID.
2 REPLIES 2

rushikeshvartak
All-Star
All-Star

Update below condition as per your requirement & check if its working

"customproperty1": "#CONST#${new Date(Calendar.getInstance().getTimeInMillis()+(15*86400000)).format('yyyy-MM-dd')}~#~char"

 


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

Belwyn
Saviynt Employee
Saviynt Employee

Hi @Robbe_Cronos 

Try something like below,

"entitlementID": "#CONST#${String d1 = response.id; String d2 = \"_Owner_test\"; ret = d1 + \" \" + d2; return ret}~#~char"

You also can refer to previous forum posts on this similar topic. 

https://forums.saviynt.com/t5/identity-governance/rest-string-functions/m-p/9214#M1599

Let's know if this helps.

Thanks & Regards, 
Belwyn.