- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 02:59 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 07:08 AM
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 !

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 04:26 AM
Hi @Alon Grod
var instanceURL = gs.getProperty('glide.servlet.uri');//this property has the url for your instance
var url = instanceURL+"/esc?id=ticket&table=incident&sys_id=" + dynamic field sys_id ${sys_id}
You can use this url variable in your href
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 06:32 AM
hi it's not working.
source code:
this is what I'm getting:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 06:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 07:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 05:44 AM
Hi Alon,
use below code:
href = gs.getProperty('glide.servlet.uri')+ /esc?id=ticket&table=incident&sys_id= + dynamic field sys_id ${sys_id}
This property "gs.getProperty('glide.servlet.uri')" holds the value of URI which will be your instance name.
Hope this will resolve your issue.
Thanks !