- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 07:12 AM
I am really struggling to find a solution to this and given the potential uses for it I can't believe it isn't simpler to use so I am hoping I am just missing something.
I have a Flow in which I generate an email to an individual. There is a variable that is gathered part way through the workflow that needs to be picked up and delivered to the recipient of the email. I have a variable on the preceding task (URL type) that is filled in by the group doing the work. Then in the email I add the Data Pill but it just comes out as straight text. I can't seem to fathom a way to convert it to a href. On the net I saw some people doing it via Flow Variables but they were choosing the options Data for type of variable and in Yokohama that no longer seems to be an option. Is anyone able to help me figure this one out?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 08:12 AM - edited 05-28-2025 08:16 AM
Method 1: Use a String Flow Variable with HTML
Create a Flow Variable
- Type: String
- Name: LinkVariable
- Value: <a href="https://yourinstance.service-now.com/your_table.do?sys_id=@{yourRecord.sys_id}">Click here</a>
- Replace your_table and yourRecord.sys_id with the appropriate table name and dynamic data pill
- Set the Variable
Use the "Set Flow Variables" action to populate this variable dynamically using the record's sys_id. Insert into Email
In the Send Email action:- Switch the body to HTML mode.
- Insert the variable like this:Please review the record: @{LinkVariable}
Method 2: Use Built-in Tokens like ${URI} or ${URI_REF}
If you're using email notifications (not Flow Designer's "Send Email" action), you can use:
- ${URI} → Inserts a link with the text "LINK"
- ${URI_REF} → Inserts a link with the record's display value as the link text
These work well in Notification Templates, but not directly in Flow Designer emails
Stay awesome,
Roshnee Dash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 08:41 AM
Hi @ChrisWing ,
check my response in the below thread
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 08:31 AM
I can't seem to edit my replies either but just to add on further, the variable link isn't referencing back to the Instance it could be www.google.ca for example. So I think if you can convert to HTML it might be all that is required outside of the need for a flow variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 08:41 AM
Hi @ChrisWing ,
check my response in the below thread
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 08:56 AM
I have created a blog on this recently, check that and enhance as per your requirement
ServiceNow Flow Designer: Adding Record Link in "Send Email" flow action
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