Leveraging Intelligent Recommendations for Operational Transformation. AMS Partners Click HERE | EMEA/APJ Click HERE |
04/17/2024 08:07 AM
Hi Team,
We are using the below mentioned logic for account expires in the update account json. But this logic fails if both termDate and enddate is null. Can you please help us with a logic wherein it will update the account expires attribute to '0' if enddate and termdate is null.
"accountExpires": "${if(user.termDate!=null && user.termDate!='') {10000*(user.termDate.getTime() + 11644473600000)} else {10000*(user.enddate.getTime() + 11644473600000)}}"
Regards,
Prajna Paramita Mahapatro
04/17/2024 05:50 PM
"accountExpires": "${(user.termDate != null && user.termDate != '' ? 10000 * (user.termDate.getTime() + 11644473600000) : (user.enddate != null && user.enddate != '' ? 10000 * (user.enddate.getTime() + 11644473600000) : 0))}"