Send notification with the comment from approval
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 12:51 AM
Hi
I need when the approver rejected.
what he send in the comment will send notification to the user that open change request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 01:26 AM
You can write before update business rule on that table , condition : state changes to rejected
in script you can call gs.eventQueue() method:
gs.eventQueue('change.rejected', current, gs.getUserID(), gs.getUserName());
then you can use that event to configure notification.
Thanks
Please mark my response helpful!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 01:34 AM
Hi @Yahav Mor
1. Create a mail script by navigating to System Notification >> Email >> Notification mail script
2. Name it getlatestcommentsonly with script as below.
(function runMailScript(current, template, email, email_action, event) {
var latestcommentsare = current.comments.getJournalEntry(1);
template.print(latestcommentsare);
})(current, template, email, email_action, event);
3. Go to notification & add below just after the line Short description: ${short_description}
Comments: ${mail_script:getlatestcommentsonly}
If my answer helped you in any way, please then mark it as helpful or correct.