We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

GlideEmailOutbound()-Send Notifications using Script with email template

Supriya Mane
Tera Contributor

GlideEmailOutbound()-Send Notifications using Script with email template using business rule how we can configure

6 REPLIES 6

Kieran Anson
Kilo Patron

Hi

I recommend reading the following. This will provide you with some key tips on how to write a community question that is a higher chance of being answered 

 

10+ Tips for writing a quality community question - ServiceNow Community

yashkamde
Mega Sage

Hello @Supriya Mane ,

 

Refer this for detailed understanding :

GlideEmailOutbound - Scoped 

GlideEmailOutbound()-Send Notifications using Script 

 

When to you it :

> You need fully dynamic recipients at runtime that Notification conditions can't fetched.

> You're sending outside standard notification triggers (from a Scheduled Job, Script Include, or Flow Action)

 

Although ootb recommended way is to - Business Rule fires an event, Notification record picks the template and handles merging fields, recipients, conditions.

It's more maintainable than manually scripting GlideEmailOutbound since you get built-in template and easier configuration without touching script.

 

If my response helped mark as helpful and accept the solution.

Tanushree Maiti
Tera Patron

Hi @Supriya Mane 

 

 

Refer article/Post:

GlideEmailOutbound()-Send Notifications using Script

 

Refer Servicenow Documentation: GlideEmailOutbound - Scoped 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

AnkurBaruah
Tera Contributor

Hi @Supriya Mane ,

 

GlideEmailOutbound() gives you a quick way to send email out from ServiceNow but it lacks dynamic configuration and UI Layouts. 

 

As you have said you want to send email along with the layout and everything. Please go with event, and associate the event with a system email notification with the Template and Body format.

 

That way you would have to worry about any bad user experience on email.

 

You can refer the following article on NOW Docs - GlideEmailOutboundScopedAPI 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.

 

Good Day!