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

Dynamic Attribute Validation for Update user request

ejeong
Valued Contributor
Valued Contributor

we are using update user request form for outsourced user and employees. 

Most of our employee has enddate as null until term date is confirmed from HRIS. 

For outsourced worker, since business team is adding too much future date, we would like add validation. 

${(ContractEndDate-currentdate <= 365)}

it is working as expected when outsourced worker type is selected, however, if employee with null enddate try to request update user. They are getting error like below. 

 

ejeong_0-1662011874577.png

 

I think this is because they have null in end date. Could you please let me know how to modify the validation to accept enddate = null as well? 

 

Thanks

 

1 REPLY 1

rushikeshvartak
All-Star
All-Star

${(null == ContractEndDate && 'Employee'.equals(accountType)) || (null != ContractEndDate && ContractEndDate >= currentdate && 'Contractor'.equals(accountType))}

Here accountType and ContractEndDate are the dynamic attributes.

Follow above syantax


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