<?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 : Qlik Application Automation for Loop and Reduce - Dynamic process in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-Qlik-Application-Automation-for-Loop-and-Reduce-Dynamic/ta-p/1836592</link>
    <description>&lt;P&gt;Some of the QlikView users should remember the Loop and Reduce functionality. It has been made available in Qlik Sense only through the use of API calls, which scared quite a few people uncomfortable with anything but the GUI.&amp;nbsp;That was until the arrival of Qlik Application Automation which turns it in a piece of cake for everyone.&lt;/P&gt;
&lt;P&gt;You can find other two articles on the Loop and Reduce block, they both are linked on the bottom of this page. Unlike the mentioned article, this solution will use only one dynaminc automation to process any application made or to come&lt;/P&gt;
&lt;H5 id="toc-hId-1975443289"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;This guide does not cover&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H5&gt;
&lt;UL&gt;
&lt;LI&gt;Basic use of Qlik Sense Enterprise SaaS&lt;/LI&gt;
&lt;LI&gt;How to connect Qlik Application Automation Connectors&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;How to write security rules to grant access to specific groups on each app slice&lt;/LI&gt;
&lt;/UL&gt;
&lt;H5 id="toc-hId-1964940185"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;What we are going to achieve:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H5&gt;
&lt;P&gt;We want any App with a master item DIMENSION having a specific TAG, will be splitted on that dimension. This will happen on every reload event.&amp;nbsp; Moreover we also want to have the chance to drive the publish action on a specific space id.&lt;/P&gt;
&lt;P&gt;&lt;LI-TOC indent="15" liststyle="none" maxheadinglevel="4"&gt;&lt;/LI-TOC&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId-837565446"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;1. Create the Automation&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;From your tenant web hub:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Add&lt;/STRONG&gt; &lt;STRONG&gt;new&lt;/STRONG&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;New Automation&lt;/STRONG&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Give your new automation a name description. Optionally, select the more appropriate icons&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Save&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 id="toc-hId-1528126920"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;a. Start Block&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;We want to trigger this automation every time an app is reloaded. In the Start Block select:&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;Run Mode&lt;/STRONG&gt;&lt;/EM&gt;:&amp;nbsp; Webhook&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;Connector&lt;/EM&gt;&lt;/STRONG&gt;: Qlik Cloud Service&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;Event&lt;/STRONG&gt;&lt;/EM&gt;:&amp;nbsp; App Reload Finished&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4 id="toc-hId--279327543"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;b. Get the target space ID&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;The Loop and Reduce process produce several applications, and we don't want to pollute the personal space, for this reason, we want to move all of them to a separated space.&lt;/P&gt;
&lt;P&gt;From the Qlik Cloud Service Connector drag the &lt;STRONG&gt;List Variables&lt;/STRONG&gt; into the canvas and attach it to the start block. Fill the App Id with the app id coming from the start block:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;App Reload Finished &amp;gt; Data&amp;nbsp; &amp;gt; Id&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermata da 2021-09-17 13-58-22.png" style="width: 920px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62172i24D28ED8545CAB13/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata da 2021-09-17 13-58-22.png" alt="Schermata da 2021-09-17 13-58-22.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This block will return all the variables in the app, we are going to use it later to catch the target space id.&lt;/P&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4 id="toc-hId--1983307500"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;c. Let's check if we have to reduce this App&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;We expect to see a special TAG named LR on a Dimension, in order to proceed in the loop and reduce process.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Now let's start the loop over all the Dimensions.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;From the left-hand side menu select Qlik Cloud Service and then drag the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;List Dimensions&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;block just out of the&amp;nbsp;&lt;STRONG&gt;List Variables&lt;/STRONG&gt;&amp;nbsp;loop. Fill the App Id fields with the reloaded app id coming from the start block:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;App Reload Finished &amp;gt; Data&amp;nbsp; &amp;gt; Id&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schermata da 2021-09-17 14-01-59.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62174i4C541722B7F96C2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Schermata da 2021-09-17 14-01-59.png" alt="Schermata da 2021-09-17 14-01-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;List Dimension will loop over all dimensions in the reloaded app. For each dimension we want to check if there is the tag named LR. From the basic block,&amp;nbsp; drag the condition block in the &lt;STRONG&gt;List Dimensions&lt;/STRONG&gt; loop. We want to check if the Tags Array contain the TAG named LR.&lt;/P&gt;
&lt;P&gt;In the first box set List &lt;EM&gt;Dimensions &amp;gt; Itam &amp;gt; Q Meta &amp;gt; Tags ,&amp;nbsp;&lt;/EM&gt;then select &lt;EM&gt;Contain&lt;/EM&gt; and in the last box type &lt;EM&gt;LR&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schermata da 2021-09-17 14-04-31.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62176i2A4F501C9755A631/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata da 2021-09-17 14-04-31.png" alt="Schermata da 2021-09-17 14-04-31.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case we found it we are ready to trigger the &lt;STRONG&gt;Loop And Reduce&lt;/STRONG&gt; block, you can find it under the Qlik Cloud Service Connector. Fill the App Id field with the application id coming from the start block.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;App Reload Finished &amp;gt; Data &amp;gt; Id&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;And fill the Reduction Field with the Dimension Title name&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;List Dimensions&amp;nbsp; &amp;gt; Item &amp;gt; Q Meta &amp;gt; Title&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schermata da 2021-09-17 15-19-01.png" style="width: 745px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62181i21B8544BE6820584/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata da 2021-09-17 15-19-01.png" alt="Schermata da 2021-09-17 15-19-01.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Loop And Reduce block create slices of the original application and export them with&amp;nbsp; an Id. At this point we can re-import it in a different location and with a different name, for this work we need the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Import App From Export Id&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;block, you can find it in the Qlik Cloud Service Connector.&lt;/P&gt;
&lt;P&gt;Fill in the fields as follow:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;File Id&lt;/STRONG&gt;: Export Id coming from the previous block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;: The original app name followed by the reduced dimension value&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schermata da 2021-09-17 15-20-09.png" style="width: 871px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62182iB093344578753B06/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata da 2021-09-17 15-20-09.png" alt="Schermata da 2021-09-17 15-20-09.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the &lt;STRONG&gt;Space Id&lt;/STRONG&gt;, click on the listVariables block, select the qDefinition then the below windows will appear. Select the last option and pick the value when the &lt;EM&gt;qName&lt;/EM&gt; is equal to &lt;EM&gt;TargetSpace&lt;/EM&gt;&lt;/P&gt;
&lt;H3&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schermata da 2021-09-17 15-32-49.png" style="width: 617px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62191iE29E8F754B7E33A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata da 2021-09-17 15-32-49.png" alt="Schermata da 2021-09-17 15-32-49.png" /&gt;&lt;/span&gt;&lt;/H3&gt;
&lt;P&gt;In case the TargetSpace variable does not exist in the app, the reduced app will be generated in the personal space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;2. Set the Qlik Sense Enterprise SaaS environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Open the App you want to reduce and create a new dimension. In this example the dimension is a simple field mapping, but you can use Qlik functions to build a complex field combination. You just need to add the TAG LR on the dimension you want to use for the Loop and Reduce.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Vincenzo_Esposito_0-1631786663625.png" style="width: 598px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62039i67AF37B0DD3B229E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vincenzo_Esposito_0-1631786663625.png" alt="Vincenzo_Esposito_0-1631786663625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you want all the reduced apps to be collected in a space different from your Personal space, it is enough to add a new variable with the name "TargetSpace" and set it to the space Id.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schermata da 2021-09-17 11-46-59.png" style="width: 696px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62170iBE4B1BAA14EA8258/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata da 2021-09-17 11-46-59.png" alt="Schermata da 2021-09-17 11-46-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Import Task&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;As usual, you can follow the above steps to get your automation done or you can just import it from the Automation JSON definition attached in this article.&lt;/P&gt;
&lt;P style="font-style: italic;"&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;/P&gt;
&lt;P style="font-style: italic;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 id="toc-hId--512048190"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Application Automation" id="qlikApplicationAutomation"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise SaaS" id="qlikSenseEnterpriseSaaS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Qlik Cloud Service Connector&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A title="How to: Loop and reduce with Qlik Application Automation (advanced)" href="https://community.qlik.com/t5/Knowledge/How-to-Loop-and-reduce-with-Qlik-Application-Automation-advanced/ta-p/1834378" target="_blank" rel="noopener"&gt;How to: Loop and reduce with Qlik Application Automation (advanced) &amp;nbsp;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A title="How to: Loop and reduce with Qlik Application Automation (basic)" href="https://community.qlik.com/t5/Knowledge/How-to-Loop-and-reduce-with-Qlik-Application-Automation-basic/ta-p/1835151" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to: Loop and reduce with Qlik Application Automation (basic)&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 14 Feb 2023 09:44:16 GMT</pubDate>
    <dc:creator>Vincenzo_Esposito</dc:creator>
    <dc:date>2023-02-14T09:44:16Z</dc:date>
    <item>
      <title>How to : Qlik Application Automation for Loop and Reduce - Dynamic process</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-Qlik-Application-Automation-for-Loop-and-Reduce-Dynamic/ta-p/1836592</link>
      <description>&lt;P&gt;Some of the QlikView users should remember the Loop and Reduce functionality. It has been made available in Qlik Sense only through the use of API calls, which scared quite a few people uncomfortable with anything but the GUI.&amp;nbsp;That was until the arrival of Qlik Application Automation which turns it in a piece of cake for everyone.&lt;/P&gt;
