- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 02:16 AM
I have one table called 'Issues' has a field called 'due_date' having field type 'date' and another field called 'assigned_to' having 'reference' field type referes to 'sys_user' table, so I want to send an email to a person who is present in 'assigned_to' field one day before the 'due date'.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 02:32 AM
Your scheduled job script would be like below:
var issueGr = new GlideRecord('u_issue'); // replace yourbtable name
issueGr.addEncodedQuery('due_dateONTomorrow@javascript:gs.beginningOfTomorrow()@javascript:gs.endOfTomorrow()'); // replace your due date field name
issueGr.query();
while(issueGr.next()){
gs.eventQueue('reminder.event_name',issueGr,''); // add event name as per your configuration.
}
Check below links to learn more about event based notification.
https://www.youtube.com/watch?v=YSZFiumGXj4
https://www.youtube.com/watch?v=K4J9oay7Zwk
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 02:21 AM
You can use the flow designer for this.
The good link
https://www.servicenow.com/community/developer-forum/flow-designer-reminder-emails/m-p/2413189
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 02:26 AM
You can use scheduled job and event based notifications.
In your script make a query to 'Issue' table and filter records where Due date is tomorrow.
For all records trigger event based notification.
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 02:32 AM
Your scheduled job script would be like below:
var issueGr = new GlideRecord('u_issue'); // replace yourbtable name
issueGr.addEncodedQuery('due_dateONTomorrow@javascript:gs.beginningOfTomorrow()@javascript:gs.endOfTomorrow()'); // replace your due date field name
issueGr.query();
while(issueGr.next()){
gs.eventQueue('reminder.event_name',issueGr,''); // add event name as per your configuration.
}
Check below links to learn more about event based notification.
https://www.youtube.com/watch?v=YSZFiumGXj4
https://www.youtube.com/watch?v=K4J9oay7Zwk
Thanks
Anil Lande