08/18/2023 01:15 AM
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
08/18/2023 11:31 AM
Try below
"customproperty37": "${if(user.enddate==null){'abc'}else{new java.text.SimpleDateFormat('yyyy-MM-dd').format(user.enddate)+user.customproperty15}"
08/19/2023 03:47 PM
"customproperty37": "${if(user?.enddate==null){'abc'}else{Calendar.getInstance().getTime().format('yyyy-MM-dd').format(user.enddate)+user.customproperty15}"