Questions on Notications

Shaik22
Tera Expert

Hello,

 

Please provide answers of below questions.

 

1.what is the use of email template and how to trigger a template from script.

2.How exactly trigger an event from system.

3.what is the use of parm1 and parm2?

4.What is the use of weight option in email notification?

5.what is the format and flow of an event?

3 REPLIES 3

Chetan Mahajan
Kilo Sage
Kilo Sage

Hello  @Shaik22 ,

                                 Refer this videos for complete understanding What are Email Templates in ServiceNow? How we can use EVENT to automate EMAIL NOTIFICATION ServiceNow Email Notification Weight Demo 

Kindly mark correct and helpful if applicable

Sandeep Rajput
Tera Patron
Tera Patron

@Shaik22 Here are my inputs.

 

1. Email templates can be used to create reuse-able content for the subject line and body of email notification. Please refer for more information

2. Here is the code to trigger an event via script. For more information read https://www.learnnowlab.com/Event/ 

gs.eventQueue("Event name",argument,"parameter1","parameter2")

3. Param 1 and param 2 are two input parameters which can be tagged with an event whenever it is triggered.

4. Email notification weight is defined as a required numerical value for this notification's priority relative to other notifications: With the same target table and recipients. The system only sends the notification with the highest weight. Source: refer

5. An event is first registered in the event registry and later on can be used to either trigger a notification or a script action.

 

Kalyani Jangam1
Mega Sage
Mega Sage

Hi @Shaik22 

 

Please check below 

1. what is the use of email template and how to trigger a template from script

=>Email templates enable administrators to create reusable content for the subject line and message body of email notifications.

Please check below docs for reference

 
2. How exactly trigger an event from system.

They are normally triggered via script (most frequently via a Business Rule). See documentation for eventQueue()
https://developer.servicenow.com/app.do#!/api_doc?v=kingston&id=r_ScopedGlideSystemEventQueue_String...

 Events can also be triggered via workflow activity 'Create Event’.

 
3. What is the use of parm1 and parm2?

Event-specific parameter the system uses to pass record information to other parts of the system, such as a record Sys ID or a field value.

Event-specific parameter the system uses to pass record information to other parts of the system, such as a record Sys ID or a field value.

 

4.What is the use of weight option in email notification?

Email notification weight is defined as a required numerical value for this notification's priority relative to other notifications: With the same target table and recipients. The system only sends the notification with the highest weight.

 

5.what is the format and flow of an event?

https://www.servicenow.com/community/developer-forum/create-event-equivalent-in-flow-designer/m-p/16...

 

Please check and Mark Helpful and correct if it really helps you.