<?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: PULL FROM QRS API USING WITH CONNECTION in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/PULL-FROM-QRS-API-USING-WITH-CONNECTION/m-p/1678580#M12374</link>
    <description>&lt;P&gt;GET /qrs/dataconnnection does not have the createDate element but GET /qrs/dataconnection/full does.&lt;/P&gt;
&lt;P&gt;Example script:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;Let vDataConnection = 'monitor_apps_REST_app';

LIB CONNECT TO '$(vDataConnection)';

RestConnectorMasterTable:
SQL SELECT 
	"id" AS "id_u2",
	"createdDate" AS "createdDate_u0",
	"connectionstring",
	"type",
	"__KEY_root"
FROM JSON (wrap on) "root" PK "__KEY_root"
WITH CONNECTION(
	URL "https://localhost/qrs/dataconnection/full",
	HTTPHEADER "X-Qlik-xrfkey" "12345678qwertyui",
	QUERY "xrfkey" "12345678qwertyui"
);

[dataconnections]:
LOAD	[id_u2] AS [id],
	[createdDate_u0] AS [createddate],
	[connectionstring],
	[type],
	[__KEY_root]
RESIDENT RestConnectorMasterTable
WHERE NOT IsNull([__KEY_root]);

DROP TABLE RestConnectorMasterTable;&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 24 Feb 2020 15:18:20 GMT</pubDate>
    <dc:creator>Levi_Turner</dc:creator>
    <dc:date>2020-02-24T15:18:20Z</dc:date>
    <item>
      <title>PULL FROM QRS API USING WITH CONNECTION</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/PULL-FROM-QRS-API-USING-WITH-CONNECTION/m-p/1676307#M12350</link>
      <description>&lt;DIV&gt;&lt;FONT&gt;Hi...&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT&gt;Trying to pull from QRS API using WITH CONNECTION call as below...&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT&gt;When doing the reload, it pulls the expected number of rows, but not pulling the dimensions as expected.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT&gt;So KEY shows 1-368 but id &amp;amp; createdDate are null...&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT&gt;Any pointers greatfully received.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT&gt;RestConnectorMasterTable:&lt;BR /&gt;SQL SELECT&lt;BR /&gt;&amp;nbsp;"__KEY_root",&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT&gt;&amp;nbsp;(SELECT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;"id",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;"createdDate",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "connectionstring",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;"__FK_items"&lt;BR /&gt;&amp;nbsp;FROM "items" FK "__FK_items")&lt;BR /&gt;FROM JSON (wrap off) "root" PK "__KEY_root"&lt;BR /&gt;WITH CONNECTION(&lt;BR /&gt;URL "&lt;A href="https://QLIKSERVER/qrs/dataconnection" target="_blank"&gt;https://QLIKSERVER/qrs/dataconnection&lt;/A&gt;",&lt;BR /&gt;HTTPHEADER "X-Qlik-xrfkey" "12345678qwertyui",&lt;BR /&gt;QUERY "xrfkey" "12345678qwertyui"&lt;BR /&gt;);&lt;BR /&gt;;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Aug 2021 18:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/PULL-FROM-QRS-API-USING-WITH-CONNECTION/m-p/1676307#M12350</guid>
      <dc:creator>phillgilchrist</dc:creator>
      <dc:date>2021-08-13T18:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: PULL FROM QRS API USING WITH CONNECTION</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/PULL-FROM-QRS-API-USING-WITH-CONNECTION/m-p/1678580#M12374</link>
      <description>&lt;P&gt;GET /qrs/dataconnnection does not have the createDate element but GET /qrs/dataconnection/full does.&lt;/P&gt;
&lt;P&gt;Example script:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;Let vDataConnection = 'monitor_apps_REST_app';

LIB CONNECT TO '$(vDataConnection)';

RestConnectorMasterTable:
SQL SELECT 
	"id" AS "id_u2",
	"createdDate" AS "createdDate_u0",
	"connectionstring",
	"type",
	"__KEY_root"
FROM JSON (wrap on) "root" PK "__KEY_root"
WITH CONNECTION(
	URL "https://localhost/qrs/dataconnection/full",
	HTTPHEADER "X-Qlik-xrfkey" "12345678qwertyui",
	QUERY "xrfkey" "12345678qwertyui"
);

[dataconnections]:
LOAD	[id_u2] AS [id],
	[createdDate_u0] AS [createddate],
	[connectionstring],
	[type],
	[__KEY_root]
RESIDENT RestConnectorMasterTable
WHERE NOT IsNull([__KEY_root]);

DROP TABLE RestConnectorMasterTable;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 Feb 2020 15:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/PULL-FROM-QRS-API-USING-WITH-CONNECTION/m-p/1678580#M12374</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2020-02-24T15:18:20Z</dc:date>
    </item>
  </channel>
</rss>

