Get instance URL with script in Resource Path (Flow Designer)

sieusaopolo15
Tera Guru

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 ?

sieusaopolo15_0-1694785473984.png

 

1 ACCEPTED SOLUTION

karthiknagaramu
Kilo Sage

Hi,

 

You can use gs.getProperty('glide.servlet.uri') to get the base URL and use it in your script.

 

Regards,

Karthik Nagaramu

View solution in original post

3 REPLIES 3

karthiknagaramu
Kilo Sage

Hi,

 

You can use gs.getProperty('glide.servlet.uri') to get the base URL and use it in your script.

 

Regards,

Karthik Nagaramu

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 !

System property "glide.servlet.uri" does not exist on any instance. But it works on every instance.