glide.servlet.uri

Attributes

  • Sys ID: nan
  • Type: nan
  • Application: nan
  • Default value: nan
Sören Maucher LinkedIn Profile

My personal property description:

The glide.servlet.uri property in ServiceNow is an out-of-the-box setting that stores the base URL of your instance. Although it might not appear when searching the system properties table, you can access it in a script. For example, running gs.info(gs.getProperty('glide.servlet.uri')); in a background script will print your instance URL, like https://xxxxx.service-now.com/. This property is useful for creating links in scripts, but it isn't necessary for all tasks, such as creating a custom card in Virtual Agent, where you can omit it.

AI Logo

AI generated property description:

The glide.servlet.uri property in ServiceNow holds the base URL of your ServiceNow instance. This property is useful when you need to programmatically construct URLs within scripts, such as in business rules or email notifications. By accessing this property, you can ensure that links generated in scripts are always pointing to the correct instance URL, even if the instance's domain changes. For example, you can retrieve this URL in a server-side script using gs.getProperty('glide.servlet.uri') and use it to create links to specific records or resources within your instance.

Source

Related property: glide.amb.servlet.uri