Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to generate link to table record in Workflow Studio?

MBarrott
Mega Sage

I am wanting use the Send Email action to inform respective end-users of a change to their request record. While I've captured the details of the request record I also want to include a link to the ticket record if they want to jump in and make changes. 

 

How can I generate and include a link to this record? 

 

I've seen previous posts using a "Generate Link to Table Record? action but I'm not seeing it at all as an option in Workflow Studio. Was this removed?

1 ACCEPTED SOLUTION
4 REPLIES 4

Hi @Yashsvi

 

Do you know if ${URI_REF} is supported in Workflow Studio? I tried using that in the Send Email action body and it just output raw text. 

Hi @MBarrott,

In ServiceNow's Workflow Studio, `${URI_REF}` is not supported directly in the `Send Email` action. Instead, you should use built-in variables and scripting. For example:

<a href="${gs.getProperty('glide.servlet.uri')}incident.do?sys_id=${current.sys_id}">View Incident</a>

This will create a dynamic link to the incident record. Use `${variable_name}` for other dynamic content in your email body.

Thank you, please make helpful if you accept the solution.

Thanks @Yashsvi,

 

The link to the import spoke worked perfectly. Have marked your reply as accepted solution.