Helper Connector
The QlikHelper Connector is an internal helper connector, that is, it does not make outgoing calls to APIs. The QlikHelper Connector is run from within your QlikView or Qlik Sense applications.
The Qlik Web Connectors help you connect to different data sources and fetch data in the same way. Learn how to authenticate a data source connection and how to use tables to fetch data.
Supported offerings
- Qlik Sense Desktop
- Qlik Sense Enterprise on Windows
- QlikView
This connector must be installed separately.
Using the connector
The QlikHelper Connector has the following tables available:
-
Encrypt - Encrypts a string using the internal algorithm used by other connectors. This can be used with connectors which take an encrypted password as an input parameter.
-
RequestInfo - Allows you to check the IP address of the URL to which a request is being made by your application. This can be used to retrieve an IP address to add to the allowlist in Qlik Web Connectors.
-
EchoParameters - This table echoes back any query string parameters to show how they are being received by Qlik Web Connectors.
-
HTMLDecodeFile - Some services may return angle brackets written as < and >, for example, XML. This table converts these back and provides a raw response which you can use to load the data into your application. You can use this after first running the SaveToDisk table in the General Web Connector.
-
ReplaceTokensInFile - Takes a file and replaces any tokens, for example, {name} or {id}, with the values supplied and writes a new file.
Information noteAlthough only one token replacement is shown in the UI, you can add as many as you like in the request URL. These should be in the format ...&token_name1=value1&token_name2=value2, and so on.
ReplaceTokensInFile table example
The ReplaceTokensInFile table is useful in the General Web Connector. For example, you can create a template file containing the data to be HTTP posted to a web service:
C:\QlikWebConnectors\Temp\Template.xml
containing:
If you make the following request:
the result is the creation of:
C:\QlikWebConnectors\Temp\Input1.xml
containing:
You can then use the following as the value of the POST parameter on the General Web Connector:
@file=c:\QVSource\Temp\Input1.xml
Alternatively, you can specify the replacements in a separate CSV file rather than in the URL. Instead of adding the values to the URL you could first use the following command:
Which creates the following text file:
Then you can run the following:
This last technique, using a CSV file of replacements, is particularly useful if you need to replace tokens with, for example, Chinese or Japanese text, since if these values are not properly encoded they can be lost when placed in the URL.