<?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 Qlik NPrinting API - How to get values of items array inside Qlik Sense Load Script in Japan</title>
    <link>https://community.qlik.com/t5/Japan/Qlik-NPrinting-API-How-to-get-values-of-items-array-inside-Qlik/m-p/1474841#M2056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to get NPrinting's Users/Filters/Groups from Qlik Sense LoadScript with Qlik NPrinting APIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I referred to the document attached in this &lt;SPAN style="font-size: 10pt;"&gt;thread "&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/292037" style="font-size: 10pt;"&gt;How to use Qlik NPrinting APIs inside a Qlik Sense load script&lt;/A&gt;&lt;SPAN style="font-size: 10pt;"&gt;", but I couldn't understand how to get values of "items" array like below.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/September2017/APIs/NP+API/index.html#usersIdGroupsGet"&gt;&lt;CODE&gt;&lt;SPAN class="http-method"&gt;GET&lt;/SPAN&gt; /users/{id}/groups&lt;/CODE&gt;&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/September2017/APIs/NP+API/index.html#groupsIdUsersGet"&gt;&lt;CODE&gt;&lt;SPAN class="http-method"&gt;GET&lt;/SPAN&gt; /groups/{id}/users&lt;/CODE&gt;&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't search any information in the web,, so, I'd like to post this article.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: monospace; background-color: #eee;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RestConnectorMasterTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SQL SELECT &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; "__KEY_data",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; (SELECT &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; "@Value",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; "__FK_items"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; FROM "items" FK "__FK_items" ArrayValueAlias "@Value")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM JSON (wrap off) "data" PK "__KEY_data"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN&gt;WITH CONNECTION( URL "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://nprintingserver.domain.com:4993/api/v1/users/" rel="nofollow" target="_blank"&gt;https://nprintingserver.domain.com:4993/api/v1/users/&lt;/A&gt;&lt;SPAN&gt;&amp;lt;user's id&amp;gt;/groups", HTTPHEADER "cookie" "$(vCookie)" );&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;//you refer to the document what "$(vCookie)" means&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[items]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; [@Value] AS [Values],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; [__FK_items] AS [__KEY_data]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RESIDENT RestConnectorMasterTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;WHERE NOT IsNull([__FK_items]);&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I pray for it to work!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Junsei UCHIDA&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2018 07:39:00 GMT</pubDate>
    <dc:creator>junseiuchida</dc:creator>
    <dc:date>2018-03-13T07:39:00Z</dc:date>
    <item>
      <title>Qlik NPrinting API - How to get values of items array inside Qlik Sense Load Script</title>
      <link>https://community.qlik.com/t5/Japan/Qlik-NPrinting-API-How-to-get-values-of-items-array-inside-Qlik/m-p/1474841#M2056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to get NPrinting's Users/Filters/Groups from Qlik Sense LoadScript with Qlik NPrinting APIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I referred to the document attached in this &lt;SPAN style="font-size: 10pt;"&gt;thread "&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/292037" style="font-size: 10pt;"&gt;How to use Qlik NPrinting APIs inside a Qlik Sense load script&lt;/A&gt;&lt;SPAN style="font-size: 10pt;"&gt;", but I couldn't understand how to get values of "items" array like below.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/September2017/APIs/NP+API/index.html#usersIdGroupsGet"&gt;&lt;CODE&gt;&lt;SPAN class="http-method"&gt;GET&lt;/SPAN&gt; /users/{id}/groups&lt;/CODE&gt;&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/September2017/APIs/NP+API/index.html#groupsIdUsersGet"&gt;&lt;CODE&gt;&lt;SPAN class="http-method"&gt;GET&lt;/SPAN&gt; /groups/{id}/users&lt;/CODE&gt;&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't search any information in the web,, so, I'd like to post this article.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: monospace; background-color: #eee;"&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RestConnectorMasterTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SQL SELECT &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; "__KEY_data",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; (SELECT &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; "@Value",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; "__FK_items"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; FROM "items" FK "__FK_items" ArrayValueAlias "@Value")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM JSON (wrap off) "data" PK "__KEY_data"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN&gt;WITH CONNECTION( URL "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://nprintingserver.domain.com:4993/api/v1/users/" rel="nofollow" target="_blank"&gt;https://nprintingserver.domain.com:4993/api/v1/users/&lt;/A&gt;&lt;SPAN&gt;&amp;lt;user's id&amp;gt;/groups", HTTPHEADER "cookie" "$(vCookie)" );&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;//you refer to the document what "$(vCookie)" means&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[items]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; [@Value] AS [Values],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; [__FK_items] AS [__KEY_data]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RESIDENT RestConnectorMasterTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;WHERE NOT IsNull([__FK_items]);&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I pray for it to work!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Junsei UCHIDA&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 07:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Japan/Qlik-NPrinting-API-How-to-get-values-of-items-array-inside-Qlik/m-p/1474841#M2056</guid>
      <dc:creator>junseiuchida</dc:creator>
      <dc:date>2018-03-13T07:39:00Z</dc:date>
    </item>
  </channel>
</rss>

