Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
nhaataja
Contributor II
Contributor II

QlikSense Rest Connector - Use Variable for a Query Header Value

I am working on a QlikSense application which connects to a SharePoint Online list via a Rest Connector.  I need to be able to have a Query Header Name be "Authorization" and the Query Header Value set to an encryption key which will change daily.  See the highlighted section below for where I am hoping to use the variable.  Is it possible to use a variable in this field so that I do not have to manually go in every single day and set the new encryption key?  See the highlighted section below for where I am hoping to use the variable.

nhaataja_0-1713962702987.png

 

Labels (1)
1 Reply
Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

You can use a WITH CONNECTION parameter : https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Load-R...

For example :

 

 

SELECT
  [...]
FROM JSON (wrap off) "result"
WITH CONNECTION (
HTTPHEADER "auth_type" "$(vToken)"
);

 

 

 

Help users find answers! Don't forget to mark a solution that worked for you!