- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2022 03:26 AM
Hello Team,
We have a Flow designer which sends the email using "send email" Action. But I want to add email script to the email body as we do on the sys_notifications table. Is there a way to add the email script on the flow designer.
Thanks,
Prudhvi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2022 04:24 AM
Hi @Prudhvi Raj Y ,
You can use Send Notification Action instead of Send email action.
Create notification and on when to send use Triggered it will display on the flow.
And you can use email script on notification body and define like this ${mail_script:script name}.
If you use Send Notification action it will be easy to troubleshoot/identify in future.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2022 03:51 AM
Why do you want email script. Instead you can run script and generate the text which can be used as message body.
For generating text you need to create a new Action. Within action you can execute script to generate you string
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2022 04:07 AM
Hi
you may add the email script to the flow designer using the Toggle scripting on for Record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2022 04:24 AM
Hi @Prudhvi Raj Y ,
You can use Send Notification Action instead of Send email action.
Create notification and on when to send use Triggered it will display on the flow.
And you can use email script on notification body and define like this ${mail_script:script name}.
If you use Send Notification action it will be easy to troubleshoot/identify in future.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar