Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Rest Connector: concatenate two attribute to pass disable account json

saurabhpad
New Contributor II
New Contributor II

Hi,

We want to concatenate two attribute and pass as single value in disable account json in rest connector.

\"customproperty37\":\"${if(user.enddate==null){'abc'}else{new java.text.SimpleDateFormat('yyyy-MM-dd').format(user.enddate)} {user.customproperty15}}\"

we are getting error while using this syntax is there any way to concatenate two attribute in rest connector json

2 REPLIES 2

Saathvik
All-Star
All-Star

Try below

"customproperty37": "${if(user.enddate==null){'abc'}else{new java.text.SimpleDateFormat('yyyy-MM-dd').format(user.enddate)+user.customproperty15}"

Regards,
Saathvik
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

rushikeshvartak
All-Star
All-Star

"customproperty37": "${if(user?.enddate==null){'abc'}else{Calendar.getInstance().getTime().format('yyyy-MM-dd').format(user.enddate)+user.customproperty15}"


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