Email Notifications (sysevent_email_action)

Clayton Parker
Tera Contributor

In the "Who will receive" section when creating a new email notification that triggers off a catalog item. Is there a way to enable "script" for the who will receive. The advanced scripting option is available under "When to send" but not "Who will receive".

I'm seeing online that there are ways to enable it but not having any luck.

Thanks in advance and looking for any recommendations!

5 REPLIES 5

RaghavSh
Kilo Patron

I believe you want to send notifications to some users who are not in fields on table below is my suggestion.

 

1. Make your field event based, and fire that event through BR OR workflow or flow designer. In the events parameter you can add users through scripting.

 

https://www.servicenow.com/docs/bundle/zurich-application-development/page/build/professional-develo... 


Raghav
MVP 2023
LinkedIn

Correct, I have a catalog item with the following variables and want to send the notification to the person selected on the form.

Ex: When this form is submitted, I would like the notification to be sent to the following 2 variables (Organizational Manager & Reporting Manager) (organizational_manager / reporting_manager

ClaytonParker_0-1755280942853.png

ClaytonParker_1-1755280959275.png

 

 

There can be multiple approaches, I can suggest below:

 

If your catalog is using flow designer or workflow you can tigger a custom event from flow and pass the variable values and param1 and param2.

 

If your catalog item does not have flow or workflow you can write after insert BR on RITM table with condition of your catalog item and trigger the event from BR.

 

Refer: https://www.servicenow.com/community/developer-forum/gs-eventqueue/m-p/1529243 


Raghav
MVP 2023
LinkedIn

Bhuvan
Mega Patron

@Clayton Parker 

 

Register an event and pass the recipient details in event parm1. Configure When to send using 'Event is Fired' and pass the event parm 1 details.

 

https://developer.servicenow.com/dev.do#!/learn/learning-plans/xanadu/new_to_servicenow/app_store_le...

 

https://developer.servicenow.com/dev.do#!/learn/learning-plans/xanadu/new_to_servicenow/app_store_le...

 

Refer below post for reference,

 

https://www.servicenow.com/community/developer-forum/set-who-will-receive-in-email-notification-usin...

 

If this helped to resolve your query, please accept the solution and close the thread.

 

Thanks,

Bhuvan