how create schedule to trigger notification expiry for due or over due using flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2025 07:21 AM
hi,
I need a help , how to create the schedule to trigger notification expiry for due or over due using flow designer,
how the fetch the record and condition for the day (eg:7 days or 7days overdue) how to calculate those condition. How to trigger the event trigger notification.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2025 07:59 AM
Hi @Arun_Manoj
An option is use schedule job periodically
See the Ankur answer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2025 08:09 AM
This can be done with schedule job but with flow, try below:
Create a flow designer and "Add Trigger" as "Schedule". Select the schedule as per your requiremnt.
Then you need to create an action and call it in your flow after the trigger.
Example of script from incident table:
var equery ="due_date<javascript:gs.beginningOfLast7Days()" ; // 7 days ago
var equery ="due_dateBETWEENjavascript:gs.beginningOfToday()@javascript:gs.endOfNextWeek()" ; // 7 days ago
var inc = new GlideRecord('incident');
inc.addEncodedQuery(equery);
inc.query();
while(inc.next()){
gs.eventQueue('event_name' , current , inc.called_id); // create a event in event registry and add here.
}
After this create a notification and the trigger of the notification should be the even create above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2025 08:20 AM
so what did you start with and where are you stuck?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2025 08:22 AM - edited 09-06-2025 08:29 AM
Try using below,
Once you have the custom action, you can can compare the duration condition and if it evaluates to true, you can trigger notification action
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
