Triggering email validation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 05:01 AM
Hi,
I have a requirement .
lets assume a user XYZ who is working in a shift. if the user XYZ works for more than x days in same shift , a notification should trigger to his superior .
Please help me if you have any solution.
Thanks ,
Waseem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 05:29 AM - edited 09-07-2023 05:35 AM
Hi @ Mohammedwaseem you can achieve it with the below solution
1.Create a field on the table called as "Shift assignment date" with GlideDate type.
2.Update the value of it with a Business rule having a trigger when ever the shift field value changes it updates with the current date in the"Shift assignment date"field.
3.Create a schedule Job runs on daily basis and it validates the duration between the "Shift assignment date" and the current date in the system.If it matches the condition of the X days.Then you can trigger an event by passing the user sys_id and User.superior.sys_id from there you can notify the users superior.
You can achieve it by this way
Thanks & Regards,
Eswar Chappa
Mark my answer correct and Helpful if this helps you 😀