Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
pikaokras
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)%

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Use the With keyword in your Load statement. 

-Rob

View solution in original post

1 Reply
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Use the With keyword in your Load statement. 

-Rob