glide.servlet.uri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2020 07:00 PM
Hi Team,
In my project we are using custom uri's, i just want to compare both the uri's(Prod and DEV) and it should display Production uri. Can anyone suggest me.
Thaks
CSR
- Labels:
-
Instance Configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2021 02:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2021 03:01 AM
Not sure what you are trying to do? You should not change this property. The 'error' is a warning that you should not update this property. It will not allow you to do so.
This is a property managed by SeviceNow, always containing your specific environment information. So no need to manually update.
Hope this helps! 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2021 03:14 AM
Im using that property in the below script. url: gs.getProperty('glide.servlet.uri')
If the property not there in system properties how it identify our instance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2021 03:19 AM
Hi there,
glide.servlet.uri is an out-of-the-box property. Only you might not see it when searching the system properties table.
Just try for example in background script:
gs.info(gs.getProperty('glide.servlet.uri'));
Notice you will get you instance url. Something like:
*** Script: https://xxxxx.service-now.com/
Your question is on Virtual Agent, creating a custom Card? You actually don't need to add the glide.servlet.uri. You can leave out:
gs.getProperty('glide.servlet.uri') + '/' +
Kind regards,
Mark
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2021 03:26 AM
yes. it returns a link to the instance that i logged into. Thanks for the guidance.