<?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 Rest Connector in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector/m-p/2521048#M14969</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to retriever data from APIs by constructing a request body similar to the one shown in the image. I need to make the start_date dynamic, so I want to replace its value with a variable (for example, to get data from the past 3 years.)&lt;/P&gt;&lt;P&gt;When I set start_date directly to a fixed value like 2024-01-01, everything works fine. However, when I try to use a variable like $(vStartDate), I get an error saying the start_date is in an invalid format.&lt;/P&gt;&lt;P&gt;How can I correctly use a variable for start_date without causing a format error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2025 14:42:17 GMT</pubDate>
    <dc:creator>mumimgirl</dc:creator>
    <dc:date>2025-06-12T14:42:17Z</dc:date>
    <item>
      <title>Rest Connector</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector/m-p/2521048#M14969</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to retriever data from APIs by constructing a request body similar to the one shown in the image. I need to make the start_date dynamic, so I want to replace its value with a variable (for example, to get data from the past 3 years.)&lt;/P&gt;&lt;P&gt;When I set start_date directly to a fixed value like 2024-01-01, everything works fine. However, when I try to use a variable like $(vStartDate), I get an error saying the start_date is in an invalid format.&lt;/P&gt;&lt;P&gt;How can I correctly use a variable for start_date without causing a format error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 14:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector/m-p/2521048#M14969</guid>
      <dc:creator>mumimgirl</dc:creator>
      <dc:date>2025-06-12T14:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Connector</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector/m-p/2521050#M14970</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/322359"&gt;@mumimgirl&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;In your case, you have to set "with Connection" parameter in the Data Connection, because you can't use Variables in Data Connection editor, you must do it in the script.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a variable in the script&lt;/P&gt;&lt;P&gt;Let &lt;STRONG&gt;vBody&lt;/STRONG&gt; = '{&lt;BR /&gt;""app_key"":""$(vAPP_KEY)"",&lt;BR /&gt;""app_secret"":""$(vAPP_SECRET)"",&lt;BR /&gt;""param"":[{""pagina"":1,""registros_por_pagina"":$(vRegistrosPorPagina),""apenas_importado_api"":""N""}]}';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;In the end of code&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FROM JSON (wrap on) "root" PK "__KEY_root"&lt;BR /&gt;WITH CONNECTION(&lt;BR /&gt;BODY&lt;STRONG&gt; "$(vBody)"&lt;/STRONG&gt;&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bye!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 14:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector/m-p/2521050#M14970</guid>
      <dc:creator>rafaelencinas</dc:creator>
      <dc:date>2025-06-12T14:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rest Connector</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector/m-p/2521432#M14976</link>
      <description>&lt;P&gt;Thank u !!!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 08:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Rest-Connector/m-p/2521432#M14976</guid>
      <dc:creator>mumimgirl</dc:creator>
      <dc:date>2025-06-17T08:49:04Z</dc:date>
    </item>
  </channel>
</rss>

