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

sk
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

rushikeshvartak
All-Star
All-Star

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