Using gs.getProperty("glide.servlet.uri") in Connection URL Builder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2021 02:16 PM
For an ongoing integration, the connection url must have the following format (below)
https://<instance name>/api/now/table
Question: Is it possible to use gs.getProperty("glide.servlet.uri") in the place of "https://<instance name>/"?
This would be primarily due to having the url connection stay relative due to it's presence in sub-production instances as well.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2021 02:26 PM
Hi, you should be able to assign gs.getProperty("glide.servlet.uri") to a variable
or include it in your code directly
var myInstance = gs.getProperty("glide.servlet.uri");
var myUrl = myInstance + 'api/now/' + myTable;
or
var myURL = gs.getProperty("glide.servlet.uri") + 'api/now/' + myTable;