I need to send an email reminder 30 minutes before.

nikhilgadodiya
Kilo Contributor

I need to send an email reminder 30 minutes before the selected date and time in a field called "Next action date and time" so that user can be reminded to work on a ticket.

find_real_file.png

I had created a notification with when to send being as shown below but it is not working please provide me a way to achieve this.

find_real_file.png

1 ACCEPTED SOLUTION

Tim Deniston
Mega Sage
Mega Sage

I prefer using gs.eventQueueScheduled to make this happen. Really simple to implement!



Creating a Simple Reminder Email - ServiceNow Wiki


View solution in original post

5 REPLIES 5

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Nikhil,



Please refer below thread for reference and adjust as per your req.


How to create a reminder notifications for pending request to be approved?


Tim Deniston
Mega Sage
Mega Sage

I prefer using gs.eventQueueScheduled to make this happen. Really simple to implement!



Creating a Simple Reminder Email - ServiceNow Wiki


Hi Tim,


I had created the event and notification but it's seems to have sending an email too early, please have a look and suggest me if anything is missed there:


Event Registration:


find_real_file.png


Business Rule:


find_real_file.png



Notification:


find_real_file.png



What is happening is it is triggering event and getting processed too early..


Please help me over this..


gs.eventQueueScheduled takes 5 parameters:


  1. event name
  2. current object
  3. parm1
  4. parm2
  5. date/time when the event should fire


It looks like you only have 4 parameters.



If you want it to send 30 minutes before the date/time identified in Next Action Date Time, you should also subtract 30 minutes from it. See this thread on how to do that: Add minutes to time field