Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Dynamic Base URL ebonding

Cent
Tera Contributor

Hi, how can i make the base url dynamic to send to different instances based on the chosen instance. Please help on how to achieve this. I also set up connection and credentials.

Cent_0-1755578530370.pngCent_1-1755578600827.png

 

6 REPLIES 6

JackieZhang
Tera Contributor

you can set the URL in a parameter. then before rest action, you can use a script to set parameter dynamically.

Cent
Tera Contributor

do you have any sample code for that? thank you