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 

Hi,

Can you please use the below code in background script and see the result:

var instanceName = gs.getProperty('glide.servlet.uri');
var sys_table_out = "esc?id=ticket&table=incident&sys_id=";
var qry = "000101";
var link = instanceName + sys_table_out + qry ;
gs.print(link);
 
If it is working, modify your email script accordingly.
Thanks !

@Shashank_18 hi but im not using email script im using the source code option.

Screen Shot 2023-02-01 at 16.50.46.png

@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 !