Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Compare Today's date in UPDATE Account JSON

sameer_naik
New Contributor
New Contributor

Hi Team,

In updateaccount JSON for AD, we need to update a specific attribute(extensionAttribute7) if todays date matches with a date in certain customproperty.

I have tried with caledar.getdate function, but it's not working. Could you please help me with the below condition check?

"extensionAttribute7": "${user.customproperty59 should match todays date ?'Secondary':null}",

Thanks & Regards

Sameer

4 REPLIES 4

avinashchhetri
Saviynt Employee
Saviynt Employee

@sameer_naik,

Try the following to see if you can get the current date.

${Calendar.getInstance().getTime().format('yyyy-MM-dd')}

Regards,
Avinash Chhetri

rushikeshvartak
All-Star
All-Star

What is date format stored in CP59. You need to convert string to date


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

sameer_naik
New Contributor
New Contributor

Hi Rushikesh,

CP59 date format is as below

YYYY-MM-DD

1978-04-20

Refer samples

https://forums.saviynt.com/t5/identity-governance/ad-connection-updateaccountjson-date-calculation/m...


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.