I want to insert a hyperlink in the Send Email action of Flow Designer.

Kentaro Numata
Tera Guru

Hello.

 

I am creating a feature in Flow Designer to remind users of unattended Incidents.
In the Body of the Send Email action, I want to insert a hyperlink to the relevant Incident.

Example:
"Please check ticket INCXXXXXX." (with a hyperlink)

However, unlike Post Message in Slack, it seems that Send Email does not allow easy hyperlink insertion.
What would be the best way to implement this?

8 REPLIES 8

Thank you for your reply.
I'm having trouble understanding this.

Are the steps below correct?

  1. Create a record in sysevent_email_action
    1.1. When to send → Set Send When to Triggered
    1.2. What will contain → Set Message HTML to ${URI_REF}
  2. Add Send Notification in Flow Designer
    2.1. Specify the record created in sysevent_email_action

When creating a record in sysevent_email_action, we need to specify a table. Is Incident the correct choice?

When I tried to set the created record in Send Notification, it did not appear as an option.

@Kentaro Numata 

yes notification will be on incident table

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

yes, that's correct.
1. Notification record:

JSiva_0-1741675925472.png

2. Send notification action in flow:

JSiva_1-1741676005284.png

Please make sure to insert the incident record in "Record" field.

Amit Verma
Kilo Patron
Kilo Patron

Hi @Kentaro Numata 

 

You can follow below approach as shown in the screenshots. You can make use of Scripting inside the email body.Change the RITM to INC and it should work for you.

AmitVerma_0-1741666831183.png

 

var instanceName = gs.getProperty('instance_name');
var ritmSysID = fd_data.trigger.request_item.sys_id;
var ritmNumber = fd_data.trigger.request_item.number;
var hyperLink = "<a href=https://"+instanceName+".service-now.com/sc_req_item.do?sys_id="+ritmSysID+">"+ritmNumber+"</a>";
var body = "Please Check "+hyperLink
return body;

 Output:

AmitVerma_1-1741666881801.png

 

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.