<?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: Guidance on using REST 'Next Token' to connect to Commerce7 in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Guidance-on-using-REST-Next-Token-to-connect-to-Commerce7/m-p/2153197#M13121</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28906"&gt;@bobiloco&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If you cannot get it working through the REST Connector's GUI, you can set it to `cursor=start` and then insert the script. Once inserted, you can then add the `WITH CONNECTION` clause to the end and modify it, while putting the entire bit into a loop. This way, each time it loops, you use the `peek()` function to grab the current cursor and then modify the url (or header) to the next cursor -- continuing until either there is no more cursor or it is the same as the one prior (depends on the API and how they handle things). While this is admittedly more complex, it is extremely powerful and will prove a valuable feature to learn. You can see an example on how to use `WITH CONNECTION` &lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Create-REST-connection/Pagination-scenarios.htm" target="_self"&gt;here&lt;/A&gt; and &lt;A href="https://community.qlik.com/t5/Qlik-Sense-Documents/Handling-Refresh-Tokens-with-the-Qlik-REST-Connector/ta-p/1492836" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2023 17:58:34 GMT</pubDate>
    <dc:creator>Daniel_Pilla</dc:creator>
    <dc:date>2023-12-14T17:58:34Z</dc:date>
    <item>
      <title>Guidance on using REST 'Next Token' to connect to Commerce7</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Guidance-on-using-REST-Next-Token-to-connect-to-Commerce7/m-p/2153180#M13120</link>
      <description>&lt;P&gt;I've been trying to set up a REST connector to pull all the values from the Commerce7 Orders API.&lt;/P&gt;
&lt;P&gt;I'm not sure if I need to implement a loop or if this should work with just the connection details. Right now I keep pulling the same number of rows each time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From their documentation, I should use cursor=start for the first loop and then use the cursor that is returned from the query.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help or examples that you could pass my way would be very helpful!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bobiloco_0-1702573945111.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/125470i589FFB2A7B399DE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bobiloco_0-1702573945111.png" alt="bobiloco_0-1702573945111.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bobiloco_1-1702574035753.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/125471i6207FD68788F5CE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bobiloco_1-1702574035753.png" alt="bobiloco_1-1702574035753.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bobiloco_2-1702574055346.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/125472i3873DB8C33E8D83E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bobiloco_2-1702574055346.png" alt="bobiloco_2-1702574055346.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If I don't put "cursor = start " in the query parameters the select data screen shows Total instead of cursor and only pulls back one page.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bobiloco_3-1702574192929.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/125473i9663257D8992BCF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bobiloco_3-1702574192929.png" alt="bobiloco_3-1702574192929.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 17:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Guidance-on-using-REST-Next-Token-to-connect-to-Commerce7/m-p/2153180#M13120</guid>
      <dc:creator>bobiloco</dc:creator>
      <dc:date>2023-12-14T17:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Guidance on using REST 'Next Token' to connect to Commerce7</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Guidance-on-using-REST-Next-Token-to-connect-to-Commerce7/m-p/2153197#M13121</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28906"&gt;@bobiloco&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If you cannot get it working through the REST Connector's GUI, you can set it to `cursor=start` and then insert the script. Once inserted, you can then add the `WITH CONNECTION` clause to the end and modify it, while putting the entire bit into a loop. This way, each time it loops, you use the `peek()` function to grab the current cursor and then modify the url (or header) to the next cursor -- continuing until either there is no more cursor or it is the same as the one prior (depends on the API and how they handle things). While this is admittedly more complex, it is extremely powerful and will prove a valuable feature to learn. You can see an example on how to use `WITH CONNECTION` &lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Create-REST-connection/Pagination-scenarios.htm" target="_self"&gt;here&lt;/A&gt; and &lt;A href="https://community.qlik.com/t5/Qlik-Sense-Documents/Handling-Refresh-Tokens-with-the-Qlik-REST-Connector/ta-p/1492836" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 17:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Guidance-on-using-REST-Next-Token-to-connect-to-Commerce7/m-p/2153197#M13121</guid>
      <dc:creator>Daniel_Pilla</dc:creator>
      <dc:date>2023-12-14T17:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Guidance on using REST 'Next Token' to connect to Commerce7</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Guidance-on-using-REST-Next-Token-to-connect-to-Commerce7/m-p/2153203#M13122</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49113"&gt;@Daniel_Pilla&lt;/a&gt;&amp;nbsp; I suspected that this was the way forward and was starting to play with a second connection with different settings. I'll mark this as the answer after I play around a bit!&amp;nbsp;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 18:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Guidance-on-using-REST-Next-Token-to-connect-to-Commerce7/m-p/2153203#M13122</guid>
      <dc:creator>bobiloco</dc:creator>
      <dc:date>2023-12-14T18:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Guidance on using REST 'Next Token' to connect to Commerce7</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Guidance-on-using-REST-Next-Token-to-connect-to-Commerce7/m-p/2153275#M13124</link>
      <description>&lt;P&gt;This pointed me in the right direction. In the end I set it to custom pagination and put the cusor in the URL and it is now looping through and pulling back all records.&lt;/P&gt;
&lt;P&gt;WITH CONNECTION( URL "&lt;A href="https://api.commerce7.com/v1/order?cursor=$(vCursor" target="_blank"&gt;https://api.commerce7.com/v1/order?cursor=$(vCursor&lt;/A&gt;)",&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 22:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Guidance-on-using-REST-Next-Token-to-connect-to-Commerce7/m-p/2153275#M13124</guid>
      <dc:creator>bobiloco</dc:creator>
      <dc:date>2023-12-14T22:17:52Z</dc:date>
    </item>
  </channel>
</rss>

