- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi Community,
I’m working on a Flow Designer flow in ServiceNow where I need to send an email with a clickable link that directs the recipient to a Case record.
Here’s what I’ve done so far:
- Created a Flow Variable named linkvariable using Set Flow Variables action.
- The value of the variable is:
In the Send Email action, switched the body to HTML mode and added:
<p>Please review the case: @{linkvariable}</p>
Issue:
When the email is sent, instead of rendering the link, the email shows: Please review the case: @{linkvariable}.The variable is not being replaced at runtime.
But when I manually tested the flow I can see the corrct runtime value which is redirecting to case, but not binding in the email.
Questions:
- Is there a correct way to use Flow Variables with HTML in Send Email action?
- Do I need to escape HTML or use a different approach (like a script)?
- Any best practices for sending dynamic record links in Flow Designer emails?
Thanks in advance for your help!
Regards,
swetha.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
see my blog on how to do this
ServiceNow Flow Designer: Adding Record Link in "Send Email" flow action
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
it should work fine.
Can you try to add the Send Email action again and publish and then test again?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi @swethavelu
try to create notification on case table use the notification in your flow and try to create email to script that dynamically build link that redirect to the record.
please check the below thread for the email script and dyncamic link generation
https://www.servicenow.com/community/developer-forum/how-to-embed-a-dynamic-link-in-the-email-notifi...
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You
