Send email when worknote is added/save to CR on change of status "Unsuccessful"
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 09:43 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 10:21 AM
Hi @User382122
Let's try the below approach.
- Create an Event Registry.
- Create a Business Rule (After/Async Update)
- Table: Change Request [change_request]
- Condition: Work notes changes
- 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