Adding Mail Script on the send mail action on flow designer

Prudhvi Raj Y
Tera Expert

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

1 ACCEPTED SOLUTION

Pavankumar_1
Mega Patron

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.

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

View solution in original post

3 REPLIES 3

palanikumar
Mega Sage

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

 

Thank you,
Palani

Lavanya Prabaka
Tera Contributor

Hi 

you may add the email script to the flow designer using the Toggle scripting on for Record.

click the toggle scripting on for record and add the below script.
${mail_script: emailscript name}
eg:
${mail_script:open_form_as_it_is}

Pavankumar_1
Mega Patron

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.

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar