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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
rdugg
Contributor III
Contributor III

REST Connector - WITH CONNECTION Syntax to override parameters

What can and can't be parametrized in using WITH CONNECTION ?

I'm trying without success to change the keyGenerationStrategy.

sometime my apps need to use value 3, sometimes 0.

And I don't want to create and manage two connectors just for that point.

 

Is there a documentation about that ?

Should all parameters be "overridable" using with connection

Labels (1)
1 Solution

Accepted Solutions
PaulVerkooijen_DataFix
Partner - Specialist II
Partner - Specialist II

See https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Load-R...

 

WITH CONNECTION keyword

The REST Connector supports the WITH CONNECTION keyword, which can be used to override URLs, query parameters and query headers in a connection. The POST body can also be overridden when the POST method has been selected for the connection. WITH CONNECTION allows you to alter some parts of a connection rather than create a separate connection.

Four parameters can be used with the WITH CONNECTION keyword:

  • URL
  • QUERY
  • HTTPHEADER
  • BODY

The syntax for each parameter is:

  • URL "new url"
  • QUERY "parameter name" "parameter value"
  • HTTPHEADER "header name" "header value"
  • BODY "request body text"

 

View solution in original post

2 Replies
PaulVerkooijen_DataFix
Partner - Specialist II
Partner - Specialist II

See https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Load-R...

 

WITH CONNECTION keyword

The REST Connector supports the WITH CONNECTION keyword, which can be used to override URLs, query parameters and query headers in a connection. The POST body can also be overridden when the POST method has been selected for the connection. WITH CONNECTION allows you to alter some parts of a connection rather than create a separate connection.

Four parameters can be used with the WITH CONNECTION keyword:

  • URL
  • QUERY
  • HTTPHEADER
  • BODY

The syntax for each parameter is:

  • URL "new url"
  • QUERY "parameter name" "parameter value"
  • HTTPHEADER "header name" "header value"
  • BODY "request body text"

 

rdugg
Contributor III
Contributor III
Author

Thank you for pointing out the Documentation.

I guess, I'll use two separate Data connection for my two usages then.