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: 
baniskher
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)
  • Other

1 Solution

Accepted Solutions
1 Reply
Maria_Halley
Support
Support

@bankiskher

 

This exact (word for word) question has already been discussed in the treads below. There are suggestion but no replies from poster. So take a look and see if the suggestions are helpful to you.

 

https://community.qlik.com/t5/QlikView-Administration/Is-it-possible-to-get-the-token-dynamically-in...

https://community.qlik.com/t5/QlikView-Integrations/Is-it-possible-to-get-the-token-dynamically-into...

https://community.qlik.com/t5/QlikView-Administration/Is-it-possible-to-get-the-token-dynamically-in...