Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Mail notification using event queue

Alon Grod
Tera Expert

Hi,

I have a requirement to send an email notification to all assignment group's users of the child incidents when the parent incident is closed.

I created a Business rule on the incident table that trigger when state changes to close. then I go and check if this incident has child incidents with assignment group field is not empty. If yes, I know that I need to use the command:
gs.eventQueue();

 

what should I pass inside () ?

In addition, when creating the notifcation do I need to populate something in the 'Who will receive' Tab or not because I will specify the it inside the gs.queue?

1 ACCEPTED SOLUTION

Vrushali  Kolte
Mega Sage

Hello @Alon Grod ,

 

gs.eventQueue() takes five parameter and one of them is optional.

 

 

 

gs.eventQueue('event_name','glide_record_object',parm1,parm2, 'queue_name');

//#5 is optional

 

 

If you already know to whom you want to send notification then, you can directly pass the mail_id of that group in #parm1 and set the receiver as EVENT PARM  1 or you can select the group in the who will receive it tab as follows -

 

VrushaliKolte_0-1721639148712.png

VrushaliKolte_1-1721639153477.png

 

If my answer solves your issue, please mark it as Accepted✔️ and Helpful👍!

View solution in original post

5 REPLIES 5

Vrushali  Kolte
Mega Sage

Hello @Alon Grod ,

 

gs.eventQueue() takes five parameter and one of them is optional.

 

 

 

gs.eventQueue('event_name','glide_record_object',parm1,parm2, 'queue_name');

//#5 is optional

 

 

If you already know to whom you want to send notification then, you can directly pass the mail_id of that group in #parm1 and set the receiver as EVENT PARM  1 or you can select the group in the who will receive it tab as follows -

 

VrushaliKolte_0-1721639148712.png

VrushaliKolte_1-1721639153477.png

 

If my answer solves your issue, please mark it as Accepted✔️ and Helpful👍!