Skip to main content

In the tool I'm creating, I will be able to migrate data from one item tool to another. 

The idea is to be able to do that for multiple customers in the same environment. 

In the source tool, each customer has its own url, which is the basurl for API calls. 

I have a setup with more than 10 web connections and end points, which I all tested with a fixed URL of one customer. 

To make it variable, I save the URL in a configuration table, where I fetch it upon calling the API. 

Now Im struggling in how to use the variable as baseURL So I can use a different one for each customer. 

  1. The field base URL is mandatory
  2. Tried putting only http:// but it complains it can't resolve de URL. 

Please help me out here. 

(Also, Please don't tell me to use the http connector! I really don't feel like having to rewrite everything.)

 

 

Hi tiago,

You can name the parameter that controls the Base URL value as the value for the field Base URL.

Make a Web connection parameter for the Base URL, let's say "base_url"

Then in the Base URL field, enter {base_url}

In the Process action input parameters screen, connect the new base_url parameter to your process variable that will supply the Base URL.

It is mentioned you can do this on the Docs, Although it is mentioned in a different chapter than you might look for: https://docs.thinkwisesoftware.com/docs/sf/web_connections#set-up-a-web-connection-endpoint

Hope this helps!