- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 02:55 AM
I need to send notification 15 minutes before due date, is there any possible way to create a notification which triggers 15 minutes before due date for problem tasks.
Thanks,
Shiva
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 03:19 AM
You can use eventQueueScheduled() which will create event same as eventQueue, Unlike eventQueue in eventQueueScheduled() we have 5 parameters and the 5th paramater will the date at which need to send the notification. You can write a business rule when due date changes and send that date which is 15 minutes before the current.due_date as 5th parameter.
Please mark my Solution as Accept and give the thumbs up, if you find it Helpful.
Thanks,
Harish Kota
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 03:02 AM
are you using flow designer for this?
Why not use Reminder table for this since your table extends task?
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
07-31-2023 03:12 AM
Hello @Shiva Kumar2
You can create a schedule job for this.
Plz refer the below link for more detail description :-
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 03:19 AM
You can use eventQueueScheduled() which will create event same as eventQueue, Unlike eventQueue in eventQueueScheduled() we have 5 parameters and the 5th paramater will the date at which need to send the notification. You can write a business rule when due date changes and send that date which is 15 minutes before the current.due_date as 5th parameter.
Please mark my Solution as Accept and give the thumbs up, if you find it Helpful.
Thanks,
Harish Kota
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 03:34 AM
var time = new GlideTime();
time.setValue('00:15:00');
var dueDate = new GlideDateTime(current.due_date);
dueDate.subtract(time); // subtracted 15 minutes from due date
gs.eventQueueScheduled("<event.name>", current, gs.getUserID(), gs.getUserName(), dueDate);//give your event name