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

90 days restriction in Create User Request form

Sbachu
New Contributor II
New Contributor II

We want to set the following in 'Create User Request' form 

 

Start Date - should be set to current date or future date 

End Date - Should not be more than 90 days from current day

i tried following for start and end date but this validation did not work 

${(startdate > currentdate-1)}
${(enddate > currentdate-1) && (enddate < currentdate.plus(90))}

 

tried this for end date as per your documentation but this did not work too

  • Validation Condition: ${((EndDate > currentdate) && (EndDate < currentdate.plus(90)))}

can you help us with solution.

9 REPLIES 9

Raghu
Valued Contributor III
Valued Contributor III

@Sbachu  try below:

${startdate >= currentDate() && enddate <= currentDate().plusDays(90)} or

${startdate >= new Date() && enddate <= new Date().plus(90)}


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

Sbachu
New Contributor II
New Contributor II

This throws generic error but not the error note we mentioned in failure message - screen shot attached. 
Also, the same error is appearing even when date is selected as less that 90 days from start date. 

Sbachu_0-1713112554168.png

 

 

https://ideas.saviynt.com/ideas/EIC-I-3423

currently generic message are not supported upvote above idea ticket 


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

Hi @Sbachu ,

For date validation, the validation conditions and failure message work completely fine.

Can you check if the dynamic attribute configurations are right with below reference - (DA: enddate)

Attribute Nameenddate
Attribute LabelEnd date
Attribute TypeDate
Validation Condition${(enddate > currentdate-1) && (enddate < currentdate.plus(90))}
Failure Message<ANYTHING>
User Column
enddate

Working for me: 

PremMahadikar_0-1713128245130.png

Follow the same for start date. Your validation condition is right. Store the DA in startdate.

If it throws 'Error occurred', which means something is wrong with your validation condition or DA configuration.

 

If you find the above response useful, Kindly Mark it as Accept As Solution and hit Kudos

Sbachu_0-1713223828302.png

i am just getting a generic error as attached. 

Sbachu_1-1713223882398.png

 

Share full screenshot


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

Making more clear

Attribute NameDYNenddate
Attribute LabelEnd date
Attribute TypeDate
Validation Condition${(DyNenddate > currentdate-1) && (DYNenddate < currentdate.plus(90))}
Failure Message<ANYTHING>
User Column
enddate

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

@Sbachu , Please share the complete screenshot.

Custom message always works for date validation like said above (Many articles are solved on this - one being - Solved: Dynamic Attributes - ${variable} in Failure Messag... - Saviynt Forums - 26284). Plus, I have shared above the working screenshot of custom message.

'Failure message' is not working/not linked for regex validation only. (This is not related to your request)

 

Raghu
Valued Contributor III
Valued Contributor III

look like DA error.

We can't populate custom error, it will through generic message as mentioned below Rushi and idea also creatted.


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.