&lt;P&gt;You can find other two articles on the Loop and Reduce block, they both are linked on the bottom of this page. Unlike the mentioned article, this solution will use only one dynaminc automation to process any application made or to come&lt;/P&gt;
&lt;H5 id="toc-hId-1975443289"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;This guide does not cover&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H5&gt;
&lt;UL&gt;
&lt;LI&gt;Basic use of Qlik Sense Enterprise SaaS&lt;/LI&gt;
&lt;LI&gt;How to connect Qlik Application Automation Connectors&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;How to write security rules to grant access to specific groups on each app slice&lt;/LI&gt;
&lt;/UL&gt;
&lt;H5 id="toc-hId-1964940185"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;What we are going to achieve:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H5&gt;
&lt;P&gt;We want any App with a master item DIMENSION having a specific TAG, will be splitted on that dimension. This will happen on every reload event.&amp;nbsp; Moreover we also want to have the chance to drive the publish action on a specific space id.&lt;/P&gt;
&lt;P&gt;&lt;LI-TOC indent="15" liststyle="none" maxheadinglevel="4"&gt;&lt;/LI-TOC&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="toc-hId-837565446"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;1. Create the Automation&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;From your tenant web hub:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Add&lt;/STRONG&gt; &lt;STRONG&gt;new&lt;/STRONG&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;New Automation&lt;/STRONG&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Give your new automation a name description. Optionally, select the more appropriate icons&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Save&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 id="toc-hId-1528126920"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;a. Start Block&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;We want to trigger this automation every time an app is reloaded. In the Start Block select:&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;Run Mode&lt;/STRONG&gt;&lt;/EM&gt;:&amp;nbsp; Webhook&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;Connector&lt;/EM&gt;&lt;/STRONG&gt;: Qlik Cloud Service&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;&lt;STRONG&gt;Event&lt;/STRONG&gt;&lt;/EM&gt;:&amp;nbsp; App Reload Finished&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4 id="toc-hId--279327543"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;b. Get the target space ID&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;The Loop and Reduce process produce several applications, and we don't want to pollute the personal space, for this reason, we want to move all of them to a separated space.&lt;/P&gt;
&lt;P&gt;From the Qlik Cloud Service Connector drag the &lt;STRONG&gt;List Variables&lt;/STRONG&gt; into the canvas and attach it to the start block. Fill the App Id with the app id coming from the start block:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;App Reload Finished &amp;gt; Data&amp;nbsp; &amp;gt; Id&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermata da 2021-09-17 13-58-22.png" style="width: 920px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62172i24D28ED8545CAB13/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata da 2021-09-17 13-58-22.png" alt="Schermata da 2021-09-17 13-58-22.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This block will return all the variables in the app, we are going to use it later to catch the target space id.&lt;/P&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4 id="toc-hId--1983307500"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;c. Let's check if we have to reduce this App&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;We expect to see a special TAG named LR on a Dimension, in order to proceed in the loop and reduce process.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Now let's start the loop over all the Dimensions.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;From the left-hand side menu select Qlik Cloud Service and then drag the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;List Dimensions&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;block just out of the&amp;nbsp;&lt;STRONG&gt;List Variables&lt;/STRONG&gt;&amp;nbsp;loop. Fill the App Id fields with the reloaded app id coming from the start block:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;App Reload Finished &amp;gt; Data&amp;nbsp; &amp;gt; Id&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schermata da 2021-09-17 14-01-59.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62174i4C541722B7F96C2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Schermata da 2021-09-17 14-01-59.png" alt="Schermata da 2021-09-17 14-01-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;List Dimension will loop over all dimensions in the reloaded app. For each dimension we want to check if there is the tag named LR. From the basic block,&amp;nbsp; drag the condition block in the &lt;STRONG&gt;List Dimensions&lt;/STRONG&gt; loop. We want to check if the Tags Array contain the TAG named LR.&lt;/P&gt;
&lt;P&gt;In the first box set List &lt;EM&gt;Dimensions &amp;gt; Itam &amp;gt; Q Meta &amp;gt; Tags ,&amp;nbsp;&lt;/EM&gt;then select &lt;EM&gt;Contain&lt;/EM&gt; and in the last box type &lt;EM&gt;LR&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schermata da 2021-09-17 14-04-31.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62176i2A4F501C9755A631/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata da 2021-09-17 14-04-31.png" alt="Schermata da 2021-09-17 14-04-31.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case we found it we are ready to trigger the &lt;STRONG&gt;Loop And Reduce&lt;/STRONG&gt; block, you can find it under the Qlik Cloud Service Connector. Fill the App Id field with the application id coming from the start block.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;App Reload Finished &amp;gt; Data &amp;gt; Id&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;And fill the Reduction Field with the Dimension Title name&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;List Dimensions&amp;nbsp; &amp;gt; Item &amp;gt; Q Meta &amp;gt; Title&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schermata da 2021-09-17 15-19-01.png" style="width: 745px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62181i21B8544BE6820584/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata da 2021-09-17 15-19-01.png" alt="Schermata da 2021-09-17 15-19-01.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Loop And Reduce block create slices of the original application and export them with&amp;nbsp; an Id. At this point we can re-import it in a different location and with a different name, for this work we need the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Import App From Export Id&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;block, you can find it in the Qlik Cloud Service Connector.&lt;/P&gt;
&lt;P&gt;Fill in the fields as follow:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;File Id&lt;/STRONG&gt;: Export Id coming from the previous block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;: The original app name followed by the reduced dimension value&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schermata da 2021-09-17 15-20-09.png" style="width: 871px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62182iB093344578753B06/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata da 2021-09-17 15-20-09.png" alt="Schermata da 2021-09-17 15-20-09.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the &lt;STRONG&gt;Space Id&lt;/STRONG&gt;, click on the listVariables block, select the qDefinition then the below windows will appear. Select the last option and pick the value when the &lt;EM&gt;qName&lt;/EM&gt; is equal to &lt;EM&gt;TargetSpace&lt;/EM&gt;&lt;/P&gt;
&lt;H3&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schermata da 2021-09-17 15-32-49.png" style="width: 617px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62191iE29E8F754B7E33A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata da 2021-09-17 15-32-49.png" alt="Schermata da 2021-09-17 15-32-49.png" /&gt;&lt;/span&gt;&lt;/H3&gt;
&lt;P&gt;In case the TargetSpace variable does not exist in the app, the reduced app will be generated in the personal space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;2. Set the Qlik Sense Enterprise SaaS environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Open the App you want to reduce and create a new dimension. In this example the dimension is a simple field mapping, but you can use Qlik functions to build a complex field combination. You just need to add the TAG LR on the dimension you want to use for the Loop and Reduce.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Vincenzo_Esposito_0-1631786663625.png" style="width: 598px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62039i67AF37B0DD3B229E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Vincenzo_Esposito_0-1631786663625.png" alt="Vincenzo_Esposito_0-1631786663625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you want all the reduced apps to be collected in a space different from your Personal space, it is enough to add a new variable with the name "TargetSpace" and set it to the space Id.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Schermata da 2021-09-17 11-46-59.png" style="width: 696px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62170iBE4B1BAA14EA8258/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermata da 2021-09-17 11-46-59.png" alt="Schermata da 2021-09-17 11-46-59.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Import Task&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;As usual, you can follow the above steps to get your automation done or you can just import it from the Automation JSON definition attached in this article.&lt;/P&gt;
&lt;P style="font-style: italic;"&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;/P&gt;
&lt;P style="font-style: italic;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 id="toc-hId--512048190"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Application Automation" id="qlikApplicationAutomation"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise SaaS" id="qlikSenseEnterpriseSaaS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Qlik Cloud Service Connector&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A title="How to: Loop and reduce with Qlik Application Automation (advanced)" href="https://community.qlik.com/t5/Knowledge/How-to-Loop-and-reduce-with-Qlik-Application-Automation-advanced/ta-p/1834378" target="_blank" rel="noopener"&gt;How to: Loop and reduce with Qlik Application Automation (advanced) &amp;nbsp;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A title="How to: Loop and reduce with Qlik Application Automation (basic)" href="https://community.qlik.com/t5/Knowledge/How-to-Loop-and-reduce-with-Qlik-Application-Automation-basic/ta-p/1835151" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to: Loop and reduce with Qlik Application Automation (basic)&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 14 Feb 2023 09:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-Qlik-Application-Automation-for-Loop-and-Reduce-Dynamic/ta-p/1836592</guid>
      <dc:creator>Vincenzo_Esposito</dc:creator>
      <dc:date>2023-02-14T09:44:16Z</dc:date>
    </item>
  </channel>
</rss>

