Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Validating a date comparison between attribute value and current date.

Santosh
Regular Contributor
Regular Contributor

Hello there,

I am working on a user update rule, where I need to trigger a re-hire notification if the user's start date is updated and their original hire date stored on CP11 is within 6 months of current date, I tried few things and stumbled upon a similar query on forum, could you please validate this below,

users.statuskey = 1 AND ##users.startdate isupdated## AND a.customproperty11 +180, <= CURDATE()

6 REPLIES 6

NM
Esteemed Contributor
Esteemed Contributor

Hi @Santosh , use this 

a.statuskey = 1 AND ##a.startdate isupdated## AND DATEDIFF(CURDATE(),a.customproperty11)<=180


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

Santosh
Regular Contributor
Regular Contributor

tried this on data analyzer, got a syntax error as well on preview on technical rule.

NM
Esteemed Contributor
Esteemed Contributor

@Santosh ,

a.statuskey = 1 AND ##a.startdate isupdated## AND (DATEDIFF(NOW(),a.customproperty11)<=180)

wont't work in data analyzer check in preview of technical rule.


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

Santosh
Regular Contributor
Regular Contributor

Getting the 'Invalid condition' on the Technical rule preview mode with above condition.

😞

isupdated does not comes in technical rule. You need to use User update rule


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Santosh
Regular Contributor
Regular Contributor

Thank you for the response, I was trying to validate it before pushing it to prod, let me test a rehire scenario on lower environment and see how it goes.