Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/20/2024 05:13 AM
Dear Team,
I am reaching out for assistance with a validation query related to user attributes. Specifically, I need to ensure that the user's start date is later than August 19, 2024. Additionally, if the user's current date exceeds 60 days from the start date, the relevant attribute should only be visible to the manager, not the user.
I am attempting to implement the following validation logic, but I'm encountering some difficulties. Could you please assist me in resolving this?
${((u.startdate => ) && (currentdate - u.startdate >= 60))}
${((startdate > 19 AUG 2024) && (u.startdate < currentdate.plus(60)))}
Your guidance on this matter would be greatly appreciated
Karan
08/20/2024 05:16 AM
is dateparse working ?
${(u.startdate > Date.parse("19 AUG 2024")) && ((currentdate - u.startdate) > 60)}
08/20/2024 05:21 AM
${(startdate > '2024-08-19' && currentdate > startdate.plus(60))}
08/20/2024 10:58 PM
Stiil its not working can you help us to resolving the issue
08/21/2024 06:39 AM
Could you kindly provide a detailed snapshot of the information extracted from the logs, encompassing errors and other pertinent functionality details encountered during the execution of this process? Your assistance in furnishing this information would greatly aid in the analysis and resolution of any issues .
‼️‼️⚠️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.⚠️‼️‼️
08/21/2024 05:51 PM
@Karan07
Can you try these.
${if (u.startdate > new Date().parse('dd MMM yyyy', '19 AUG 2024'))}
${if ((currentDate - u.startdate) >= 60)}
08/21/2024 11:05 PM
please find attached SS
08/22/2024 12:03 AM
Does your dynamic attribute name is startdate ?
08/23/2024 01:22 AM
Udynstartdate
08/23/2024 01:23 AM
while getting this error
${(Udynstartdate > currentDate().parse('dd-MMM-yyyy', '2024-08-19'))}
08/23/2024 05:41 AM