How to add dynamic record link (“click here”) in Flow Designer email body?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi Team,
I am currently working on a Flow Designer notification (Send Email action) triggered from an Incident flow.
I have a requirement to include a clickable link in the email body, where the text should appear as “click here”, and it should dynamically open the respective Incident record.
✅ Requirement:
- Text should display as: click here
- On clicking it, the current Incident record should open
- The link must be dynamic (based on sys_id)
Please can anyone can explain with what i need to do exactly in my case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
38m ago
Hello @Sirri ,
You can use this approach :
1. Create a Flow Variable
- Type: String
- Name: Link
- Value:
<a href="/nav_to.do?uri=incident.do?sys_id=<dataPILL sys_id>">click here</a>
- Replace your_table and yourRecord.sys_id with the appropriate table name and dynamic data pill
2. Set the Variable
Use the "Set Flow Variables" action to populate this variable dynamically using the record's sys_id.
3. Insert into Email
In the Send Email action:
- Switch the body to HTML mode.
- Insert the variable like this:Please review the record: @{LinkVariable}
Refer this for detailed understanding :
ServiceNow Flow Designer: Adding Record Link in "Send Email" flow action
If my response helped mark as helpful and accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
17m ago
HI @Sirri ,
I would recommend using the Send Notification action instead of the Send Email action. Notifications provide more flexibility to customize the email content as per the requirement, and built-in variables like ${URI} or ${URI_REF} can be used more effectively for dynamic record links.
Additionally, you can also use Email Scripts for further customization and dynamic content handling.