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.

Trigger the email notification in task table

Uchel
Tera Contributor

Hi,

 

Can I ask how can I trigger the email in task table once the task status and request status is completed using Business rule, Email notification and Event?

 

BR:

Uchel_0-1721965654639.png

Notification:

Uchel_1-1721965682091.png

Event:

Uchel_2-1721965697104.png

 

Thank you!

1 REPLY 1

Vrushali  Kolte
Mega Sage

Hello @Uchel ,

 

gs.eventQueue(), takes 5 parameters out of which 1 is optional

 

syntax -

gs.eventQueue(eventName, current, parm1, parm2, queue_name);

 

 

  • eventName: The name of the event you want to trigger. (which you have already passed )
  • current: The GlideRecord object that the event is related to.(pass current this will pass the current object from BR)
  • parm1, parm2: You can pass any value which will be resultant into string value.
  • queue_name: (optional )Additional parameters that you can pass to the event handler script.

 

For more information, please refer below link -

https://developer.servicenow.com/dev.do#!/learn/learning-plans/washingtondc/servicenow_application_d...

 

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