Trigger reminder notifications before 5 days of dur date

tapasvi
Giga Contributor

Hi Folks,

I have a requirement where i need to send notification before 1 day of due date.

I have written wait for condition but that didn't seem to work

Any ideas how to trigger notifications from workflow?.

 

find_real_file.png

 

2 REPLIES 2

Giuliana Martin
Tera Contributor

I have some surveys in which I send a reminder notification after 7 days from when the survey was created. It is based on a scheduled job, see below an example of the script. 

The scheduled job triggers and event which triggers the notification.

 

find_real_file.png

 

find_real_file.png

akashvarma85310
Tera Contributor

Here, you can write script in scheduled job and run it daily

 

var gr = new GlideRecord('incident');
gr.addQuery('u_due_date', '>=', gs.daysAgoStart(-5)); // Find records due in 5 days
gr.query();
while (gr.next()) {
gs.eventQueue('send.reminder.email.before.days', gr, '', '');
}