How to set Base URL for rest api using system property?

kshitij8
Kilo Contributor

I want to set the Base URL of Rest action (in Flow designer) through system properties instead of giving a URL like https://bb-abc.com:8443.

The main reason being everytime we are doing cloning flow designer is being cloned and we are getting production Base URL and it needs to be manually changed everytime.

 

Please let me know how is it possible to have Base URL which takes value from system property to avoid it getting changed post clone?

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Kshitij,

Try to leverage connection and credential setup instead of hardcoding the base URL value. The connections and credentials are preserved during cloning process. Details here.

https://docs.servicenow.com/bundle/kingston-servicenow-platform/page/product/discovery/concept/crede...

 

- Pradeep Sharma

View solution in original post

1 REPLY 1

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Kshitij,

Try to leverage connection and credential setup instead of hardcoding the base URL value. The connections and credentials are preserved during cloning process. Details here.

https://docs.servicenow.com/bundle/kingston-servicenow-platform/page/product/discovery/concept/crede...

 

- Pradeep Sharma