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

Data Validation Condition for Endpoint Dynamic Attribute

SnehalW
New Contributor II
New Contributor II

Hi,

We have a dynamic attribute named  EndDate on the request form. We are trying to achieve a data validation control where EndDate should not be more than one year & should not be past dated.

Any suggestions on how this can be achieved?

Thank you,

Snehal

5 REPLIES 5

smitg
Regular Contributor III
Regular Contributor III

Hi @SnehalW 

Can you try with below expression
${((EndDate > currentdate) && (EndDate < (currentdate+364)))}

Thanks,
Smitha

SnehalW
New Contributor II
New Contributor II

Hi,

Where can we put this condition? This is the dynamic attribute created for endpoint and not for  create/update user forms.

SnehalW_0-1693307587783.png

 

Thank you,

Snehal

armaanzahir
Valued Contributor
Valued Contributor

Hi @SnehalW ,

 

Can you configure the validation condition on the dynamic attribute as below and check:

 

${((EndDate >= currentdate) && (EndDate < currentdate.plus(365)))}

 

Here enddate is the dynamic attribute.

Solved: Dynamic Attributes - ${variable} in Failure Messag... - Saviynt Forums - 26284

Data Validation Condition - Dynamic Attribute - Saviynt Forums - 7734

Default values and Validation conditions for Date ... - Saviynt Forums - 8085

Regards,
Md Armaan Zahir

SnehalW
New Contributor II
New Contributor II

Hi,

Where can we put this condition? This is the dynamic attribute created for request type -Service Account and not for  create/update user forms.

SnehalW_0-1693307816197.png

Thank you,

Snehal

armaanzahir
Valued Contributor
Valued Contributor

@SnehalW 

The validation condition is not available at the endpoint/service account form. 

The only type of validation supported is a regex validation and that too for string,largettext,password,number attribute types.

Please raise an enhancement request in ideas portal. (Saviynt Ideas Portal)

Regards,
Md Armaan Zahir