How to create a change request reminder

jmbrake
Kilo Expert

Our team would like to be reminded of an upcoming change that is assigned to them and they would like to see it 30 minutes prior to that date and time.   How do you perform this?   Are there examples out there?   I am very new to ServiceNow, so please provide as much detail as possible.   I thank you in advance.

1 ACCEPTED SOLUTION

Hi Joan,


Your business rule looks to be set to populate the Reminder date field, but only if the start date is filled in with a value.   I would change the business rule to the planned end date value (current.end_date), and then enter a date value in this field to test your business rule.   If it works, then the business rule should enter the reminder value to be 30 minutes (-1800) from the planned end date.



Thanks,
David


View solution in original post

44 REPLIES 44

Slava Savitsky
Giga Sage

There is an out-of-box reminders feature in ServiceNow. Just add Reminders related list to your Change Request form to start using it. If you want reminders to be created automatically, you could do it using a business rule.


Sanjeev Kumar1
Kilo Sage

Hi,


I have created reminder for Requested Item and Change request (For verification ) as per our requirement.


As I created reminder for Request you can also create same for change request.



go to How to create a reminder notifications for pending request to be approved? for more details.


I still feel like I am missing the boat here.   I want the reminder to look at the field Planned Start Date and 30 minutes prior to that date and time send an email to the Assigned to User.   I followed the Create a Simple Reminder Email, but I don't understand how that relates to the Planned Start Date.   I look to me as if the person entering in the change has to enter in a time for the reminder.   Here is what I did so far:



In Change Table:   Created u_change_reminder - made it a Date/Time Field.   There are some strange choices in it that are dated 1970-01-01 -6:00:00.   I did not enter any other information



Created a Business Rule called Change Request Reminder:   Checked the Active; Insert and Update fields.   For the When field I select Before.   in the condition I put:   gs.eventQueueScheduled("change.reminder", current, gs.getUserID(), gs.getUserName(), current.u_change_reminder);



Plus I am getting an error on the above Business Rule....



Created a Email Notification called Change Reminder:   It is type Email.


On When To Send tab:   Selected Record insert or update


Added condition Active is true


On Who Will Receive tab:   For users/groups in field, selected Assigned to


On What it will Contain Tab:   Set Importance to High; put Subject of:   Reminder of Change Work for $(number) - $(short description).   In Messaged entered:   Change work schedule in 30 minutes



Again, how does this apply to the Start Planned Date as a reminder of 30 minutes prior to the change time to begin?


jmbrake
Kilo Expert

I still feel like I am missing the boat here.   I want the reminder to look at the field Planned Start Date and 30 minutes prior to that date and time send an email to the Assigned to User.   I followed the Create a Simple Reminder Email, but I don't understand how that relates to the Planned Start Date.   I look to me as if the person entering in the change has to enter in a time for the reminder.   Here is what I did so far:



In Change Table:   Created u_change_reminder - made it a Date/Time Field.   There are some strange choices in it that are dated 1970-01-01 -6:00:00.   I did not enter any other information



Created a Business Rule called Change Request Reminder:   Checked the Active; Insert and Update fields.   For the When field I select Before.   in the condition I put:   gs.eventQueueScheduled("change.reminder", current, gs.getUserID(), gs.getUserName(), current.u_change_reminder);



Created a Email Notification called Change Reminder:   It is type Email.  


On When To Send tab:   Selected Record insert or update


Added condition Active is true


On Who Will Receive tab:   For users/groups in field, selected Assigned to


On What it will Contain Tab:   Set Importance to High; put Subject of:   Reminder of Change Work for $(number) - $(short description).   In Messaged entered:   Change work schedule in 30 minutes



Again, how does this apply to the Start Planned Date as a reminder of 30 minutes prior to the change time to begin?


Hi Joan,



Please follow the steps below:




1. Create one new field on Change request table as 'Reminder(u_reminder)'.


2. Add one BR on Change Request table - After Update


   


      Condition - current.u_planned_start_date.changes() && current.u_planned_start_date != ''
   


        Script:
        var gdt = new GlideDateTime(current.u_planned_start_date);
        gdt.addSeconds(-27000);


          current.u_reminder = gdt.getValue();



3. Create one event as 'change.reminder' through event registry.
4. Create one BR on Change Request table   - After Insert & Update


      Condition - current.u_reminder.changes()


   


      Script:


    gs.eventQueueScheduled("change.reminder", current, gs.getUserID(), gs.getUserName(), current.u_reminder);



5. Create a normal notification but have the following fields populated:



        Send When:       Event is fired.
        Event Name:     change.reminder




Let me know if it is working properly.



Regards,


Solutioner


Logo.png


Enhance Knowledge NOW@ www.solutioningnow.com


http://www.solutioningnow.com/