Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
browlciba
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
NadiaB
Support
Support

Hi @browlciba

 

Please refer to the following thread, look at the suggestion by Bjorn

 

https://community.qlik.com/t5/New-to-Qlik-Sense/Qlik-Rest-Connector-Post-Method-into-the-script/td-p...

 

Kind Regards.

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm

View solution in original post

1 Reply
NadiaB
Support
Support

Hi @browlciba

 

Please refer to the following thread, look at the suggestion by Bjorn

 

https://community.qlik.com/t5/New-to-Qlik-Sense/Qlik-Rest-Connector-Post-Method-into-the-script/td-p...

 

Kind Regards.

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm