Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/02/2024 05:14 AM
In the connection that I am creating I need to pass enddate or termdate if they are available . Otherwise "" or " " is getting accepted when I am trying to send using Postman . But in connector I am facing the following problem :-
{\"objectTypeAttributeId\":\"214\",\"objectAttributeValues\":[{\"value\":\"${if(user.enddate==null && user.termdate ==null){\" \"}else if(user.enddate==null){user.termDate.format('yyyy-MM-dd')}else{user.enddate.format('yyyy-MM-dd')}}\"}]}
{\"objectTypeAttributeId\":\"214\",\"objectAttributeValues\":[{\"value\":\"${if(user.enddate==null){user.termDate.format('yyyy-MM-dd')}else{user.enddate.format('yyyy-MM-dd')}}\"}]}
Can anyone please help me with this ?
07/02/2024 05:38 AM
Try this @aibasu
{\"objectTypeAttributeId\":\"214\",\"objectAttributeValues\":[{\"value\":\"${if(user.enddate==null && user.termdate ==null){\"\"}else if(user.enddate==null){user.termDate.format('yyyy-MM-dd')}else{user.enddate.format('yyyy-MM-dd')}}\"}]}
07/02/2024 06:19 AM
@aibasu try below
{\"objectTypeAttributeId\":\"214\",\"objectAttributeValues\":[{\"value\":\"${user.enddate == null && user.termdate == null ? '' : (user.enddate == null ? user.termDate.format('yyyy-MM-dd') : user.enddate.format('yyyy-MM-dd'))}\"}]}
07/02/2024 11:36 AM
{
"objectTypeAttributeId": "214",
"objectAttributeValues": [
{
"value": "${if(user.enddate == null && user.termdate == null) { '' } else if(user.enddate == null) { user.termdate.format('yyyy-MM-dd') } else { user.enddate.format('yyyy-MM-dd') }}"
}
]
}
07/04/2024 05:55 AM
Hello All ,
Thanks a lot for trying to help me with this but none of the solutions are working as expected and are throwing errors .
Thanks !
07/04/2024 07:27 AM
What is error
Could you kindly provide a detailed snapshot of the information extracted from the logs, encompassing errors and other pertinent functionality details encountered during the execution of this process? Your assistance in furnishing this information would greatly aid in the analysis and resolution of any issues .
‼️‼️⚠️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.⚠️‼️‼️