Notification email Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2023 12:51 AM
I have a requirement where I have to trigger the notification on Assessment Instance table... The went to send condition is Trigger ID.Business Analyst.Manager and Trigger ID.Developer.Manager and Trigger ID.Agile Team.Manager.
But the Trigger Id is a 'document type' I m unable to achieve it through the When to send notification in the notification.., I think I need to write an email script .Can anyone give me an example for this scenario
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2023 02:43 AM
Hi ,
Seems you are over complicating it .Please look at the existing notification against the table . asmt_assessment_instance
Try create condition in notification "https://dev26246.service-now.com/nav_to.do?uri=sysevent_email_action.do?sys_id=05c1a0f1df22210068c37... .Please look at the oob notification and try to replicate it . please change the condition to event triggering if necessary.
Regards,
Luxo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2023 02:45 AM
you can try to use advanced notification condition.
Get the document_id value i.e. sysId and then query and determine using GlideRecord if email needs to be sent or not
Remember to set answer=true; if you want email to trigger
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2023 09:13 AM
Can anyone give an example to how to write an email script to 'who will receive' condition which can not be achieved through simple way for
1. Trigger ID.Business Analyst.Manager and Trigger ID.Developer.Manager and Trigger ID.Agile Team.Manager.
It should be sent to this people when ever the notification is conditions are met
2.This conditions are from the Assessment Instance Table