- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 06:45 AM - edited 09-15-2023 06:46 AM
Hi,
In Flow Designer at Resource Path field, is there any way to get my instance URL to make my base URL always call the right URL when I deploy this feature from dev -> staging -> prod instance without fixing the hardcode URL ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 06:52 AM
Hi,
You can use gs.getProperty('glide.servlet.uri') to get the base URL and use it in your script.
Regards,
Karthik Nagaramu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 06:52 AM
Hi,
You can use gs.getProperty('glide.servlet.uri') to get the base URL and use it in your script.
Regards,
Karthik Nagaramu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2023 06:55 PM
Hi @karthiknagaramu , thanks for solution it is wonderful. In my instance, there is no "glide.servlet.uri" to be found so I used "instance_name" property instead for the solution. Anyway, thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2024 05:21 PM
System property "glide.servlet.uri" does not exist on any instance. But it works on every instance.