Variable use in http activity

Hi,

I don’t know whether this is possible or not so asking for help and suggestion here.
Scenario : I am fetching details from web application using REST API .The first step is to generate authorization token which will be used in subsequent calls. So in the first step i am using http activity where i am providing end point url and in headers section i am providing the authorization token which will generate the response token for further calls. As this authorization token will keep on changing after 4 months so i want to pass the token in headers section of the http activity through variable stored in config sheet as i am designing the code in RE-Framework. I tried by simply passing it through variable stored in the variable panel of the workflow but it is not working. I passed it like this :

“Bearer” + varToken
varToken - variable containing the token to generate the authorization token for subsequent API calls.

Please suggest on this whether this can be done or not and how?

Thanks.

I have also has issues using the built in variables for some endpoints. The easiest workaround I have found is to build the connection string with variables beforehand and pass that entire string in. Here is a simple example for a weather API call:

I have created a variable called APICall and build my connection string inside of that

After creating that, then put in the Http request activity and leave the Api Endpoint empty

Then after in the side panel on the right, set the end point to your APICall variable

I know this isn’t exactly what you are asking for so I’m not sure if this would work in your case but I hope it helps!

Thank you. i will try this and will let you know whether this is working in my case or not.