Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to insert hyperlinks, HTML code, etc. via Flow Designer?

davida1
Giga Expert

I'm trying to create a function via Flow Designer such that an incident is generated when something (a group, in this case) expires. Our homegrown group maintenance system expires things after a year, and in spite of numerous (9) notices, group owners/managers still let their groups expire. To mitigate this, we decided to load the expiration date into the Groups table, and have a flow trigger when that date passes. It generates an incident assigned to the expired group, with information on what to do whether they wish to keep it (likely) or not. 

I ran into a snag when I tried inserting into the 'Additional comments' field a hyperlink to the knowledge base article on using the homegrown system. No matter how I enter the URL code, it's partially erased either when I hit 'Enter' or when I click 'Save' on the flow. A URL that looks like:

<a href="https://umd.service-now.com/itsc?id=kb_article&article=KB0011206">

turns into this:

<a href="https://umd.service-now.com/itsc?id

I've tried following tips from "Formatting within Journal fields using HTML & [code]" (https://community.servicenow.com/community?id=community_blog&sys_id=4d9ceae1dbd0dbc01dcaf3231f9619e1). I've got an open incident with HI, but other than direct me to the page above they're still looking into it.

I can put hyperlinks into 'Additional comments' directly, but not via Flow Designer. Anyone had any better luck?

David A
davida@umd.edu

16 REPLIES 16

Pastupe
Mega Guru

Hello,

any news on this topic?

I have the same use case.

Using flow designer, need to send an email, but in email body I'm not able to create dynamic <a> HTML tag as a connection to incident which is a trigger. We do not like to display full URL, but we wish to use HTML capabilities.

We are on Madrid patch 5.

I will be very happy to hear if this progressed or if you implemented workarounds.

/Petr

find_real_file.png

itpro72
Tera Contributor

My use case was like yours in that I needed to include a link to the record in an email and I found the method I mentioned to OP was a little messier in this use case. This action:

find_real_file.png

Produced this result:

find_real_file.png

itpro72
Tera Contributor

I solved it. I copied the action and removed the [code] and [/code] from the script. Those are only necessary if adding to a journal field as indicated in Formatting within Journal fields using HTML & [code]. The email expects html so it isn't escaped by default. Problem solved.

chrisw_
Tera Contributor

Same for me i have the exact same requirement. 

Everything is running but i need to have a hyperlink with a data pill 😞