Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
skeet5
Contributor
Contributor

Is it possible to get the token dynamically into a query header?

Hey guys I am having trouble with connecting QlikView with a REST API. the auth token only last 12 hours and I can't change the token manually so I'm have been trying to automatically get a new token every time a execute the script (something a have already done) the token that is given to me is saved as a variable. In the query header, i try adding the variable but once a run a new script trying to extract the information I get an error (401 Unauthorized)

Example:

authtoken%2de222e39fc8df47e14fb3f86eafa4592% is the currant token

authtoken%=(Vtoken)%

Labels (1)
1 Reply
Josef_Gustafson
Support
Support

Hi @skeet5,

 

Please take a look at this documentation about refreshing the authtoken, hopefully this helps.