<?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>article How to construct JSON list in an automation in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-construct-JSON-list-in-an-automation/ta-p/1783736</link>
    <description>&lt;P&gt;Constructing a JSON list that is compatible with the destination application requires few steps in automation.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add a variable block and define a list:&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;Go to &lt;STRONG&gt;Manage Variables&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Enter List name&lt;/LI&gt;
&lt;LI&gt;Change variable type to "&lt;STRONG&gt;List&lt;/STRONG&gt;"&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Save&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pradeepurala_0-1613637780404.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49338i2428B604676DE881/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pradeepurala_0-1613637780404.png" alt="pradeepurala_0-1613637780404.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Empty this list by selecting the '&lt;STRONG&gt;Empty&lt;/STRONG&gt;' operation in the block.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pradeepurala_1-1613637831978.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49339iCC68F0C07F7DFF28/image-size/large?v=v2&amp;amp;px=999" role="button" title="pradeepurala_1-1613637831978.png" alt="pradeepurala_1-1613637831978.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Loop through the Source list to iterate through each object of the list.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pradeepurala_5-1613638432323.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49344i0AB9F8F03D726F8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pradeepurala_5-1613638432323.png" alt="pradeepurala_5-1613638432323.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;At this point, we'll have to construct each object for our destination list with the appropriate Key-Value pair. &lt;BR /&gt;You will need another variable block inside the loop with the type "&lt;STRONG&gt;Object&lt;/STRONG&gt;".&lt;/LI&gt;
&lt;LI&gt;Select the "&lt;STRONG&gt;Set key/value&lt;/STRONG&gt;" operation for this variable block and enter the destination Object's Keys. Map the values for this object by selecting the values from the source list.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pradeepurala_6-1613638574752.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49345iEE86FC4F1CD3A32E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pradeepurala_6-1613638574752.png" alt="pradeepurala_6-1613638574752.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add another variable block and select the previous list variable. Now, add the operation "&lt;STRONG&gt;Add Item to&lt;/STRONG&gt;" and select the object variable previously constructed.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pradeepurala_7-1613638701908.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49346i252D9047F4DE73B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pradeepurala_7-1613638701908.png" alt="pradeepurala_7-1613638701908.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;We can use the output of this final list variable as a destination list.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 08:55:56 GMT</pubDate>
    <dc:creator>PradeepUrala</dc:creator>
    <dc:date>2021-09-30T08:55:56Z</dc:date>
    <item>
      <title>How to construct JSON list in an automation</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-construct-JSON-list-in-an-automation/ta-p/1783736</link>
      <description>&lt;P&gt;Constructing a JSON list that is compatible with the destination application requires few steps in automation.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add a variable block and define a list:&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;Go to &lt;STRONG&gt;Manage Variables&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Enter List name&lt;/LI&gt;
&lt;LI&gt;Change variable type to "&lt;STRONG&gt;List&lt;/STRONG&gt;"&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Save&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pradeepurala_0-1613637780404.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49338i2428B604676DE881/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pradeepurala_0-1613637780404.png" alt="pradeepurala_0-1613637780404.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Empty this list by selecting the '&lt;STRONG&gt;Empty&lt;/STRONG&gt;' operation in the block.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pradeepurala_1-1613637831978.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49339iCC68F0C07F7DFF28/image-size/large?v=v2&amp;amp;px=999" role="button" title="pradeepurala_1-1613637831978.png" alt="pradeepurala_1-1613637831978.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Loop through the Source list to iterate through each object of the list.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pradeepurala_5-1613638432323.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49344i0AB9F8F03D726F8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pradeepurala_5-1613638432323.png" alt="pradeepurala_5-1613638432323.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;At this point, we'll have to construct each object for our destination list with the appropriate Key-Value pair. &lt;BR /&gt;You will need another variable block inside the loop with the type "&lt;STRONG&gt;Object&lt;/STRONG&gt;".&lt;/LI&gt;
&lt;LI&gt;Select the "&lt;STRONG&gt;Set key/value&lt;/STRONG&gt;" operation for this variable block and enter the destination Object's Keys. Map the values for this object by selecting the values from the source list.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pradeepurala_6-1613638574752.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49345iEE86FC4F1CD3A32E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pradeepurala_6-1613638574752.png" alt="pradeepurala_6-1613638574752.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add another variable block and select the previous list variable. Now, add the operation "&lt;STRONG&gt;Add Item to&lt;/STRONG&gt;" and select the object variable previously constructed.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pradeepurala_7-1613638701908.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49346i252D9047F4DE73B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pradeepurala_7-1613638701908.png" alt="pradeepurala_7-1613638701908.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;We can use the output of this final list variable as a destination list.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 08:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-construct-JSON-list-in-an-automation/ta-p/1783736</guid>
      <dc:creator>PradeepUrala</dc:creator>
      <dc:date>2021-09-30T08:55:56Z</dc:date>
    </item>
  </channel>
</rss>

