<?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 - How to retain the API JSON response in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-How-to-retain-the-API-JSON-response/m-p/2546091#M15434</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for some advise on using the REST connector, i&amp;nbsp;have this fully working however the connector during the setup wizard wants to flatten the response into a useable table - which is great for so many use cases however i need my response to be kept in a JSON / text string (as my fields are dynamic so hard coding the script for specific fields doesnt work).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any experience in doing this or suggests an alternative?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2026 16:30:09 GMT</pubDate>
    <dc:creator>jmcy2408</dc:creator>
    <dc:date>2026-04-02T16:30:09Z</dc:date>
    <item>
      <title>REST Connector - How to retain the API JSON response</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-How-to-retain-the-API-JSON-response/m-p/2546091#M15434</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for some advise on using the REST connector, i&amp;nbsp;have this fully working however the connector during the setup wizard wants to flatten the response into a useable table - which is great for so many use cases however i need my response to be kept in a JSON / text string (as my fields are dynamic so hard coding the script for specific fields doesnt work).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any experience in doing this or suggests an alternative?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2026 16:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-How-to-retain-the-API-JSON-response/m-p/2546091#M15434</guid>
      <dc:creator>jmcy2408</dc:creator>
      <dc:date>2026-04-02T16:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: REST Connector - How to retain the API JSON response</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-How-to-retain-the-API-JSON-response/m-p/2546103#M15435</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/153372"&gt;@jmcy2408&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If you know the full table schema, you can create an empty table with all the fields as placeholders and force a concatenation with your Rest Data.&lt;BR /&gt;Example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MyTable:
LOAD * INLINE [
    Field1, Field2, Field3, Fiel4
];

LIB CONNECT TO 'YourRestConnection';

RestConnectorMasterTable:
SQL SELECT 
	"__KEY_root",
	(SELECT 
		"Field1",
		"Field2"
		"__FK_data"
	FROM "data" FK "__FK_data")
FROM JSON (wrap on) "root" PK "__KEY_root";

// Must force concatenation with the empty table
Concatenate([MyTable])
LOAD
    Field1,
    Field2
RESIDENT
    RestConnectorMasterTable
WHERE
    NOT IsNull([__FK_data])
;

DROP TABLE RestConnectorMasterTable;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my example, Field3 and 4 will exist in the final combined table, but with null values.&lt;/P&gt;&lt;P&gt;Does that help you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mark Costa&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2026 04:05:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-How-to-retain-the-API-JSON-response/m-p/2546103#M15435</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2026-04-03T04:05:02Z</dc:date>
    </item>
  </channel>
</rss>

