I want to insert a hyperlink in the Send Email action of Flow Designer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2025 08:31 PM
Hello.
I am creating a feature in Flow Designer to remind users of unattended Incidents.
In the Body of the Send Email action, I want to insert a hyperlink to the relevant Incident.
Example:
"Please check ticket INCXXXXXX." (with a hyperlink)
However, unlike Post Message in Slack, it seems that Send Email does not allow easy hyperlink insertion.
What would be the best way to implement this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2025 09:26 PM
Thank you for your reply.
I'm having trouble understanding this.
Are the steps below correct?
- Create a record in sysevent_email_action
1.1. When to send → Set Send When to Triggered
1.2. What will contain → Set Message HTML to ${URI_REF} - Add Send Notification in Flow Designer
2.1. Specify the record created in sysevent_email_action
When creating a record in sysevent_email_action, we need to specify a table. Is Incident the correct choice?
When I tried to set the created record in Send Notification, it did not appear as an option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2025 09:46 PM
yes notification will be on incident table
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2025 11:55 PM
yes, that's correct.
1. Notification record:
2. Send notification action in flow:
Please make sure to insert the incident record in "Record" field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2025 09:22 PM
You can follow below approach as shown in the screenshots. You can make use of Scripting inside the email body.Change the RITM to INC and it should work for you.
var instanceName = gs.getProperty('instance_name');
var ritmSysID = fd_data.trigger.request_item.sys_id;
var ritmNumber = fd_data.trigger.request_item.number;
var hyperLink = "<a href=https://"+instanceName+".service-now.com/sc_req_item.do?sys_id="+ritmSysID+">"+ritmNumber+"</a>";
var body = "Please Check "+hyperLink
return body;
Output:
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.