Notification email Script

Trupti Krishnam
Tera Contributor

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 

 

3 REPLIES 3

Luxo Nadappan
Tera Guru

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Trupti Krishnam 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Trupti Krishnam
Tera Contributor

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