<?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 Trouble loading table before REST API get in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-loading-table-before-REST-API-get/m-p/1790632#M14019</link>
    <description>&lt;P&gt;I'm struggling to properly load some data. I need to pull some data from a QVD file, sort it by a timestamp, pull the most recent record and take one field from that 'row'. However, I cannot get any data to load into the table structure, despite the same code working elsewhere.&lt;/P&gt;
&lt;P&gt;Here is the pseudo-code:&lt;/P&gt;
&lt;P&gt;Get existing data:&lt;/P&gt;
&lt;P&gt;TABLE1:&lt;/P&gt;
&lt;P&gt;LOAD&lt;BR /&gt;&amp;nbsp; &amp;nbsp;timestamp,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;checkpoint&lt;/P&gt;
&lt;P&gt;FROM [lib://QVD.QVD]&lt;/P&gt;
&lt;P&gt;(qvd);&lt;/P&gt;
&lt;P&gt;TABLE2:&lt;/P&gt;
&lt;P&gt;FIRST 1 LOAD *&lt;BR /&gt;RESIDENT TABLE1&lt;BR /&gt;ORDER BY timestamp DESC;&lt;/P&gt;
&lt;P&gt;LET CHECKPOINT_TOKEN = [checkpoint];&lt;/P&gt;
&lt;P&gt;Make API call with the above variable. However, using trace for this variable, it is always blank.&lt;/P&gt;
&lt;P&gt;Can anybody help?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 13 Aug 2021 18:38:01 GMT</pubDate>
    <dc:creator>martynwb</dc:creator>
    <dc:date>2021-08-13T18:38:01Z</dc:date>
    <item>
      <title>Trouble loading table before REST API get</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-loading-table-before-REST-API-get/m-p/1790632#M14019</link>
      <description>&lt;P&gt;I'm struggling to properly load some data. I need to pull some data from a QVD file, sort it by a timestamp, pull the most recent record and take one field from that 'row'. However, I cannot get any data to load into the table structure, despite the same code working elsewhere.&lt;/P&gt;
&lt;P&gt;Here is the pseudo-code:&lt;/P&gt;
&lt;P&gt;Get existing data:&lt;/P&gt;
&lt;P&gt;TABLE1:&lt;/P&gt;
&lt;P&gt;LOAD&lt;BR /&gt;&amp;nbsp; &amp;nbsp;timestamp,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;checkpoint&lt;/P&gt;
&lt;P&gt;FROM [lib://QVD.QVD]&lt;/P&gt;
&lt;P&gt;(qvd);&lt;/P&gt;
&lt;P&gt;TABLE2:&lt;/P&gt;
&lt;P&gt;FIRST 1 LOAD *&lt;BR /&gt;RESIDENT TABLE1&lt;BR /&gt;ORDER BY timestamp DESC;&lt;/P&gt;
&lt;P&gt;LET CHECKPOINT_TOKEN = [checkpoint];&lt;/P&gt;
&lt;P&gt;Make API call with the above variable. However, using trace for this variable, it is always blank.&lt;/P&gt;
&lt;P&gt;Can anybody help?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 18:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-loading-table-before-REST-API-get/m-p/1790632#M14019</guid>
      <dc:creator>martynwb</dc:creator>
      <dc:date>2021-08-13T18:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble loading table before REST API get</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-loading-table-before-REST-API-get/m-p/1790648#M14020</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;This is likely what you're looking for:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// Build table
[t1]:
LOAD * INLINE [
timestamp,checkpoint
2021-03-11 12:46:00,A
2021-03-11 12:47:00,B
];

// Load second table with reverse ordering by timestamp
[t2]:
NoConcatenate
FIRST 1 LOAD
	*
Resident [t1] ORDER by [timestamp] DESC;

DROP TABLE [t1];

// Inspect the first (and only) record in t2
LET CHECKPOINT_TOKEN = Peek('checkpoint',0);

TRACE $(CHECKPOINT_TOKEN);&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 11 Mar 2021 17:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Trouble-loading-table-before-REST-API-get/m-p/1790648#M14020</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2021-03-11T17:51:48Z</dc:date>
    </item>
  </channel>
</rss>

