We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to add dynamic record link (“click here”) in Flow Designer email body?

Sirri
Tera Guru

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.
1 ACCEPTED SOLUTION

yashkamde
Mega Sage

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.

 

Screenshot 2026-05-24 124943.png

 

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}

Screenshot 2026-05-24 125042.png

 

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.

View solution in original post

4 REPLIES 4

yashkamde
Mega Sage

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.

 

Screenshot 2026-05-24 124943.png

 

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}

Screenshot 2026-05-24 125042.png

 

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.

@yashkamde ,

Thank you Yash. I have tried both has been worked your solution & I have tried my self below solution both are working I have created the flow variable as per the below it is worked.

var url = gs.getProperty("glide.servlet.uri") +
fd_data.trigger.table_name + ".do?sys_id=" +
fd_data.trigger.current.sys_id;

var link = '<a href="' + url + '">here</a>';

return link;

Thanks once again.

glad my approach worked!

Also your flow variable solution with the link looks optimize and effective.

Rakesh_M
Mega Sage

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.