How to embed a link to a specific record in an email from within Flow Designer

carlavanskaik
Giga Contributor

I need to add a link to a specific record within email notifications distributed via Flow Designer.  If this requires inline scripting experience, I unfortunately have no scripting experience. 

Can anyone from the Community provide guidance?

For example, the distributed email should display the following text:

For more information, click the link to view the GRC Request: LINK

(Trigger + Requests Record + Sys ID)

1 ACCEPTED SOLUTION

Kieran, 

We were able to successfully implement use of the Link Generator.  This seems to provide potential for future use as well as for our current use case. 

Thank you so much for the extra guidance and assistance!

View solution in original post

34 REPLIES 34

Rodney10
Giga Contributor

I was able to link with current variables for Approval in scripted email body 

notes += "<br/>Click <a href='/upssp/approvals?id=approval&table=sysapproval_approver&sys_id=" + fd_data.trigger.current.sys_id + "'>Here</a> to view this request";
 
Pay special attention to your quotes. Single quote after href=' and double quote after variable, then another single quote.

rm231
Tera Contributor

Hi Rodney, it's not working. What did I missed?

For more information, click on the link to view the record: "<a href='https://xxx.service-now.com/nav_to.do?uri=sn_compliance_rk_training.do?sys_id="+fd_data.trigger.current.sys_id +"'>LINK</a>"

Advanced thanks.

Maruthi Ram
Tera Contributor

after using the link generator , in the email when i click on the hyperlink(in this case it it task number) it doesnt take me to the task record instead it says page not found.

Can you share the URL that has been created?

Maruthi Ram
Tera Contributor

I figured it out and its working @Kiernan