The CreatorCon Call for Content is officially open! Get started here.

How to add current instance + dynamic field to href link

Alon Grod
Tera Expert

Hi,

 

I have an email notification on the incident table with a button when clicked it should send to the portal. 

 

current link (without dynamic instance and dynamic sys_id):

href="http://68.513.116.115:22222/esc?id=ticket&table=incident&sys_id=2097213cc8fc211020d26a4e3d8eeb6f"

 

required link (need to adjust syntax):

current logged in user instance + /esc?id=ticket&table=incident&sys_id= + dynamic field sys_id ${sys_id}

 

how can i achieve that?

 

1 ACCEPTED SOLUTION

@Alon Grod 

 

you can only put this "/esc?id=ticket&table=incident&sys_id= + dynamic field sys_id ${sys_id}" in your source code and check whether that is working fine or not?

 

If not then recommending you to use the email script, that the place where you can play with this links building activity.

 

Thanks !

View solution in original post

18 REPLIES 18

Alon Grod
Tera Expert

Alon Grod
Tera Expert

Kirby R
Kilo Sage

Hi @Alon Grod ,

 

You can check this article which may help on your use case:

Email links using ${URI} and ${URI_REF} - ServiceNow Guru

Amarjeet Pal
Kilo Sage
Kilo Sage

Hello Alon,

 

Don't add anything to it , directly try to redirect it to /esc?id=ticket&table=incident&sys_id= + dynamic field sys_id ${sys_id} this URL , It automatically takes the current logged in instance .

 

Thanks