<?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 How can I compare two dates in a Qlik REST API URL RestConnectorMasterTable call? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-compare-two-dates-in-a-Qlik-REST-API-URL/m-p/2549573#M22896</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm iterating through all apps in Qlik Cloud using the REST API and reading all reloads.&lt;/P&gt;&lt;P&gt;The WITH CONNECTION section looks like this:&lt;BR /&gt;WITH CONNECTION (&lt;BR /&gt;URL "https://$(myTenant)/api/v1/tasks/resources/043d080d-3d50-4549-8d24-f3d5f32c9259/runs?limit=100"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;However, I only want results that are greater than "today()-1" or greater than a specific date.&lt;/P&gt;&lt;P&gt;I've already tried "limit=100&amp;amp;endedAt&amp;gt;2026-05-15T00:00:00.000Z" with and without quotation marks, also single quotes. I get the error message "Invalid Query Parameter".&lt;/P&gt;&lt;P&gt;I also tried using QUERY, but it doesn't work:&lt;BR /&gt;?limit=100,QUERY "endedAt" "&amp;gt;2026-05-15T00:00:00.000Z"&lt;BR /&gt;&lt;BR /&gt;There's no error message, but I get all the reloads—it isn't limited to a specific date.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea how I can filter by a specific date?&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Thomas&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2026 12:16:48 GMT</pubDate>
    <dc:creator>Thomas23</dc:creator>
    <dc:date>2026-05-21T12:16:48Z</dc:date>
    <item>
      <title>How can I compare two dates in a Qlik REST API URL RestConnectorMasterTable call?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-compare-two-dates-in-a-Qlik-REST-API-URL/m-p/2549573#M22896</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm iterating through all apps in Qlik Cloud using the REST API and reading all reloads.&lt;/P&gt;&lt;P&gt;The WITH CONNECTION section looks like this:&lt;BR /&gt;WITH CONNECTION (&lt;BR /&gt;URL "https://$(myTenant)/api/v1/tasks/resources/043d080d-3d50-4549-8d24-f3d5f32c9259/runs?limit=100"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;However, I only want results that are greater than "today()-1" or greater than a specific date.&lt;/P&gt;&lt;P&gt;I've already tried "limit=100&amp;amp;endedAt&amp;gt;2026-05-15T00:00:00.000Z" with and without quotation marks, also single quotes. I get the error message "Invalid Query Parameter".&lt;/P&gt;&lt;P&gt;I also tried using QUERY, but it doesn't work:&lt;BR /&gt;?limit=100,QUERY "endedAt" "&amp;gt;2026-05-15T00:00:00.000Z"&lt;BR /&gt;&lt;BR /&gt;There's no error message, but I get all the reloads—it isn't limited to a specific date.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea how I can filter by a specific date?&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 12:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-compare-two-dates-in-a-Qlik-REST-API-URL/m-p/2549573#M22896</guid>
      <dc:creator>Thomas23</dc:creator>
      <dc:date>2026-05-21T12:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I compare two dates in a Qlik REST API URL RestConnectorMasterTable call?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-compare-two-dates-in-a-Qlik-REST-API-URL/m-p/2549596#M22898</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Thomas,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For this endpoint I don’t think you can filter by &lt;/SPAN&gt;&lt;SPAN&gt;endedAt&lt;/SPAN&gt;&lt;SPAN&gt; directly in the URL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The endpoint:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/api/v1/tasks/resources/{id}/runs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;only documents these query parameters:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;limit,&lt;/SPAN&gt;&lt;SPAN&gt;page,&lt;/SPAN&gt;&lt;SPAN&gt;sort&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;endedAt&lt;/SPAN&gt;&lt;SPAN&gt; is part of the response body, but it is not listed as a supported query/filter parameter. That is why a URL like this returns “Invalid Query Parameter”:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;?limit=100&amp;amp;endedAt&amp;gt;2026-05-15T00:00:00.000Z&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The closest you can do server-side is sort the results, for example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WITH CONNECTION (&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;URL "https://$(myTenant)/api/v1/tasks/resources/043d080d-3d50-4549-8d24-f3d5f32c9259/runs?limit=100&amp;amp;sort=-endedAt"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then filter the records in the Qlik load script after the REST call, for example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LET vFromDate = Timestamp(Today() - 1, 'YYYY-MM-DDThh:mm:ss.fffZ');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Runs_Filtered:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RESIDENT RestConnectorMasterTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WHERE Timestamp#(endedAt, 'YYYY-MM-DDThh:mm:ss.fffZ') &amp;gt;= Timestamp#('$(vFromDate)', 'YYYY-MM-DDThh:mm:ss.fffZ');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you have more than 100 runs, use the &lt;/SPAN&gt;&lt;SPAN&gt;page&lt;/SPAN&gt;&lt;SPAN&gt; / next link pagination and stop loading once the sorted &lt;/SPAN&gt;&lt;SPAN&gt;endedAt&lt;/SPAN&gt;&lt;SPAN&gt; values are older than your threshold.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 15:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-can-I-compare-two-dates-in-a-Qlik-REST-API-URL/m-p/2549596#M22898</guid>
      <dc:creator>stijnvaneven</dc:creator>
      <dc:date>2026-05-21T15:23:32Z</dc:date>
    </item>
  </channel>
</rss>

