<?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 Use ID from API response instead of __KEY_root (REST Connector) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Use-ID-from-API-response-instead-of-KEY-root-REST-Connector/m-p/2454901#M98365</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;We use the REST Connector to load the data. Qlik recognizes and organizes the data from the API response: it creates multiple tables and adds a &lt;STRONG&gt;__KEY_root&lt;/STRONG&gt; column to each table. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;That field (&lt;STRONG&gt;__KEY_root&lt;/STRONG&gt;) is used for relations between those tables.&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;So, &lt;STRONG&gt;__KEY_root&lt;/STRONG&gt; is not from the API response, but it is the primary key that Qlik added to create relationships between the tables it generated based on the API response.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;For example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;RestConnectorMasterTable:&lt;BR /&gt;SQL SELECT &lt;BR /&gt;  "id", // &amp;lt;===== This is from API response&lt;BR /&gt;  "name",&lt;BR /&gt;  "__KEY_root", // &amp;lt;===== This is not from API response; Qlik added this&lt;BR /&gt;  (SELECT &lt;BR /&gt;     "@Value",&lt;BR /&gt;     "__FK_domains" // &amp;lt;===== This is foreign key ("__KEY_root", see below)&lt;BR /&gt;    FROM "domains" FK "__FK_domains" ArrayValueAlias "@Value"),&lt;BR /&gt;  (SELECT &lt;BR /&gt;     "__FK_custom_fields" // &amp;lt;===== This is foreign key ("__KEY_root", see below)&lt;BR /&gt;    FROM "custom_fields" FK "__FK_custom_fields")&lt;BR /&gt;FROM JSON (wrap on) "root" PK "__KEY_root"&lt;BR /&gt;WITH CONNECTION(Url "https://*******/api/v2/***");&lt;BR /&gt;&lt;BR /&gt;[domains]:&lt;BR /&gt;LOAD &lt;BR /&gt;  [@Value],&lt;BR /&gt;  [__FK_domains] AS [__KEY_root]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__FK_domains]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[custom_fields]:&lt;BR /&gt;LOAD &lt;BR /&gt;  [__FK_custom_fields] AS [__KEY_root]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__FK_custom_fields]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root]:&lt;BR /&gt;LOAD &lt;BR /&gt;  [id],&lt;BR /&gt;  [name],&lt;BR /&gt;  [__KEY_root]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__KEY_root]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DROP TABLE RestConnectorMasterTable;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_0-1716326812248.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166547i8B73BB65B6821938/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_0-1716326812248.png" alt="RoyBatty_0-1716326812248.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Is it possible not to add &lt;STRONG&gt;__KEY_root&lt;/STRONG&gt; but instead to use &lt;STRONG&gt;id&lt;/STRONG&gt; from API response (which is already primary key/unique)?&amp;nbsp;We ask this because later we have to load the data using the API and update all those tables, it's a complicated and long story &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt; We tried this (we removed/replaced &lt;STRONG&gt;__KEY_root&lt;/STRONG&gt; with &lt;STRONG&gt;id &lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;BR /&gt;RestConnectorMasterTable:&lt;BR /&gt;SQL SELECT &lt;BR /&gt;  "id",&lt;BR /&gt;  "name",&lt;BR /&gt;  (SELECT &lt;BR /&gt;     "@Value",&lt;BR /&gt;     "__FK_domains"&lt;BR /&gt;   FROM "domains" FK "__FK_domains" ArrayValueAlias "@Value"),&lt;BR /&gt;  (SELECT &lt;BR /&gt;     "__FK_custom_fields"&lt;BR /&gt;   FROM "custom_fields" FK "__FK_custom_fields")&lt;BR /&gt;FROM JSON (wrap on) "root" PK "id"&lt;BR /&gt;WITH CONNECTION(Url "https://****/api/v2/****");&lt;BR /&gt;&lt;BR /&gt;[domains]:&lt;BR /&gt;LOAD &lt;BR /&gt;  [@Value],&lt;BR /&gt;  [__FK_domains] AS [id]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__FK_domains]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[custom_fields]:&lt;BR /&gt;LOAD &lt;BR /&gt;  [__FK_custom_fields] AS [id]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__FK_custom_fields]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root]:&lt;BR /&gt;LOAD &lt;BR /&gt;  [id],&lt;BR /&gt;  [name]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([id]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DROP TABLE RestConnectorMasterTable;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;But something is wrong, in these two "non root" tables the "id" column values ​​are still the values ​​generated by Qlik, starting from 1... (they are not actually the real "id" values ​​from the API response):&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_1-1716328170830.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166548i11868BA1EA4E4F2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_1-1716328170830.png" alt="RoyBatty_1-1716328170830.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="RoyBatty_2-1716328216699.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166549i6FF569A57C9C475D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_2-1716328216699.png" alt="RoyBatty_2-1716328216699.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2024 12:11:21 GMT</pubDate>
    <dc:creator>RoyBatty</dc:creator>
    <dc:date>2024-05-22T12:11:21Z</dc:date>
    <item>
      <title>Use ID from API response instead of __KEY_root (REST Connector)</title>
      <link>https://community.qlik.com/t5/App-Development/Use-ID-from-API-response-instead-of-KEY-root-REST-Connector/m-p/2454901#M98365</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;We use the REST Connector to load the data. Qlik recognizes and organizes the data from the API response: it creates multiple tables and adds a &lt;STRONG&gt;__KEY_root&lt;/STRONG&gt; column to each table. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;That field (&lt;STRONG&gt;__KEY_root&lt;/STRONG&gt;) is used for relations between those tables.&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;So, &lt;STRONG&gt;__KEY_root&lt;/STRONG&gt; is not from the API response, but it is the primary key that Qlik added to create relationships between the tables it generated based on the API response.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;For example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;RestConnectorMasterTable:&lt;BR /&gt;SQL SELECT &lt;BR /&gt;  "id", // &amp;lt;===== This is from API response&lt;BR /&gt;  "name",&lt;BR /&gt;  "__KEY_root", // &amp;lt;===== This is not from API response; Qlik added this&lt;BR /&gt;  (SELECT &lt;BR /&gt;     "@Value",&lt;BR /&gt;     "__FK_domains" // &amp;lt;===== This is foreign key ("__KEY_root", see below)&lt;BR /&gt;    FROM "domains" FK "__FK_domains" ArrayValueAlias "@Value"),&lt;BR /&gt;  (SELECT &lt;BR /&gt;     "__FK_custom_fields" // &amp;lt;===== This is foreign key ("__KEY_root", see below)&lt;BR /&gt;    FROM "custom_fields" FK "__FK_custom_fields")&lt;BR /&gt;FROM JSON (wrap on) "root" PK "__KEY_root"&lt;BR /&gt;WITH CONNECTION(Url "https://*******/api/v2/***");&lt;BR /&gt;&lt;BR /&gt;[domains]:&lt;BR /&gt;LOAD &lt;BR /&gt;  [@Value],&lt;BR /&gt;  [__FK_domains] AS [__KEY_root]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__FK_domains]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[custom_fields]:&lt;BR /&gt;LOAD &lt;BR /&gt;  [__FK_custom_fields] AS [__KEY_root]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__FK_custom_fields]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root]:&lt;BR /&gt;LOAD &lt;BR /&gt;  [id],&lt;BR /&gt;  [name],&lt;BR /&gt;  [__KEY_root]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__KEY_root]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DROP TABLE RestConnectorMasterTable;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_0-1716326812248.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166547i8B73BB65B6821938/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_0-1716326812248.png" alt="RoyBatty_0-1716326812248.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Is it possible not to add &lt;STRONG&gt;__KEY_root&lt;/STRONG&gt; but instead to use &lt;STRONG&gt;id&lt;/STRONG&gt; from API response (which is already primary key/unique)?&amp;nbsp;We ask this because later we have to load the data using the API and update all those tables, it's a complicated and long story &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt; We tried this (we removed/replaced &lt;STRONG&gt;__KEY_root&lt;/STRONG&gt; with &lt;STRONG&gt;id &lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;BR /&gt;RestConnectorMasterTable:&lt;BR /&gt;SQL SELECT &lt;BR /&gt;  "id",&lt;BR /&gt;  "name",&lt;BR /&gt;  (SELECT &lt;BR /&gt;     "@Value",&lt;BR /&gt;     "__FK_domains"&lt;BR /&gt;   FROM "domains" FK "__FK_domains" ArrayValueAlias "@Value"),&lt;BR /&gt;  (SELECT &lt;BR /&gt;     "__FK_custom_fields"&lt;BR /&gt;   FROM "custom_fields" FK "__FK_custom_fields")&lt;BR /&gt;FROM JSON (wrap on) "root" PK "id"&lt;BR /&gt;WITH CONNECTION(Url "https://****/api/v2/****");&lt;BR /&gt;&lt;BR /&gt;[domains]:&lt;BR /&gt;LOAD &lt;BR /&gt;  [@Value],&lt;BR /&gt;  [__FK_domains] AS [id]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__FK_domains]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[custom_fields]:&lt;BR /&gt;LOAD &lt;BR /&gt;  [__FK_custom_fields] AS [id]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__FK_custom_fields]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root]:&lt;BR /&gt;LOAD &lt;BR /&gt;  [id],&lt;BR /&gt;  [name]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([id]);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DROP TABLE RestConnectorMasterTable;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;But something is wrong, in these two "non root" tables the "id" column values ​​are still the values ​​generated by Qlik, starting from 1... (they are not actually the real "id" values ​​from the API response):&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_1-1716328170830.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166548i11868BA1EA4E4F2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_1-1716328170830.png" alt="RoyBatty_1-1716328170830.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="RoyBatty_2-1716328216699.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166549i6FF569A57C9C475D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_2-1716328216699.png" alt="RoyBatty_2-1716328216699.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 12:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-ID-from-API-response-instead-of-KEY-root-REST-Connector/m-p/2454901#M98365</guid>
      <dc:creator>RoyBatty</dc:creator>
      <dc:date>2024-05-22T12:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use ID from API response instead of __KEY_root (REST Connector)</title>
      <link>https://community.qlik.com/t5/App-Development/Use-ID-from-API-response-instead-of-KEY-root-REST-Connector/m-p/2455176#M98396</link>
      <description>&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;If what we want is possible (to not add &lt;STRONG&gt;__KEY_root&lt;/STRONG&gt; at all, but only to use &lt;STRONG&gt;id&lt;/STRONG&gt; as a key) -&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;then it is necessary to change this SQL somehow:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;SQL SELECT &lt;BR /&gt;  "id", // &amp;lt;===== This is from API response&lt;BR /&gt;  "name",&lt;BR /&gt;  "__KEY_root", // &amp;lt;===== This is not from API response; Qlik added this&lt;BR /&gt;  (SELECT &lt;BR /&gt;     "@Value",&lt;BR /&gt;     "__FK_domains"&lt;BR /&gt;    FROM "domains" FK "__FK_domains" ArrayValueAlias "@Value"),&lt;BR /&gt;  (SELECT &lt;BR /&gt;     "__FK_custom_fields"&lt;BR /&gt;    FROM "custom_fields" FK "__FK_custom_fields")&lt;BR /&gt;FROM JSON (wrap on) "root" PK "__KEY_root"&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;The problem seems to be in the sub-selects:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;&amp;nbsp;(SELECT &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "@Value",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "__FK_domains"&lt;BR /&gt;&amp;nbsp; FROM "domains" FK "__FK_domains" ArrayValueAlias "@Value"),&lt;BR /&gt;&amp;nbsp;(SELECT &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "__FK_custom_fields"&lt;BR /&gt;&amp;nbsp; FROM "custom_fields" FK "__FK_custom_fields")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;FROM JSON (wrap on) "root" PK "__KEY_root"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;specifically this syntax with "FK" (if we had to guess),&amp;nbsp;but we are not sure how to change it to use &lt;STRONG&gt;id&lt;/STRONG&gt; as foreign key in those sub-selects &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 12:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-ID-from-API-response-instead-of-KEY-root-REST-Connector/m-p/2455176#M98396</guid>
      <dc:creator>RoyBatty</dc:creator>
      <dc:date>2024-05-22T12:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use ID from API response instead of __KEY_root (REST Connector)</title>
      <link>https://community.qlik.com/t5/App-Development/Use-ID-from-API-response-instead-of-KEY-root-REST-Connector/m-p/2455739#M98453</link>
      <description>&lt;PRE&gt;RestConnectorMasterTable:&lt;BR /&gt;SQL SELECT &lt;BR /&gt;&amp;nbsp; "id", &lt;BR /&gt;&amp;nbsp; "name",&lt;BR /&gt;&amp;nbsp; "__KEY_root", &lt;BR /&gt;&amp;nbsp; (SELECT &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "@Value",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "__FK_domains" &lt;BR /&gt;&amp;nbsp; FROM "domains" FK "__FK_domains" ArrayValueAlias "@Value")&lt;BR /&gt;FROM JSON (wrap on) "root" PK "__KEY_root"&lt;BR /&gt;WITH CONNECTION(Url "https://********");&lt;BR /&gt;&lt;BR /&gt;[domains]:&lt;BR /&gt;LOAD &lt;BR /&gt;&amp;nbsp; [@Value],&lt;BR /&gt;&amp;nbsp; [__FK_domains] AS [__KEY_root] &lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__FK_domains]);&lt;BR /&gt;&lt;BR /&gt;// Add "id" and remove __KEY_root: &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;LEFT JOIN([domains])&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp; [id],&lt;BR /&gt;&amp;nbsp; [__KEY_root]&lt;BR /&gt;RESIDENT RestConnectorMasterTable;&lt;BR /&gt;WHERE NOT IsNull([__KEY_root]);&lt;BR /&gt;&lt;BR /&gt;DROP field [__KEY_root] FROM [domains];&lt;BR /&gt;&lt;BR /&gt;[root]: // Removed [__KEY_root] &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;LOAD &lt;BR /&gt;&amp;nbsp; [id],&lt;BR /&gt;&amp;nbsp; [name]&lt;BR /&gt;RESIDENT RestConnectorMasterTable&lt;BR /&gt;WHERE NOT IsNull([__KEY_root]);&lt;BR /&gt;&lt;BR /&gt;DROP TABLE RestConnectorMasterTable;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 May 2024 14:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-ID-from-API-response-instead-of-KEY-root-REST-Connector/m-p/2455739#M98453</guid>
      <dc:creator>RoyBatty</dc:creator>
      <dc:date>2024-05-23T14:56:59Z</dc:date>
    </item>
  </channel>
</rss>

