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

How to merge 2 attributes in a REST connector

malmenon
New Contributor
New Contributor

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
Honored Contributor
Honored Contributor

@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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.