I need to send notification 15 minutes before due date, is there any possible way?

Shiva Kumar2
Kilo Guru

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

1 ACCEPTED SOLUTION

Harish Kota
Kilo Sage

Hi @Shiva Kumar2 

 

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

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Shiva Kumar2 

are you using flow designer for this?

Why not use Reminder table for this since your table extends task?

Reminder table 

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Samaksh Wani
Giga Sage
Giga Sage

Hello @Shiva Kumar2 

 

You can create a schedule job for this.

 

Plz refer the below link for more detail description :-

 

https://www.servicenow.com/community/developer-forum/creating-schedule-job-to-send-notification/m-p/...

 

 

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

Harish Kota
Kilo Sage

Hi @Shiva Kumar2 

 

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

Mohan raj
Mega Sage
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