<?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: Rest Connector with variable as query parameter in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector-with-variable-as-query-parameter/m-p/1414005#M3101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works fine. I created a dummy REST-connection to "open a connection". Then its modified by the "with connection".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15087951747092998 jive_text_macro" jivemacro_uid="_15087951747092998" modifiedtitle="true"&gt;
&lt;P&gt;LIB CONNECT TO 'DummyGetConnection';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vStartDate = date(addmonths(Today(),-6),'D.M.YYYY');&lt;/P&gt;
&lt;P&gt;LET vEndDate = date(Today(),'D.M.YYYY');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let vURL = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://X/NordicSharesEOD/EODPricesDD?';" rel="nofollow" target="_blank"&gt;https://X/NordicSharesEOD/EODPricesDD?';&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;LET vURL = vURL &amp;amp; '&amp;amp;token=GUSER-31fbe38f-43d9-427f-8dfa-b6e82570';&lt;/P&gt;
&lt;P&gt;LET vURL = vURL &amp;amp; '&amp;amp;todate=' &amp;amp; '$(vEndDate)';&lt;/P&gt;
&lt;P&gt;LET vURL = vURL &amp;amp; '&amp;amp;fromdate=' &amp;amp;&amp;nbsp; '$(vStartDate)';&lt;/P&gt;
&lt;P&gt;LET vURL = vURL &amp;amp; '&amp;amp;Accept=text/json';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[DailySymbols]:&lt;/P&gt;
&lt;P&gt;SQL SELECT &lt;/P&gt;
&lt;P&gt;"symbol",&lt;/P&gt;
&lt;P&gt;"trading_date",&lt;/P&gt;
&lt;P&gt;"official_last",&lt;/P&gt;
&lt;P&gt;"paid_first",&lt;/P&gt;
&lt;P&gt;"paid_high",&lt;/P&gt;
&lt;P&gt;"paid_low",&lt;/P&gt;
&lt;P&gt;"volume_traded",&lt;/P&gt;
&lt;P&gt;"exchangename"&lt;/P&gt;
&lt;P&gt;FROM JSON (wrap on) "root" QDL&lt;/P&gt;
&lt;P&gt;WITH CONNECTION (&lt;/P&gt;
&lt;P&gt;URL "$(vURL)"&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Oct 2017 21:47:32 GMT</pubDate>
    <dc:creator>mr_novice</dc:creator>
    <dc:date>2017-10-23T21:47:32Z</dc:date>
    <item>
      <title>Rest Connector with variable as query parameter</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector-with-variable-as-query-parameter/m-p/1414003#M3099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All!&lt;/P&gt;&lt;P&gt;Im working with the REST-connector. Which works fine! But, I need to change one of the query parameters every day. I need to send current date every time in the URL as a parameter and want to create a variable with this date. How can I accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Cris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 14:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector-with-variable-as-query-parameter/m-p/1414003#M3099</guid>
      <dc:creator>mr_novice</dc:creator>
      <dc:date>2017-10-23T14:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Connector with variable as query parameter</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector-with-variable-as-query-parameter/m-p/1414004#M3100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created this script but it throws me an error "There is no open data connection. The generated URL is correct and I can copy it from the error message and paste it in the browser and it works. Any ideas what to do? How can I open the connection? &lt;/P&gt;&lt;P&gt;Im using QlikSense Business Cloud.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15087897211838062 jive_text_macro" jivemacro_uid="_15087897211838062"&gt;
&lt;P&gt;LET vStartDate = date(addmonths(Today(),-6),'D.M.YYYY');&lt;/P&gt;
&lt;P&gt;LET vEndDate = date(Today(),'D.M.YYYY');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let vURL = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://X/NordicSharesEOD/EODPricesDD?';" rel="nofollow" target="_blank"&gt;https://X/NordicSharesEOD/EODPricesDD?';&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;LET vURL = vURL &amp;amp; '&amp;amp;token=GUSER-1f13bf6d-516e-4d0f-96fe-93011d77c791';&lt;/P&gt;
&lt;P&gt;LET vURL = vURL &amp;amp; '&amp;amp;todate=' &amp;amp; '$(vEndDate)';&lt;/P&gt;
&lt;P&gt;LET vURL = vURL &amp;amp; '&amp;amp;fromdate=' &amp;amp;&amp;nbsp; '$(vStartDate)';&lt;/P&gt;
&lt;P&gt;LET vURL = vURL &amp;amp; '&amp;amp;Accept=text/json';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[DailySymbols]:&lt;/P&gt;
&lt;P&gt;SQL SELECT&lt;/P&gt;
&lt;P&gt;"symbol",&lt;/P&gt;
&lt;P&gt;"trading_date",&lt;/P&gt;
&lt;P&gt;"official_last",&lt;/P&gt;
&lt;P&gt;"paid_first",&lt;/P&gt;
&lt;P&gt;"paid_high",&lt;/P&gt;
&lt;P&gt;"paid_low",&lt;/P&gt;
&lt;P&gt;"volume_traded",&lt;/P&gt;
&lt;P&gt;"exchangename"&lt;/P&gt;
&lt;P&gt;FROM JSON (wrap on) "root" QDL&lt;/P&gt;
&lt;P&gt;WITH CONNECTION (&lt;/P&gt;
&lt;P&gt;URL "$(vURL)"&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or suggestion is appreciated.&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Cris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 20:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector-with-variable-as-query-parameter/m-p/1414004#M3100</guid>
      <dc:creator>mr_novice</dc:creator>
      <dc:date>2017-10-23T20:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Connector with variable as query parameter</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector-with-variable-as-query-parameter/m-p/1414005#M3101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works fine. I created a dummy REST-connection to "open a connection". Then its modified by the "with connection".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15087951747092998 jive_text_macro" jivemacro_uid="_15087951747092998" modifiedtitle="true"&gt;
&lt;P&gt;LIB CONNECT TO 'DummyGetConnection';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vStartDate = date(addmonths(Today(),-6),'D.M.YYYY');&lt;/P&gt;
&lt;P&gt;LET vEndDate = date(Today(),'D.M.YYYY');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let vURL = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://X/NordicSharesEOD/EODPricesDD?';" rel="nofollow" target="_blank"&gt;https://X/NordicSharesEOD/EODPricesDD?';&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;LET vURL = vURL &amp;amp; '&amp;amp;token=GUSER-31fbe38f-43d9-427f-8dfa-b6e82570';&lt;/P&gt;
&lt;P&gt;LET vURL = vURL &amp;amp; '&amp;amp;todate=' &amp;amp; '$(vEndDate)';&lt;/P&gt;
&lt;P&gt;LET vURL = vURL &amp;amp; '&amp;amp;fromdate=' &amp;amp;&amp;nbsp; '$(vStartDate)';&lt;/P&gt;
&lt;P&gt;LET vURL = vURL &amp;amp; '&amp;amp;Accept=text/json';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[DailySymbols]:&lt;/P&gt;
&lt;P&gt;SQL SELECT &lt;/P&gt;
&lt;P&gt;"symbol",&lt;/P&gt;
&lt;P&gt;"trading_date",&lt;/P&gt;
&lt;P&gt;"official_last",&lt;/P&gt;
&lt;P&gt;"paid_first",&lt;/P&gt;
&lt;P&gt;"paid_high",&lt;/P&gt;
&lt;P&gt;"paid_low",&lt;/P&gt;
&lt;P&gt;"volume_traded",&lt;/P&gt;
&lt;P&gt;"exchangename"&lt;/P&gt;
&lt;P&gt;FROM JSON (wrap on) "root" QDL&lt;/P&gt;
&lt;P&gt;WITH CONNECTION (&lt;/P&gt;
&lt;P&gt;URL "$(vURL)"&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 21:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector-with-variable-as-query-parameter/m-p/1414005#M3101</guid>
      <dc:creator>mr_novice</dc:creator>
      <dc:date>2017-10-23T21:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Connector with variable as query parameter</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector-with-variable-as-query-parameter/m-p/1560854#M3749</link>
      <description>&lt;P&gt;I am having a similar issue wit a Rest connection where i need to have a dynamic date in the query parameter (yesterday). When i run the connection in legacy mode with the date as a QS variable, i get an authorization error. However, when i use the QS data connection with authorization, i can't figure out how to pass the QS variable to the data connection's query parameter. How are you retrieving the "&lt;SPAN&gt;&amp;amp;token=GUSER-31fbe38f-43d9-427f-8dfa-b6e82570" from the data connection in the above example? do you have a recommendation of how to execute my problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thx!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nate&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 15:06:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector-with-variable-as-query-parameter/m-p/1560854#M3749</guid>
      <dc:creator>nategreen</dc:creator>
      <dc:date>2019-03-25T15:06:07Z</dc:date>
    </item>
  </channel>
</rss>

