Add clickable link in Email body of a Email action in Flow Designer

ChrisWing
Mega Guru

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?

2 ACCEPTED SOLUTIONS

Roshnee Dash
Tera Guru

Method 1: Use a String Flow Variable with HTML

  1. Create a Flow Variable

  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}
 

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 

Your feedback makes the community stronger! If you found this helpful, marking it as the correct answer helps others.
Stay awesome,
Roshnee Dash

View solution in original post

Chaitanya ILCR
Kilo Patron

Hi @ChrisWing ,

check my response in the below thread

https://www.servicenow.com/community/developer-forum/add-ritm-hyperlink-in-send-email-action/m-p/321...

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

View solution in original post

7 REPLIES 7

ChrisWing
Mega Guru

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.

Chaitanya ILCR
Kilo Patron

Hi @ChrisWing ,

check my response in the below thread

https://www.servicenow.com/community/developer-forum/add-ritm-hyperlink-in-send-email-action/m-p/321...

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Ankur Bawiskar
Tera Patron
Tera Patron

@ChrisWing 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader