Send email when worknote is added/save to CR on change of status "Unsuccessful"

User382122
Tera Contributor

I have a requirement to create string fields and have it populate when status change is "Unsuccessful" and the text/string field is not empty. So basically when a worknote is added, I need to send an email to the particular group that is assigned to.

 

I need help with the process and script for this. 

1 REPLY 1

Tai Vu
Kilo Patron
Kilo Patron

Hi @User382122 

Let's try the below approach.

  1. Create an Event Registry.
  2. Create a Business Rule (After/Async Update)
    • Table: Change Request [change_request]
    • Condition: Work notes changes
  3. In the Advance section, add sample script below
gs.eventQueue('change_request.work_notes.changes', current, param1, param2);

 

Then, create new Notification.

  • Send When: Event is fired
  • Event name: change_request.work_notes.changes
  • Who will receive: <select the audiences you'd like to inform>
  • What it will contains: <add the email subject and body>

 

And enjoy the result. Let me know if it works for you!

 

Cheers,

Tai Vu