PARTNERS - Please join us for our upcoming webinar:
Leveraging Intelligent Recommendations for Operational Transformation.
AMS Partners Click HERE | EMEA/APJ Click HERE

How to merge 2 attributes in a REST connector

malmenon
New Contributor II
New Contributor II

Hi Team,

We have a requirement where we need to merge 2 attributes in a REST connector. 

For example, in the below portion of the json, we can see that displayname in Saviynt is mapped to displayname from endpoint. I need to modify it so that displayname is imported as role + region. 

"displayname": "displayName~#~char",
"customproperty2": "role~#~char",
"customproperty3": "region~#~char",

I would like to know how json should be modified in order to update the displayname in Saviynt.

Thanks

 

 

2 REPLIES 2

Raghu
All-Star
All-Star

@malmenon  try like below

"displayname": "displayName~#~char",
"customproperty2": "role~#~char",
"customproperty3": "region~#~char",
"customproperty4":"#CONST#${String d1 = response.role; String d2 =response.region; ret = d1 + \" \" + d2; return ret}~#~char"

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

 


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

rushikeshvartak
All-Star
All-Star

"customproperty4":"#CONST#${String d1 = response.role; String d2 =response.region; ret = d1 + \" \" + d2; return ret}~#~char"

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

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.