How to Send Email notifications when Change Task is inserted and Assigned to a user

humblecommitted
Kilo Guru

Hello Everyone,

I wanted to ask the community how to send out notifications when a change task has been assigned to a user.

Please let me know.

1 ACCEPTED SOLUTION

Business rule:



find_real_file.png



Notification (Top of form and when to send):



find_real_file.png



Notification (who will receive):



find_real_file.png


Note: We don't send ours to the event creator.   If you assign a change task to yourself, you probably don't need an email telling you that you did.   We also decided that using an event parameter as the recipient wasn't necessary.



Notification (what it will contain):



find_real_file.png



Below is a video of this all working together to make an email when a change task is assigned to a user:





If you're still not successful after this (like if the notification still says "Record inserted or updated" instead of "Event is fired"), that sounds like an issue with the ui policies on the notification page.   Try toggling between Default and Advanced view to see if that makes a difference.   Otherwise, this is as far as I can help you, and you'll need to get ServiceNow support involved directly.


View solution in original post

12 REPLIES 12

Good screenshots!



The issue is your notification fires on Record Insert/Update and not Event Fires.   Changing that should cause the email to go.



When I get to my pc later tonight, I'll whip toget her something small for you if you're still stuck.


Hello Justin,



I did try to swap it to Event Fires with no luck.



I also noticed there was already an event registered for "change_task.assigned" but that doesnt seem to fire off either.



Could these errors be related to this:


getEventTarget() called with invalid record reference: change_task.b25b9ea82b3f5200980bc67319da1595 for event: metric.update, could have been deleted



getEventTarget() called with invalid record reference: change_task.f09e16e82b3f5200980bc67319da152c for event: live_feed.update, could have been deleted



and would this have relation to the error as well:


notification_engine.process




Any help would greatly be appreciated!


Fire the event without the date, and use the user's sys_id as a parameter.


Hello Justin,



I apologize for not understanding your context but could you provide more descriptions on how to perform your suggestion.



Thank you.


Business rule:



find_real_file.png



Notification (Top of form and when to send):



find_real_file.png



Notification (who will receive):



find_real_file.png


Note: We don't send ours to the event creator.   If you assign a change task to yourself, you probably don't need an email telling you that you did.   We also decided that using an event parameter as the recipient wasn't necessary.



Notification (what it will contain):



find_real_file.png



Below is a video of this all working together to make an email when a change task is assigned to a user:





If you're still not successful after this (like if the notification still says "Record inserted or updated" instead of "Event is fired"), that sounds like an issue with the ui policies on the notification page.   Try toggling between Default and Advanced view to see if that makes a difference.   Otherwise, this is as far as I can help you, and you'll need to get ServiceNow support involved directly.