<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Pass variables to REST API connection string in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Pass-variables-to-REST-API-connection-string/m-p/1217994#M6282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Puneet, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming you have not resolved this yet - here is what I have done to parameterise a query parameter&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I used custom pagination to let QS provide me with a query template to use the For ... Next loop, initiated a counter (CounterA) to load the pages, and constructed the URL by passing the counter value. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;RestConnectorMasterTable: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;SQL Select ..... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;From .... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN&gt;With Connection (URL "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://api.example.com/companies?page_number=" rel="nofollow" target="_blank"&gt;https://api.example.com/companies?page_number=&lt;/A&gt;&lt;SPAN&gt; $ (CounterA)" );&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The loop was stopped when CounterA = total count. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Similarly, I am using a preexisting table to read field values and construct the URL to fetch only required details. So I would say yes, it is possible to 'parameterise' a query parameter. Check the documentation at &lt;A href="http://help.qlik.com/en-US/Connectors/Subsystems/REST_connector_help/Content/1.0/Load-REST-data/Select-REST-data-with-Data-load-editor.htm?_ga=1.149164350.945536020.1443719001" title="http://help.qlik.com/en-US/Connectors/Subsystems/REST_connector_help/Content/1.0/Load-REST-data/Select-REST-data-with-Data-load-editor.htm?_ga=1.149164350.945536020.1443719001"&gt;Select REST data with the Data load editor ‒ Qlik Connectors&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Also check Bjorn's response here - &lt;A href="https://community.qlik.com/message/1171310"&gt;Re: REST CONNECTOR  locate the Authorization token&lt;/A&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;hope this helps. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Ajit&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Mar 2017 23:11:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-01T23:11:09Z</dc:date>
    <item>
      <title>Pass variables to REST API connection string</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Pass-variables-to-REST-API-connection-string/m-p/1217993#M6281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I am using Qlik Sense desktop 3.1 on Windows 10. I am trying to use Google Maps Geocoding REST API in my Qlik Sense application. The plan is use this API to retrieve the Lat, Long coordinates for the city dimension for maps based visualisation. The Google Maps API has following format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln"&gt;https&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="com" style="color: #d81b60;"&gt;//maps.googleapis.com/maps/api/geocode/json?address=Stockholm&amp;amp;key=&lt;/SPAN&gt;&lt;VAR class="apiparam replaceable-credential" data-tooltip="Click to insert your credentials" data-tooltip-align="b,c" style="color: #ec407a; font-weight: bold; padding: 2px;"&gt;&lt;SPAN class="com" style="color: #d81b60;"&gt;YOUR_API_KEY&lt;/SPAN&gt;&lt;/VAR&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="com" style="color: #d81b60;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;From the above url we can see that the address parameter is where I need to pass the city and it forms the part of the Query Paramters in the Qlik Rest Connector. My plan is to have a For loop and pass all the cities I have to address query parameter save the co-ordinates in a seperate table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Observation&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I tried using a variable '$(b)' in the connection and then assign the variable the value before connecting Rest connection but it does not pass the right value. Instead it used passes the 'b' as text and not the value&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the current release (Qlik Sense 3.1 Desktop) &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Can a Query parameter be parameterised to achieve what I am looking for?&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;If not, is there a work around?&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Puneet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 06:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Pass-variables-to-REST-API-connection-string/m-p/1217993#M6281</guid>
      <dc:creator />
      <dc:date>2016-12-07T06:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pass variables to REST API connection string</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Pass-variables-to-REST-API-connection-string/m-p/1217994#M6282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Puneet, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming you have not resolved this yet - here is what I have done to parameterise a query parameter&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I used custom pagination to let QS provide me with a query template to use the For ... Next loop, initiated a counter (CounterA) to load the pages, and constructed the URL by passing the counter value. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;RestConnectorMasterTable: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;SQL Select ..... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;From .... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN&gt;With Connection (URL "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://api.example.com/companies?page_number=" rel="nofollow" target="_blank"&gt;https://api.example.com/companies?page_number=&lt;/A&gt;&lt;SPAN&gt; $ (CounterA)" );&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The loop was stopped when CounterA = total count. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Similarly, I am using a preexisting table to read field values and construct the URL to fetch only required details. So I would say yes, it is possible to 'parameterise' a query parameter. Check the documentation at &lt;A href="http://help.qlik.com/en-US/Connectors/Subsystems/REST_connector_help/Content/1.0/Load-REST-data/Select-REST-data-with-Data-load-editor.htm?_ga=1.149164350.945536020.1443719001" title="http://help.qlik.com/en-US/Connectors/Subsystems/REST_connector_help/Content/1.0/Load-REST-data/Select-REST-data-with-Data-load-editor.htm?_ga=1.149164350.945536020.1443719001"&gt;Select REST data with the Data load editor ‒ Qlik Connectors&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Also check Bjorn's response here - &lt;A href="https://community.qlik.com/message/1171310"&gt;Re: REST CONNECTOR  locate the Authorization token&lt;/A&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;hope this helps. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Ajit&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 23:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Pass-variables-to-REST-API-connection-string/m-p/1217994#M6282</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-01T23:11:09Z</dc:date>
    </item>
  </channel>
</rss>

