- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 05:01 AM
Hi All,
I have created a flow which should be doing the following
When a new record is created and assigned to assignment group "A" OR an existing incident is assigned to assignment group "A" an email should be sent to assignment group "A"
I would expect to see the e-mail once sent to be viable in the activity log (as you can see in screenshot for incident creation to end user)
Any assistance on what is incorrect here?
Would it be better to have 2 flows one for new incidents (would this be new as in just created or first time assigned to RG) and one for updates?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 06:19 AM
Even with the code "Send email" action is throwing an error. Instead use "Send Notification" action.
- Create a notification
-Add your user email id & click add email address
-Add ${mail_script:email_script_name} in body & save the record
- Create "Email Script" & add the below code
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
// Add your code here
var desc = current.description;
var start = desc.indexOf("Short Description of Issue:");
var end = desc.indexOf("AUTH-4063");
var extractedText = desc.substring(start, end).trim();;
template.print(extractedText);
})(current, template, email, email_action, event);
- Add notification in flow
Result:
If my answer helped you in any way, please mark it as helpful or correct.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 05:18 AM
Hi Adil,
Have you checked the sys_email table to see if an email record has been generated? The activity formatter only shows emails that have been sent, and not those in the outbox. If you're in a dev environment, emails may have been disabled and therefore the activity formatter won't show the generated email record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 05:27 AM
I am using a test instance but as attached I have ensured the properties have been enabled. Does the flow itself have any issues or is that set up to do what I am aiming to achieve?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 05:56 AM
As mentioned, have you checked that there is a record in sys_email ?
From your screenshot if you expand "Send Email" it'll link to the generated email record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 05:30 AM
Hi @Adil N ,
Tried to reproduce your requirement & it worked for me.
- Check the sys_email table to see if mails are triggered.
- Check if the recipients are active.
- Instead of send email use send notification action.
I started answering community questions recently. If my answer helped you in any way, please mark it as helpful or correct. It would be a great boost.