Click HERE to see how Saviynt Intelligence is transforming the industry. |
11/17/2023 02:00 AM
Hello,
I'm trying to create account and push it into serviceNow. I need to compare the start date of the identity to the current date to take an action based on the result.
I have tried cases below but seems that when adding this condition, the payload is pushing the account with hardcode values into serviceNow as following:
Solved! Go to Solution.
11/22/2023 10:59 AM
Hi @KhaoulaD ,
Greetings.
We had a similar query earlier where current date was being compared with enddate as part of a REST json.
Below is the earlier post where we had responses with respect to the requirement. Please take a look at it and try the suggestions provided.
Thanks,
11/22/2023 11:34 AM
11/28/2023 05:25 AM
Hello @Saathvik,
I have tried your suggestion as following:
\"active\":\"${(user?.startdate.format('dd-MM-yy')<(Calendar.instance.format('dd-MM-yy')))?'true':'false'}\"
with the startdate = 12/12/2023 but the result returned is True. It it supposed to be false as 12/12/2023>28/11/2023
Could you please help on that?
Best Regards,
Khaoula DOUHI
12/01/2023 01:39 AM
Hello,
I have been able to sort it out.
The correct syntax to compare dates in Rest JSON is: