<?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 extract changes from the change store (Write Table) and store them in an Excel file using Qlik Automate in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-extract-changes-from-the-change-store-Write-Table-and/ta-p/2541457</link>
    <description>&lt;P&gt;This article explains how to extract changes from a&lt;STRONG&gt;&amp;nbsp;&lt;FONT color="#339966"&gt;Change Store&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;by using the&amp;nbsp;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Qlik Cloud Services connector&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;in&lt;STRONG&gt;&amp;nbsp;&lt;FONT color="#339966"&gt;Qlik Automate&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;and how to sync them to an Excel file.&lt;/P&gt;
&lt;P&gt;While the example uses a Microsoft Excel file, it can easily be modified to create a CSV as well.&lt;/P&gt;
&lt;P&gt;The article also includes:&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;An automation example you can download and import (see&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Automate-How-to-import-and-export-automations/ta-p/1781602" target="_blank" rel="noopener" aria-describedby="audioeye_new_window_message"&gt;Qlik Automate: How to import and export automations)&lt;/A&gt;:&amp;nbsp;&lt;EM&gt;Automation Example To Extract Change Store Data and Store in Microsoft Excel.json&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;A Qlik app example with an inline load script with example data: &lt;EM&gt;Write Table Purchase Order Demo.qvf&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;Example purchase order template Excel file:&lt;EM&gt; Purchase order template.xlsx&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;Configuration instructions for the example&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Content&lt;/STRONG&gt;&lt;/FONT&gt;&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;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Write Table Demo.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186442i9F2C968216AF9D4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Write Table Demo.png" alt="Write Table Demo.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="Write Table Output Excel.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186443i5D2FF7C9AF2E3FCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Write Table Output Excel.png" alt="Write Table Output Excel.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Prerequisites&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;You will need the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;A working &lt;STRONG&gt;Write Table&lt;/STRONG&gt; with a set of editable columns and some example values already stored in it. &lt;BR /&gt;&lt;BR /&gt;For more information on the Write Table chart, see&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Visualizations/WriteTable/Analyze/write-table.htm" target="_blank" rel="noopener"&gt;Write Table | help.qlik.com&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Here is an example of the Write Table that will be used in this article. It has the following configuration:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data columns.png" style="width: 391px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186444i86C67F89F6A7FBEC/image-dimensions/391x454?v=v2" width="391" height="454" role="button" title="data columns.png" alt="data columns.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Week start&lt;/STRONG&gt; is included in the primary key because the purchasing process (making the changes) happens on a weekly basis.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Product Name&lt;/STRONG&gt; is included in the primary key to make sure it is always returned when retrieving changes through the &lt;STRONG&gt;Get Current Changes From Change Store block&lt;/STRONG&gt; in Qlik Automate.&lt;BR /&gt;&lt;BR /&gt;Below is an example of the table in an app:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Write Table Demo.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186445i61817C3FE9C70443/image-size/large?v=v2&amp;amp;px=999" role="button" title="Write Table Demo.png" alt="Write Table Demo.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;An &lt;STRONG&gt;Excel file&lt;/STRONG&gt; that will be the template for purchase orders. &lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;This must be stored in SharePoint or OneDrive.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;This file must contain a sheet with an empty table on the sheet. Take note of the sheet name/id and the table name and id. &lt;BR /&gt;&lt;BR /&gt;An example template file is attached to this article.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prepared excel template.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186446iF90F9A778F9CA88D/image-size/large?v=v2&amp;amp;px=999" role="button" title="prepared excel template.png" alt="prepared excel template.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;A &lt;STRONG&gt;destination folder in Microsoft SharePoint or OneDrive&lt;/STRONG&gt; where the new purchase order files should be created. &lt;BR /&gt;&lt;BR /&gt;Example of the SharePoint structure:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sharepoint structure.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186447i7843736A9C8E9E96/image-size/large?v=v2&amp;amp;px=999" role="button" title="sharepoint structure.png" alt="sharepoint structure.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Installing the example app&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Optionally, you can use the app that is included in this article. Follow these steps to install the app and configure the Write Table:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Import the app into your &lt;STRONG&gt;Qlik Cloud tenant&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Go to the &lt;STRONG&gt;Data Load Editor&lt;/STRONG&gt; and do a manual reload.&lt;/LI&gt;
&lt;LI&gt;Open the &lt;STRONG&gt;Inventory management sheet&lt;/STRONG&gt; and go to edit mode.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Drag&lt;/STRONG&gt; a &lt;STRONG&gt;Write Table Chart&lt;/STRONG&gt; (&lt;STRONG&gt;A&lt;/STRONG&gt;) on top of the &lt;STRONG&gt;Straight&lt;/STRONG&gt; &lt;STRONG&gt;Table&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="drag write table over straight table.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186448iD15E8A4EBC34F8D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="drag write table over straight table.png" alt="drag write table over straight table.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Select &lt;STRONG&gt;Convert to: Write Table&lt;/STRONG&gt;&amp;nbsp;(&lt;STRONG&gt;B&lt;/STRONG&gt;).&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="convert to write table.png" style="width: 536px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186451i74072F574603C174/image-dimensions/536x289?v=v2" width="536" height="289" role="button" title="convert to write table.png" alt="convert to write table.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Go to the &lt;STRONG&gt;Change store&lt;/STRONG&gt; section in the&lt;STRONG&gt; Write Table's configuration panel&lt;/STRONG&gt; and define a new &lt;STRONG&gt;primary key&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="define primary key.png" style="width: 524px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186450i93D3EBEB34BFCB9F/image-dimensions/524x487?v=v2" width="524" height="487" role="button" title="define primary key.png" alt="define primary key.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Select &lt;STRONG&gt;Product ID&lt;/STRONG&gt;, &lt;STRONG&gt;Product Name&lt;/STRONG&gt;, and &lt;STRONG&gt;Order Date&lt;/STRONG&gt; as columns for the primary key, then click &lt;STRONG&gt;Save&lt;/STRONG&gt;.&lt;BR /&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="select the primary keys.png" style="width: 508px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186452iD857B46FD0C2BB25/image-dimensions/508x551?v=v2" width="508" height="551" role="button" title="select the primary keys.png" alt="select the primary keys.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Add the following &lt;STRONG&gt;editable columns&lt;/STRONG&gt; to the Write Table:&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;To purchase:&amp;nbsp;&lt;EM&gt;Manual user input&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add the to purcahse editable column.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186453i1B4CD9EC6BE6F58F/image-size/large?v=v2&amp;amp;px=999" role="button" title="add the to purcahse editable column.png" alt="add the to purcahse editable column.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Priority: &lt;EM&gt;Single selection: High, Low&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;Add an empty option by clicking the &lt;STRONG&gt;+&lt;/STRONG&gt; button without providing a value.&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add priority column single selection.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186454i74989891C1C24E0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="add priority column single selection.png" alt="add priority column single selection.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Note: &lt;EM&gt;Manual user input&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add note column.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186455i00AFC25DBDEC91B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="add note column.png" alt="add note column.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Leave the edit sheet mode and take note of the change &lt;STRONG&gt;store id&lt;/STRONG&gt; for the change store that is linked to the Write Table.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="change store ID.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186456iEB283595851890A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="change store ID.png" alt="change store ID.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;First, make a selection in the app, then provide some example changes in the Write Table to use as example data to configure the automation:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="make selections and provide examples for the automation.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186457iB1E912231870509B/image-size/large?v=v2&amp;amp;px=999" role="button" title="make selections and provide examples for the automation.png" alt="make selections and provide examples for the automation.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Create the automation and get the SharePoint metadata&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Create a new automation. See&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_QlikAutomation/introduction/home-automation.htm" target="_blank" rel="noopener"&gt;Qlik Automate&lt;/A&gt;&amp;nbsp;for details.&lt;/LI&gt;
&lt;LI&gt;Before the automation can be configured, SharePoint metadata is required that cannot be retrieved dynamically in the automation.&lt;/LI&gt;
&lt;LI&gt;Get the &lt;STRONG&gt;SharePoint Drive Id&lt;/STRONG&gt;. You need access to the Drive in the SharePoint Site on which the Excel template file is stored. To do this, add the &lt;FONT color="#000000"&gt;&lt;STRONG&gt;List Drives From Site&lt;/STRONG&gt;&lt;/FONT&gt; block from the &lt;STRONG&gt;Microsoft SharePoint&lt;/STRONG&gt; connector. Connect your SharePoint account to this block.&lt;/LI&gt;
&lt;LI&gt;Click the input field for the &lt;STRONG&gt;Site Id&lt;/STRONG&gt; in the&lt;STRONG&gt; Inputs tab&amp;nbsp;&lt;/STRONG&gt;(&lt;STRONG&gt;A&lt;/STRONG&gt;) on the &lt;FONT color="#000000"&gt;&lt;STRONG&gt;List Drives From Site&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;block&lt;/STRONG&gt; and use the &lt;STRONG&gt;do lookup functionality&lt;/STRONG&gt;&amp;nbsp;(&lt;STRONG&gt;B&lt;/STRONG&gt;) to search for the site (&lt;STRONG&gt;C&lt;/STRONG&gt;).&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="list drives from site do lookup.png" style="width: 496px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186458i14674F8C8E2A4177/image-dimensions/496x535?v=v2" width="496" height="535" role="button" title="list drives from site do lookup.png" alt="list drives from site do lookup.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="search in list drives from site inputs.png" style="width: 492px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186459iFA451F10809B55A5/image-dimensions/492x558?v=v2" width="492" height="558" role="button" title="search in list drives from site inputs.png" alt="search in list drives from site inputs.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Right-click the &lt;FONT color="#000000"&gt;&lt;STRONG&gt;List Drives From Site&lt;/STRONG&gt;&lt;/FONT&gt; block (&lt;STRONG&gt;A&lt;/STRONG&gt;) to perform a &lt;STRONG&gt;Test Run&lt;/STRONG&gt;&amp;nbsp;(&lt;STRONG&gt;B&lt;/STRONG&gt;) of the automation. &lt;BR /&gt;&lt;BR /&gt;Once completed, review the automation’s run history to retrieve the correct &lt;STRONG&gt;Drive Id&lt;/STRONG&gt; from the &lt;FONT color="#000000"&gt;&lt;STRONG&gt;List Drives From Site&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;block&lt;/STRONG&gt; to find the &lt;STRONG&gt;Drive Id&lt;/STRONG&gt; of the drive you want to use. &lt;BR /&gt;&lt;BR /&gt;Store this id for later use.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test run on list drives from site.png" style="width: 413px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186460i4DA1B58F9CF0DA50/image-dimensions/413x445?v=v2" width="413" height="445" role="button" title="test run on list drives from site.png" alt="test run on list drives from site.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test run result one.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186461i8B9DEE46AC885E43/image-size/large?v=v2&amp;amp;px=999" role="button" title="test run result one.png" alt="test run result one.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test run result two.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186462i414E561DFA72E584/image-size/large?v=v2&amp;amp;px=999" role="button" title="test run result two.png" alt="test run result two.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;List Items On Drive&lt;/STRONG&gt; block from the &lt;STRONG&gt;Microsoft SharePoint&lt;/STRONG&gt; connector to the automation. &lt;BR /&gt;&lt;BR /&gt;This block will be used to retrieve the folder id for the destination folder in which the purchase orders should be created. Configure the block with the &lt;STRONG&gt;Drive Id&lt;/STRONG&gt; from step 5. &lt;BR /&gt;&lt;BR /&gt;Specify &lt;STRONG&gt;root&lt;/STRONG&gt; as the &lt;STRONG&gt;Item Id&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="list items on drive.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186463i37186BF31DF65372/image-size/large?v=v2&amp;amp;px=999" role="button" title="list items on drive.png" alt="list items on drive.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Run the automation manually to review the automation run’s history and retrieve the correct Item Id for your destination folder from the output of the &lt;STRONG&gt;List Items On Drive&lt;/STRONG&gt; block.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="get the item id for your destination folder.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186464i0FB852828948D541/image-size/large?v=v2&amp;amp;px=999" role="button" title="get the item id for your destination folder.png" alt="get the item id for your destination folder.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt; &lt;/FONT&gt;If your destination folder is nested in other folders, you will need to repeat this step until you have the item Id of the destination folder. Start with&amp;nbsp;&lt;EM&gt;root&lt;/EM&gt; as the Item Id and then replace it with each folder’s item id as you go towards the destination folder.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Right-click both &lt;STRONG&gt;SharePoint blocks&lt;/STRONG&gt; and collapse (&lt;STRONG&gt;A&lt;/STRONG&gt;) their loops. &lt;BR /&gt;&lt;BR /&gt;Then right-click them again to disable (&lt;STRONG&gt;B&lt;/STRONG&gt;) them as they are no longer needed for the regular automation runs. &lt;BR /&gt;&lt;BR /&gt;But you might want to keep them inside the automation if you want to take this automation to a different SharePoint team or folder structure in the future. If you are certain you will not need another drive id or folder id for this automation, you can delete the blocks.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="collapse loop.png" style="width: 571px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186467i89380EDD63AC9A5E/image-dimensions/571x623?v=v2" width="571" height="623" role="button" title="collapse loop.png" alt="collapse loop.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="disable block.png" style="width: 572px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186468iE86F3E7B409D001B/image-dimensions/572x235?v=v2" width="572" height="235" role="button" title="disable block.png" alt="disable block.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Configure the automation&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Add an &lt;STRONG&gt;Inputs&lt;/STRONG&gt; block and configure it with one required parameter &lt;FONT face="courier new,courier"&gt;weekStart&lt;/FONT&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This will be used to capture the &lt;STRONG&gt;weekStart&lt;/STRONG&gt; date from the app when a user triggers the automation from the app.
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inputs week start.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186469i6EB4111D5F9FB05F/image-size/large?v=v2&amp;amp;px=999" role="button" title="inputs week start.png" alt="inputs week start.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Add six&amp;nbsp;&lt;STRONG&gt;Variable&lt;/STRONG&gt; &lt;STRONG&gt;blocks&lt;/STRONG&gt; to the automation and add the following variables of type &lt;STRONG&gt;String&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;driveId&lt;/STRONG&gt;: store the &lt;STRONG&gt;Drive Id&lt;/STRONG&gt; from step 5 in the previous section&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;folderId&lt;/STRONG&gt;: store the folder’s&lt;STRONG&gt; item id&lt;/STRONG&gt; of step 7 in the previous section&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;templateFileName&lt;/STRONG&gt;: name of the Excel file template&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;destinationFileName&lt;/STRONG&gt;: name of the purchase order file to create&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;sheetName&lt;/STRONG&gt;: name of the sheet that contains the table&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;tableName&lt;/STRONG&gt;: name of the table&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Set values for the variables that correspond with your Excel file template. If you are using the example template from this article, you can supply the following values:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;driveId&lt;/STRONG&gt;: store the &lt;STRONG&gt;Drive Id&lt;/STRONG&gt; from step 5 in the previous section&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;folderId&lt;/STRONG&gt;: store the folder’s &lt;STRONG&gt;item id&lt;/STRONG&gt; of step 7 in the previous section&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;templateFileName&lt;/STRONG&gt;: Purchase order template.xlsx&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;destinationFileName&lt;/STRONG&gt;: Purchase order_{$.inputs.weekStart}.xlsx&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt;&lt;/FONT&gt; if your date format uses slashes, it will not work for the Excel file name, as Excel will create directories. Instead, use a different date format, such as &lt;FONT face="courier new,courier"&gt;MM-DD-YYYY&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;MM_DD_YYYY&lt;/FONT&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="destinationfilename string.png" style="width: 478px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186470i1D9E6C1517FCEB18/image-dimensions/478x474?v=v2" width="478" height="474" role="button" title="destinationfilename string.png" alt="destinationfilename string.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;sheetName&lt;/STRONG&gt;: Purchase order&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;tableName&lt;/STRONG&gt;: Products&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tablename string.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186471i4DBBFAFBDDCAF071/image-size/large?v=v2&amp;amp;px=999" role="button" title="tablename string.png" alt="tablename string.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;OL start="4"&gt;
&lt;LI&gt;Add an &lt;STRONG&gt;Open File&lt;/STRONG&gt; block from the &lt;STRONG&gt;Cloud Storage&lt;/STRONG&gt; connector and configure it as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Connector&lt;/STRONG&gt;: Microsoft SharePoint&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Path&lt;/STRONG&gt;: templateFileName variable&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive&lt;/STRONG&gt; &lt;STRONG&gt;Id&lt;/STRONG&gt;: driveId variable.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="open file block.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186472i63A2F6E5CCADBCD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="open file block.png" alt="open file block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Copy File block&lt;/STRONG&gt; from the &lt;STRONG&gt;Cloud Storage &lt;/STRONG&gt;connector. &lt;BR /&gt;&lt;BR /&gt;This&amp;nbsp;block will copy the template Excel File and create a new empty Excel file to create the purchase order. &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Source File&lt;/STRONG&gt;: select the “Open File on Microsoft SharePoint …” block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Destination connector&lt;/STRONG&gt;: Microsoft SharePoint&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Destination Path&lt;/STRONG&gt;: folder path + / + destinationFileName variable&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: driveId variable&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="copy file block.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186473i50AD4CFBA89A3D47/image-size/large?v=v2&amp;amp;px=999" role="button" title="copy file block.png" alt="copy file block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;List Items On Drive&lt;/STRONG&gt; block from the &lt;STRONG&gt;Microsoft SharePoint&lt;/STRONG&gt; connector. &lt;BR /&gt;&lt;BR /&gt;This block will be used to get the Item Id for the file created by the &lt;STRONG&gt;Copy File&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;Configure it as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: driveId variable&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Item Id&lt;/STRONG&gt;: folderId variable&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;Right-click on the &lt;STRONG&gt;List Items On Drive&lt;/STRONG&gt; block and choose &lt;STRONG&gt;Collapse loop&lt;/STRONG&gt;. This saves space in the automation and makes it more readable.&lt;BR /&gt;&lt;EM&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="list items on drive block.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186474iDC98BF61209D5DC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="list items on drive block.png" alt="list items on drive block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Perform a manual run of the automation to verify that the destination Excel file is created and is returned by the &lt;STRONG&gt;List Items On Drive&lt;/STRONG&gt; block.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block from the Lists blocks section. &lt;BR /&gt;&lt;BR /&gt;This block will be used to retrieve the &lt;STRONG&gt;item id&lt;/STRONG&gt; of the file created by the&amp;nbsp;&lt;STRONG&gt;Copy File&lt;/STRONG&gt; block (because this id is not returned by the &lt;STRONG&gt;Copy File&lt;/STRONG&gt; block). &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;List&lt;/STRONG&gt;: full output from &lt;STRONG&gt;List Items On Drive 2&amp;nbsp;&lt;/STRONG&gt;(&lt;STRONG&gt;A&lt;/STRONG&gt;)&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Conditions&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;Click the first input box (Property from) in the Condition parameter (&lt;STRONG&gt;B&lt;/STRONG&gt;) and select the name parameter (&lt;STRONG&gt;C&lt;/STRONG&gt;).&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="select the name condition.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186475i5A510BD9E45DCFB6/image-size/large?v=v2&amp;amp;px=999" role="button" title="select the name condition.png" alt="select the name condition.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Set the next input field (operator) to &lt;FONT face="courier new,courier"&gt;equals&lt;/FONT&gt;&amp;nbsp;(&lt;STRONG&gt;D&lt;/STRONG&gt;).&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="equals conditin.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186476iD14C5BE12D5A7014/image-size/large?v=v2&amp;amp;px=999" role="button" title="equals conditin.png" alt="equals conditin.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Set the third one (Value) to the &lt;STRONG&gt;destinationFileName&lt;/STRONG&gt; (&lt;STRONG&gt;E&lt;/STRONG&gt;) variable.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="destination filename value.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186477iB419991554BC2A93/image-size/large?v=v2&amp;amp;px=999" role="button" title="destination filename value.png" alt="destination filename value.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;OL start="9"&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Create Workbook Session&lt;/STRONG&gt; block from the &lt;STRONG&gt;Microsoft Excel&lt;/STRONG&gt; connector and configure it with the output from the &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="create workbook session.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186478i2AAB4D7114F7A5BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="create workbook session.png" alt="create workbook session.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;List Current Changes From Change Store&lt;/STRONG&gt; block from the &lt;STRONG&gt;Qlik Cloud Services&lt;/STRONG&gt; connector. &lt;BR /&gt;&lt;BR /&gt;This block will return all saved changes from the change store. &lt;BR /&gt;&lt;BR /&gt;Configure the&lt;STRONG&gt; Store Id&lt;/STRONG&gt; parameter with the write table’s change store id.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="list current changes from change store.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186479i0F66BAE212EE877C/image-size/large?v=v2&amp;amp;px=999" role="button" title="list current changes from change store.png" alt="list current changes from change store.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Filter List&lt;/STRONG&gt; block. This block will be used to filter orders for the correct week. &lt;BR /&gt;&lt;BR /&gt;Configure it as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;List&lt;/STRONG&gt;: output of the &lt;STRONG&gt;List Current Changes From Change Store&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Conditions&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Property from&lt;/STRONG&gt;: the Order Date (&lt;STRONG&gt;A&lt;/STRONG&gt;) returned by the &lt;STRONG&gt;List Current Changes From Change Store&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt;&lt;/FONT&gt; Make sure this field is part of your primary key so it is included in the change data from the change store.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="property from order date.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186487iAD42DC62D6E7A1D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="property from order date.png" alt="property from order date.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Operator&lt;/STRONG&gt;: &lt;FONT face="courier new,courier"&gt;equals&lt;/FONT&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;: the &lt;STRONG&gt;weekStart&lt;/STRONG&gt; input from the &lt;STRONG&gt;Inputs&lt;/STRONG&gt; block&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="conditin order date equals inputs week start.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186488iC4473AEE99B8C28E/image-size/large?v=v2&amp;amp;px=999" role="button" title="conditin order date equals inputs week start.png" alt="conditin order date equals inputs week start.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;OL start="12"&gt;
&lt;LI&gt;Add an &lt;STRONG&gt;Update Rows In Worksheet&lt;/STRONG&gt; block from the &lt;STRONG&gt;Microsoft Excel&lt;/STRONG&gt; connector. &lt;BR /&gt;&lt;BR /&gt;This block will only be used to update a single cell in the Excel template with the date of the Week Start. &lt;BR /&gt;&lt;BR /&gt;If your Order form does not have such a value, you can ignore this step. &lt;BR /&gt;&lt;BR /&gt;If it has multiple of these values, then you can repeat it for each of them. &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: Drive Id from the “Parent Reference” from the &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Item Id&lt;/STRONG&gt;: Id from the &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Worksheet Name&lt;/STRONG&gt;: Sheet Name variable&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Start Cell&lt;/STRONG&gt;: Coordinate of the Excel cell that needs to be updated. In the example template, this is G2.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;End Cell&lt;/STRONG&gt;: Same coordinate as the Start Cell since we are only updating a single cell.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Values&lt;/STRONG&gt;: The &lt;STRONG&gt;weekStart&lt;/STRONG&gt; input from the &lt;STRONG&gt;Inputs&lt;/STRONG&gt; block. Since it will only update a single cell, there is no need to create an array as described in the help text.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="week start input value.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186489i0743BF74F13A7D85/image-size/large?v=v2&amp;amp;px=999" role="button" title="week start input value.png" alt="week start input value.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Loop Batch&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;This block will divide the output from the &lt;STRONG&gt;Filter List&lt;/STRONG&gt; block across multiple batches that can be added to Excel batch by batch. &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Loop over items of list&lt;/STRONG&gt;: &lt;STRONG&gt;Filter List&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Amount of items per batch&lt;/STRONG&gt;: 100&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loop batch.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186490iDDE24BB81F977993/image-size/large?v=v2&amp;amp;px=999" role="button" title="loop batch.png" alt="loop batch.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL start="14"&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Variable&lt;/STRONG&gt; block inside the &lt;STRONG&gt;Batch Loop&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;Create a new variable &lt;STRONG&gt;RowsString&lt;/STRONG&gt;&amp;nbsp;of type string. &lt;BR /&gt;&lt;BR /&gt;This variable will be used to build a string containing the changes in a format that is accepted by the &lt;STRONG&gt;Microsoft Excel&lt;/STRONG&gt; connector. &lt;BR /&gt;&lt;BR /&gt;Add the following operations in the variable block:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Empty RowsString&lt;/STRONG&gt;: this makes sure that on every new batch, the variable is emptied.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Append to RowsString&lt;/STRONG&gt;: this will add the first text value to the string. Configure this to a single square bracket &lt;FONT face="courier new,courier"&gt;[&lt;/FONT&gt;.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="variable-rowstring.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186491i93B9A13B09B0E2DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="variable-rowstring.png" alt="variable-rowstring.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Loop&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;This block will iterate over all the changes in the current batch. &lt;BR /&gt;&lt;BR /&gt;Configure it as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Loop over items of list&lt;/STRONG&gt;: Loop Batch &amp;gt; Batch&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add a loop block and loop batch.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186493i50E78C2F2A78E756/image-size/large?v=v2&amp;amp;px=999" role="button" title="add a loop block and loop batch.png" alt="add a loop block and loop batch.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;Perform a manual run of the automation to make sure there are example values in the &lt;STRONG&gt;Loop&lt;/STRONG&gt; block.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Get User&lt;/STRONG&gt; block from the &lt;STRONG&gt;Qlik Cloud Services&lt;/STRONG&gt; connector inside the loop of the &lt;STRONG&gt;Loop&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;This block will be used to retrieve the user information for the &lt;STRONG&gt;updatedBy&lt;/STRONG&gt; parameter in each change. &lt;BR /&gt;&lt;BR /&gt;Configure it to use the &lt;STRONG&gt;updatedBy&lt;/STRONG&gt; parameter as input for the &lt;STRONG&gt;User Id &lt;/STRONG&gt;parameter.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="get user block in loop.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186494i423E33270E3A6899/image-size/large?v=v2&amp;amp;px=999" role="button" title="get user block in loop.png" alt="get user block in loop.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a Variable block to the &lt;STRONG&gt;Get User&lt;/STRONG&gt; block and configure it to use the &lt;STRONG&gt;RowsString&lt;/STRONG&gt; &lt;STRONG&gt;variable&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Add an &lt;STRONG&gt;Append&lt;/STRONG&gt; to &lt;STRONG&gt;RowsString&lt;/STRONG&gt; operation and configure the Value to be of this format &lt;FONT face="courier new,courier"&gt;[“value1”,“value2”,…]&lt;/FONT&gt; where every item in this list corresponds with a value from the change that should be stored in the Excel file.&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;This string should be built value by value. &lt;BR /&gt;&lt;BR /&gt;Start by typing &lt;FONT face="courier new,courier"&gt;[“&lt;/FONT&gt; and then click to add the first value &lt;STRONG&gt;Product ID&lt;/STRONG&gt; (&lt;STRONG&gt;A&lt;/STRONG&gt;)&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="operations on rowstrings.png" style="width: 976px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186529i0C5471A82F1FB613/image-size/large?v=v2&amp;amp;px=999" role="button" title="operations on rowstrings.png" alt="operations on rowstrings.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Append to Rowstrings.png" style="width: 984px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186497i328F61602A4DABC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Append to Rowstrings.png" alt="Append to Rowstrings.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Add another &lt;STRONG&gt;double quote&lt;/STRONG&gt;, a &lt;STRONG&gt;comma&lt;/STRONG&gt;, and a &lt;STRONG&gt;new double quote&lt;/STRONG&gt;&amp;nbsp;(&lt;FONT face="courier new,courier"&gt;","&lt;/FONT&gt;) for the next value:&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add comma and quotation marks.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186498i57015CDD7655460D/image-size/large?v=v2&amp;amp;px=999" role="button" title="add comma and quotation marks.png" alt="add comma and quotation marks.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Repeat steps a and b to add all the values. &lt;BR /&gt;&lt;BR /&gt;Finally, add the user’s name from the &lt;STRONG&gt;Get User&lt;/STRONG&gt; block as the final value. &lt;BR /&gt;&lt;BR /&gt;Optionally, this can also be another indicator, such as an email address. Finish the operation with another square bracket and a trailing comma (&lt;FONT face="courier new,courier"&gt;"],&lt;/FONT&gt;).&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add all values.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186499i14DCA6EE4CBFFD49/image-size/large?v=v2&amp;amp;px=999" role="button" title="add all values.png" alt="add all values.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Add an &lt;STRONG&gt;Add Rows To Table (Batch)&lt;/STRONG&gt; block from the &lt;STRONG&gt;Microsoft Excel&lt;/STRONG&gt; connector after the loop from the Loop block. &lt;BR /&gt;&lt;BR /&gt;This block will be used to update the Excel file with the generated string that represents the current batch of changes. &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: Drive Id from the “Parent Reference” from the &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Item Id&lt;/STRONG&gt;: Id from the &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Worksheet&lt;/STRONG&gt;: Sheet Name variable&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Table Id&lt;/STRONG&gt;: Table Name variable&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Rows&lt;/STRONG&gt;: This will be the Rows String variable, but it is not fully ready yet and needs some modifications:&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-upper-alpha"&gt;
&lt;LI&gt;Add the &lt;STRONG&gt;Rows String&lt;/STRONG&gt; variable&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rows rows string.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186500i254151175ADDBAD3/image-size/large?v=v2&amp;amp;px=999" role="button" title="rows rows string.png" alt="rows rows string.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Click the field mapping to the variable and choose &lt;STRONG&gt;Add formula&lt;/STRONG&gt;. This&amp;nbsp;will open the formula picker.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add formula to rows string.png" style="width: 339px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186501i9281854E60B6D321/image-dimensions/339x269?v=v2" width="339" height="269" role="button" title="add formula to rows string.png" alt="add formula to rows string.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Search for the &lt;STRONG&gt;Right trim&lt;/STRONG&gt; formula.&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="right trim.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186502i530E2AFFC7ABBDA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="right trim.png" alt="right trim.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Configure the &lt;STRONG&gt;Character to trim&lt;/STRONG&gt; parameter to a &lt;STRONG&gt;single comma&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="right trim character to trim.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186503i34E8520571252C7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="right trim character to trim.png" alt="right trim character to trim.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Type a &lt;STRONG&gt;single square bracket&lt;/STRONG&gt; after the field mapping in the &lt;STRONG&gt;Rows input&lt;/STRONG&gt; field:&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add a single square bracket to close the input field.png" style="width: 488px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186504iC8A296411AB4D2AE/image-dimensions/488x124?v=v2" width="488" height="124" role="button" title="add a single square bracket to close the input field.png" alt="add a single square bracket to close the input field.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add rows to table batch.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186505iDB42C5A49A479411/image-size/large?v=v2&amp;amp;px=999" role="button" title="add rows to table batch.png" alt="add rows to table batch.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Close Workbook Session&lt;/STRONG&gt; block from the &lt;STRONG&gt;Microsoft Excel&lt;/STRONG&gt; connector at the end of the automation after the loop from the &lt;STRONG&gt;Loop Batch&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: Drive Id from the &lt;STRONG&gt;Parent Reference&lt;/STRONG&gt; from the &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Item Id&lt;/STRONG&gt;: Id from the &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Session Id&lt;/STRONG&gt;: Id from the output of the &lt;STRONG&gt;Create Workbook Session&lt;/STRONG&gt; block&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add a close workbook session block.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186506i6DD9E8C2BD0F2C80/image-size/large?v=v2&amp;amp;px=999" role="button" title="add a close workbook session block.png" alt="add a close workbook session block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Run the automation manually and review the generated Excel file to make sure the table in the order form is correctly populated.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="run the automation and review the excel.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186507iA45BA5430CEA40D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="run the automation and review the excel.png" alt="run the automation and review the excel.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="run the automation and review the excel content.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186508i84C30F3A0CD6CD09/image-size/large?v=v2&amp;amp;px=999" role="button" title="run the automation and review the excel content.png" alt="run the automation and review the excel content.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Running the automation from the sheet&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;The automation is now configured and can be run manually. But ideally, a user can run it from within the Qlik Sense app whenever they are finished with creating orders through the Write Table.&lt;/P&gt;
&lt;P&gt;This article will only cover the button’s configuration in a sheet. A step-by-step guide on configuring the button object to run automations is available in&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/How-to-run-an-automation-with-custom-parameters-through-the-Qlik/ta-p/2496485" target="_blank" rel="noopener"&gt;How to run an automation with custom parameters through the Qlik Sense button&lt;/A&gt;.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Button&lt;/STRONG&gt; object to the sheet that contains the Write Table, set the button's action to 'Execute automation', and configure the automation.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt;&lt;/FONT&gt; The automation selector in the button object only returns the first 100 automations. If your automation is not shown, you might need to manually copy and paste the automation id from the automation URL.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;parameter&lt;/STRONG&gt; for the &lt;STRONG&gt;weekStart&lt;/STRONG&gt; input from the automation's &lt;STRONG&gt;Inputs&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;Then configure it to use the &lt;STRONG&gt;GetFieldSelections&lt;/STRONG&gt; formula for the &lt;STRONG&gt;[Order Date]&lt;/STRONG&gt; field (this is used as Week start in the Write Table).&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add weekstart input from automation inputs block.png" style="width: 421px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186509i5721F7C95659522D/image-dimensions/421x568?v=v2" width="421" height="568" role="button" title="add weekstart input from automation inputs block.png" alt="add weekstart input from automation inputs block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Select a date in the app and click the button to run the automation and ensure that the correct date is received by the Inputs block:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Write Table Demo.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186511i7C21DCEDCB361946/image-size/large?v=v2&amp;amp;px=999" role="button" title="Write Table Demo.png" alt="Write Table Demo.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="automation per block event.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186512i5133F6898C9B4E3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="automation per block event.png" alt="automation per block event.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Bonus: overwriting an existing Excel file&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;The &lt;STRONG&gt;Copy File&lt;/STRONG&gt; block will fail when there already exists an Excel file with the same name. Depending on the use case, that might be the right behavior or you might want to overwrite the file.&lt;BR /&gt;The overwrite process explained below will delete the existing file and then create a new file.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to the automation and disconnect the&amp;nbsp;&lt;STRONG&gt;Open File on Microsoft SharePoint&lt;/STRONG&gt; block from the&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Variable - tableName&lt;/STRONG&gt;&amp;nbsp;block.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Search for the&amp;nbsp;&lt;STRONG&gt;Check If File Exists&lt;/STRONG&gt;&amp;nbsp;block from the &lt;STRONG&gt;Cloud Storage&lt;/STRONG&gt; connector and connect it to the&amp;nbsp;&lt;STRONG&gt;Variable - tableName&lt;/STRONG&gt;&amp;nbsp;block. &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Connector&lt;/STRONG&gt;: Microsoft SharePoint&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Path&lt;/STRONG&gt;: folder path + / + destinationFileName variable (this should be the same path as the one configured in the &lt;STRONG&gt;Copy File&lt;/STRONG&gt; block)&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: driveId variable&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="driveID variable.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186513i9ECB6AFFA4297338/image-size/large?v=v2&amp;amp;px=999" role="button" title="driveID variable.png" alt="driveID variable.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Add a &lt;STRONG&gt;Condition&lt;/STRONG&gt; block to the automation and configure it to evaluate the output from the &lt;STRONG&gt;Check If File Exists&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;This block will return a Boolean (true or false) result. If it is true, the file exists. &lt;BR /&gt;&lt;BR /&gt;Configure the Condition block to evaluate that output using the Boolean 'is true' operator:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="check if file exists is true.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186514i9FEFD50D553E3F27/image-size/large?v=v2&amp;amp;px=999" role="button" title="check if file exists is true.png" alt="check if file exists is true.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Delete File&lt;/STRONG&gt; block from the &lt;STRONG&gt;Cloud Storage&lt;/STRONG&gt; connector to the 'Yes' part of the &lt;STRONG&gt;Condition&lt;/STRONG&gt; block. This will then only be executed when a file already exists, and will then delete the file. Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Connector&lt;/STRONG&gt;: Microsoft SharePoint&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Path&lt;/STRONG&gt;: folder path + / + destinationFileName variable (this should be the same path as the one configured in the &lt;STRONG&gt;Copy File&lt;/STRONG&gt; block)&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: driveId variable&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add delete file on ms sharepoint.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186515iB5E60409074E198A/image-size/large?v=v2&amp;amp;px=999" role="button" title="add delete file on ms sharepoint.png" alt="add delete file on ms sharepoint.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Collapse the 'No' part of the &lt;STRONG&gt;Condition&lt;/STRONG&gt; block as this will not be used (when there is no file, the automation can continue and copy the template to create a new file). Right-click on the &lt;STRONG&gt;Condition&lt;/STRONG&gt; block and select the 'Hide NO Condition' option.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hide no condition.png" style="width: 435px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186516i309DCDBC82447877/image-dimensions/435x468?v=v2" width="435" height="468" role="button" title="hide no condition.png" alt="hide no condition.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emile_Koslowski_9-1769436389371.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186418iDBA60E07383AE8F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Emile_Koslowski_9-1769436389371.png" alt="Emile_Koslowski_9-1769436389371.png" /&gt;&lt;/span&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="no condition hidden.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186517i2C5E6DD280F17F26/image-size/large?v=v2&amp;amp;px=999" role="button" title="no condition hidden.png" alt="no condition hidden.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Reconnect the &lt;STRONG&gt;Open File&lt;/STRONG&gt; block (and the other attached blocks) to the &lt;STRONG&gt;Condition&lt;/STRONG&gt; block.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="reconnect the automation blocks.png" style="width: 895px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186518iEE6C1B6334DBE9F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="reconnect the automation blocks.png" alt="reconnect the automation blocks.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Perform two runs of the automation for the same date (weekStart) and ensure the original file is deleted and then recreated.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="delete file.png" style="width: 991px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186519i094631BF9AE59EC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="delete file.png" alt="delete file.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Bonus: Sending the Excel file as an email attachment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Qlik Automate can also be used to share the purchase order with your purchasing team. This can be built in the same automation or in a separate automation. Below are the steps to add this to the same automation.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add an &lt;STRONG&gt;Open File&lt;/STRONG&gt; block from the Cloud Storage connector at the end of the automation. &lt;BR /&gt;&lt;BR /&gt;Configure it as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Connector&lt;/STRONG&gt;: Microsoft SharePoint&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Path&lt;/STRONG&gt;: folder path + / + destinationFileName variable&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: driveId variable&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="open file 2 on microsoft sharepoint.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186549iBB4B5FCBB38B991E/image-size/large?v=v2&amp;amp;px=999" role="button" title="open file 2 on microsoft sharepoint.png" alt="open file 2 on microsoft sharepoint.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Send Mail With Attachments&lt;/STRONG&gt; block from the &lt;STRONG&gt;Microsoft Outlook 365&lt;/STRONG&gt; connector. &lt;BR /&gt;&lt;BR /&gt;This block will be used to send the Excel file as an email attachment to one or more recipients. &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;To&lt;/STRONG&gt;: one or more email addresses for the recipients of the purchase order&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Subject&lt;/STRONG&gt;: Purchase order { $.inputs.weekStart }&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;: text&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Content Body&lt;/STRONG&gt;: &amp;lt;your email body&amp;gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Attachments&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-upper-alpha"&gt;
&lt;LI&gt;Click the 'Add attachment' button&lt;/LI&gt;
&lt;LI&gt;Specify the output from the &lt;STRONG&gt;Open File 2&lt;/STRONG&gt; block&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add attachment.png" style="width: 955px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186550iBE6368E0C44AD952/image-size/large?v=v2&amp;amp;px=999" role="button" title="add attachment.png" alt="add attachment.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;Update the button label to make it clear to users of your app that clicking it will also send the purchase order. &lt;BR /&gt;&lt;BR /&gt;As an alternative, it is also possible to add these blocks to a new automation that is triggered from a second button.&lt;BR /&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Write Table Demo.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186511i7C21DCEDCB361946/image-size/large?v=v2&amp;amp;px=999" role="button" title="Write Table Demo.png" alt="Write Table Demo.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jan 2026 15:06:11 GMT</pubDate>
    <dc:creator>Emile_Koslowski</dc:creator>
    <dc:date>2026-01-28T15:06:11Z</dc:date>
    <item>
      <title>How to extract changes from the change store (Write Table) and store them in an Excel file using Qlik Automate</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-extract-changes-from-the-change-store-Write-Table-and/ta-p/2541457</link>
      <description>&lt;P&gt;This article explains how to extract changes from a&lt;STRONG&gt;&amp;nbsp;&lt;FONT color="#339966"&gt;Change Store&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;by using the&amp;nbsp;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Qlik Cloud Services connector&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;in&lt;STRONG&gt;&amp;nbsp;&lt;FONT color="#339966"&gt;Qlik Automate&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;and how to sync them to an Excel file.&lt;/P&gt;
&lt;P&gt;While the example uses a Microsoft Excel file, it can easily be modified to create a CSV as well.&lt;/P&gt;
&lt;P&gt;The article also includes:&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;An automation example you can download and import (see&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Qlik-Automate-How-to-import-and-export-automations/ta-p/1781602" target="_blank" rel="noopener" aria-describedby="audioeye_new_window_message"&gt;Qlik Automate: How to import and export automations)&lt;/A&gt;:&amp;nbsp;&lt;EM&gt;Automation Example To Extract Change Store Data and Store in Microsoft Excel.json&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;A Qlik app example with an inline load script with example data: &lt;EM&gt;Write Table Purchase Order Demo.qvf&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;Example purchase order template Excel file:&lt;EM&gt; Purchase order template.xlsx&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;Configuration instructions for the example&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Content&lt;/STRONG&gt;&lt;/FONT&gt;&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;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Write Table Demo.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186442i9F2C968216AF9D4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Write Table Demo.png" alt="Write Table Demo.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="Write Table Output Excel.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186443i5D2FF7C9AF2E3FCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Write Table Output Excel.png" alt="Write Table Output Excel.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Prerequisites&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;You will need the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;A working &lt;STRONG&gt;Write Table&lt;/STRONG&gt; with a set of editable columns and some example values already stored in it. &lt;BR /&gt;&lt;BR /&gt;For more information on the Write Table chart, see&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Visualizations/WriteTable/Analyze/write-table.htm" target="_blank" rel="noopener"&gt;Write Table | help.qlik.com&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Here is an example of the Write Table that will be used in this article. It has the following configuration:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data columns.png" style="width: 391px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186444i86C67F89F6A7FBEC/image-dimensions/391x454?v=v2" width="391" height="454" role="button" title="data columns.png" alt="data columns.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Week start&lt;/STRONG&gt; is included in the primary key because the purchasing process (making the changes) happens on a weekly basis.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Product Name&lt;/STRONG&gt; is included in the primary key to make sure it is always returned when retrieving changes through the &lt;STRONG&gt;Get Current Changes From Change Store block&lt;/STRONG&gt; in Qlik Automate.&lt;BR /&gt;&lt;BR /&gt;Below is an example of the table in an app:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Write Table Demo.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186445i61817C3FE9C70443/image-size/large?v=v2&amp;amp;px=999" role="button" title="Write Table Demo.png" alt="Write Table Demo.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;An &lt;STRONG&gt;Excel file&lt;/STRONG&gt; that will be the template for purchase orders. &lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;This must be stored in SharePoint or OneDrive.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;This file must contain a sheet with an empty table on the sheet. Take note of the sheet name/id and the table name and id. &lt;BR /&gt;&lt;BR /&gt;An example template file is attached to this article.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prepared excel template.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186446iF90F9A778F9CA88D/image-size/large?v=v2&amp;amp;px=999" role="button" title="prepared excel template.png" alt="prepared excel template.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;A &lt;STRONG&gt;destination folder in Microsoft SharePoint or OneDrive&lt;/STRONG&gt; where the new purchase order files should be created. &lt;BR /&gt;&lt;BR /&gt;Example of the SharePoint structure:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sharepoint structure.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186447i7843736A9C8E9E96/image-size/large?v=v2&amp;amp;px=999" role="button" title="sharepoint structure.png" alt="sharepoint structure.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Installing the example app&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Optionally, you can use the app that is included in this article. Follow these steps to install the app and configure the Write Table:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Import the app into your &lt;STRONG&gt;Qlik Cloud tenant&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Go to the &lt;STRONG&gt;Data Load Editor&lt;/STRONG&gt; and do a manual reload.&lt;/LI&gt;
&lt;LI&gt;Open the &lt;STRONG&gt;Inventory management sheet&lt;/STRONG&gt; and go to edit mode.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Drag&lt;/STRONG&gt; a &lt;STRONG&gt;Write Table Chart&lt;/STRONG&gt; (&lt;STRONG&gt;A&lt;/STRONG&gt;) on top of the &lt;STRONG&gt;Straight&lt;/STRONG&gt; &lt;STRONG&gt;Table&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="drag write table over straight table.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186448iD15E8A4EBC34F8D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="drag write table over straight table.png" alt="drag write table over straight table.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Select &lt;STRONG&gt;Convert to: Write Table&lt;/STRONG&gt;&amp;nbsp;(&lt;STRONG&gt;B&lt;/STRONG&gt;).&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="convert to write table.png" style="width: 536px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186451i74072F574603C174/image-dimensions/536x289?v=v2" width="536" height="289" role="button" title="convert to write table.png" alt="convert to write table.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Go to the &lt;STRONG&gt;Change store&lt;/STRONG&gt; section in the&lt;STRONG&gt; Write Table's configuration panel&lt;/STRONG&gt; and define a new &lt;STRONG&gt;primary key&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="define primary key.png" style="width: 524px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186450i93D3EBEB34BFCB9F/image-dimensions/524x487?v=v2" width="524" height="487" role="button" title="define primary key.png" alt="define primary key.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Select &lt;STRONG&gt;Product ID&lt;/STRONG&gt;, &lt;STRONG&gt;Product Name&lt;/STRONG&gt;, and &lt;STRONG&gt;Order Date&lt;/STRONG&gt; as columns for the primary key, then click &lt;STRONG&gt;Save&lt;/STRONG&gt;.&lt;BR /&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="select the primary keys.png" style="width: 508px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186452iD857B46FD0C2BB25/image-dimensions/508x551?v=v2" width="508" height="551" role="button" title="select the primary keys.png" alt="select the primary keys.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Add the following &lt;STRONG&gt;editable columns&lt;/STRONG&gt; to the Write Table:&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;To purchase:&amp;nbsp;&lt;EM&gt;Manual user input&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add the to purcahse editable column.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186453i1B4CD9EC6BE6F58F/image-size/large?v=v2&amp;amp;px=999" role="button" title="add the to purcahse editable column.png" alt="add the to purcahse editable column.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Priority: &lt;EM&gt;Single selection: High, Low&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;Add an empty option by clicking the &lt;STRONG&gt;+&lt;/STRONG&gt; button without providing a value.&lt;EM&gt;&lt;EM&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add priority column single selection.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186454i74989891C1C24E0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="add priority column single selection.png" alt="add priority column single selection.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Note: &lt;EM&gt;Manual user input&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add note column.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186455i00AFC25DBDEC91B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="add note column.png" alt="add note column.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Leave the edit sheet mode and take note of the change &lt;STRONG&gt;store id&lt;/STRONG&gt; for the change store that is linked to the Write Table.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="change store ID.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186456iEB283595851890A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="change store ID.png" alt="change store ID.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;First, make a selection in the app, then provide some example changes in the Write Table to use as example data to configure the automation:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="make selections and provide examples for the automation.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186457iB1E912231870509B/image-size/large?v=v2&amp;amp;px=999" role="button" title="make selections and provide examples for the automation.png" alt="make selections and provide examples for the automation.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Create the automation and get the SharePoint metadata&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Create a new automation. See&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_QlikAutomation/introduction/home-automation.htm" target="_blank" rel="noopener"&gt;Qlik Automate&lt;/A&gt;&amp;nbsp;for details.&lt;/LI&gt;
&lt;LI&gt;Before the automation can be configured, SharePoint metadata is required that cannot be retrieved dynamically in the automation.&lt;/LI&gt;
&lt;LI&gt;Get the &lt;STRONG&gt;SharePoint Drive Id&lt;/STRONG&gt;. You need access to the Drive in the SharePoint Site on which the Excel template file is stored. To do this, add the &lt;FONT color="#000000"&gt;&lt;STRONG&gt;List Drives From Site&lt;/STRONG&gt;&lt;/FONT&gt; block from the &lt;STRONG&gt;Microsoft SharePoint&lt;/STRONG&gt; connector. Connect your SharePoint account to this block.&lt;/LI&gt;
&lt;LI&gt;Click the input field for the &lt;STRONG&gt;Site Id&lt;/STRONG&gt; in the&lt;STRONG&gt; Inputs tab&amp;nbsp;&lt;/STRONG&gt;(&lt;STRONG&gt;A&lt;/STRONG&gt;) on the &lt;FONT color="#000000"&gt;&lt;STRONG&gt;List Drives From Site&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;block&lt;/STRONG&gt; and use the &lt;STRONG&gt;do lookup functionality&lt;/STRONG&gt;&amp;nbsp;(&lt;STRONG&gt;B&lt;/STRONG&gt;) to search for the site (&lt;STRONG&gt;C&lt;/STRONG&gt;).&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="list drives from site do lookup.png" style="width: 496px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186458i14674F8C8E2A4177/image-dimensions/496x535?v=v2" width="496" height="535" role="button" title="list drives from site do lookup.png" alt="list drives from site do lookup.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="search in list drives from site inputs.png" style="width: 492px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186459iFA451F10809B55A5/image-dimensions/492x558?v=v2" width="492" height="558" role="button" title="search in list drives from site inputs.png" alt="search in list drives from site inputs.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Right-click the &lt;FONT color="#000000"&gt;&lt;STRONG&gt;List Drives From Site&lt;/STRONG&gt;&lt;/FONT&gt; block (&lt;STRONG&gt;A&lt;/STRONG&gt;) to perform a &lt;STRONG&gt;Test Run&lt;/STRONG&gt;&amp;nbsp;(&lt;STRONG&gt;B&lt;/STRONG&gt;) of the automation. &lt;BR /&gt;&lt;BR /&gt;Once completed, review the automation’s run history to retrieve the correct &lt;STRONG&gt;Drive Id&lt;/STRONG&gt; from the &lt;FONT color="#000000"&gt;&lt;STRONG&gt;List Drives From Site&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;block&lt;/STRONG&gt; to find the &lt;STRONG&gt;Drive Id&lt;/STRONG&gt; of the drive you want to use. &lt;BR /&gt;&lt;BR /&gt;Store this id for later use.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test run on list drives from site.png" style="width: 413px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186460i4DA1B58F9CF0DA50/image-dimensions/413x445?v=v2" width="413" height="445" role="button" title="test run on list drives from site.png" alt="test run on list drives from site.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test run result one.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186461i8B9DEE46AC885E43/image-size/large?v=v2&amp;amp;px=999" role="button" title="test run result one.png" alt="test run result one.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test run result two.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186462i414E561DFA72E584/image-size/large?v=v2&amp;amp;px=999" role="button" title="test run result two.png" alt="test run result two.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;List Items On Drive&lt;/STRONG&gt; block from the &lt;STRONG&gt;Microsoft SharePoint&lt;/STRONG&gt; connector to the automation. &lt;BR /&gt;&lt;BR /&gt;This block will be used to retrieve the folder id for the destination folder in which the purchase orders should be created. Configure the block with the &lt;STRONG&gt;Drive Id&lt;/STRONG&gt; from step 5. &lt;BR /&gt;&lt;BR /&gt;Specify &lt;STRONG&gt;root&lt;/STRONG&gt; as the &lt;STRONG&gt;Item Id&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="list items on drive.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186463i37186BF31DF65372/image-size/large?v=v2&amp;amp;px=999" role="button" title="list items on drive.png" alt="list items on drive.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Run the automation manually to review the automation run’s history and retrieve the correct Item Id for your destination folder from the output of the &lt;STRONG&gt;List Items On Drive&lt;/STRONG&gt; block.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="get the item id for your destination folder.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186464i0FB852828948D541/image-size/large?v=v2&amp;amp;px=999" role="button" title="get the item id for your destination folder.png" alt="get the item id for your destination folder.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt; &lt;/FONT&gt;If your destination folder is nested in other folders, you will need to repeat this step until you have the item Id of the destination folder. Start with&amp;nbsp;&lt;EM&gt;root&lt;/EM&gt; as the Item Id and then replace it with each folder’s item id as you go towards the destination folder.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Right-click both &lt;STRONG&gt;SharePoint blocks&lt;/STRONG&gt; and collapse (&lt;STRONG&gt;A&lt;/STRONG&gt;) their loops. &lt;BR /&gt;&lt;BR /&gt;Then right-click them again to disable (&lt;STRONG&gt;B&lt;/STRONG&gt;) them as they are no longer needed for the regular automation runs. &lt;BR /&gt;&lt;BR /&gt;But you might want to keep them inside the automation if you want to take this automation to a different SharePoint team or folder structure in the future. If you are certain you will not need another drive id or folder id for this automation, you can delete the blocks.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="collapse loop.png" style="width: 571px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186467i89380EDD63AC9A5E/image-dimensions/571x623?v=v2" width="571" height="623" role="button" title="collapse loop.png" alt="collapse loop.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="disable block.png" style="width: 572px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186468iE86F3E7B409D001B/image-dimensions/572x235?v=v2" width="572" height="235" role="button" title="disable block.png" alt="disable block.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Configure the automation&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Add an &lt;STRONG&gt;Inputs&lt;/STRONG&gt; block and configure it with one required parameter &lt;FONT face="courier new,courier"&gt;weekStart&lt;/FONT&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This will be used to capture the &lt;STRONG&gt;weekStart&lt;/STRONG&gt; date from the app when a user triggers the automation from the app.
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inputs week start.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186469i6EB4111D5F9FB05F/image-size/large?v=v2&amp;amp;px=999" role="button" title="inputs week start.png" alt="inputs week start.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Add six&amp;nbsp;&lt;STRONG&gt;Variable&lt;/STRONG&gt; &lt;STRONG&gt;blocks&lt;/STRONG&gt; to the automation and add the following variables of type &lt;STRONG&gt;String&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;driveId&lt;/STRONG&gt;: store the &lt;STRONG&gt;Drive Id&lt;/STRONG&gt; from step 5 in the previous section&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;folderId&lt;/STRONG&gt;: store the folder’s&lt;STRONG&gt; item id&lt;/STRONG&gt; of step 7 in the previous section&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;templateFileName&lt;/STRONG&gt;: name of the Excel file template&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;destinationFileName&lt;/STRONG&gt;: name of the purchase order file to create&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;sheetName&lt;/STRONG&gt;: name of the sheet that contains the table&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;tableName&lt;/STRONG&gt;: name of the table&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Set values for the variables that correspond with your Excel file template. If you are using the example template from this article, you can supply the following values:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;driveId&lt;/STRONG&gt;: store the &lt;STRONG&gt;Drive Id&lt;/STRONG&gt; from step 5 in the previous section&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;folderId&lt;/STRONG&gt;: store the folder’s &lt;STRONG&gt;item id&lt;/STRONG&gt; of step 7 in the previous section&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;templateFileName&lt;/STRONG&gt;: Purchase order template.xlsx&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;destinationFileName&lt;/STRONG&gt;: Purchase order_{$.inputs.weekStart}.xlsx&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt;&lt;/FONT&gt; if your date format uses slashes, it will not work for the Excel file name, as Excel will create directories. Instead, use a different date format, such as &lt;FONT face="courier new,courier"&gt;MM-DD-YYYY&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;MM_DD_YYYY&lt;/FONT&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="destinationfilename string.png" style="width: 478px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186470i1D9E6C1517FCEB18/image-dimensions/478x474?v=v2" width="478" height="474" role="button" title="destinationfilename string.png" alt="destinationfilename string.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;sheetName&lt;/STRONG&gt;: Purchase order&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;tableName&lt;/STRONG&gt;: Products&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tablename string.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186471i4DBBFAFBDDCAF071/image-size/large?v=v2&amp;amp;px=999" role="button" title="tablename string.png" alt="tablename string.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;OL start="4"&gt;
&lt;LI&gt;Add an &lt;STRONG&gt;Open File&lt;/STRONG&gt; block from the &lt;STRONG&gt;Cloud Storage&lt;/STRONG&gt; connector and configure it as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Connector&lt;/STRONG&gt;: Microsoft SharePoint&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Path&lt;/STRONG&gt;: templateFileName variable&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive&lt;/STRONG&gt; &lt;STRONG&gt;Id&lt;/STRONG&gt;: driveId variable.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="open file block.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186472i63A2F6E5CCADBCD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="open file block.png" alt="open file block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Copy File block&lt;/STRONG&gt; from the &lt;STRONG&gt;Cloud Storage &lt;/STRONG&gt;connector. &lt;BR /&gt;&lt;BR /&gt;This&amp;nbsp;block will copy the template Excel File and create a new empty Excel file to create the purchase order. &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Source File&lt;/STRONG&gt;: select the “Open File on Microsoft SharePoint …” block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Destination connector&lt;/STRONG&gt;: Microsoft SharePoint&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Destination Path&lt;/STRONG&gt;: folder path + / + destinationFileName variable&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: driveId variable&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="copy file block.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186473i50AD4CFBA89A3D47/image-size/large?v=v2&amp;amp;px=999" role="button" title="copy file block.png" alt="copy file block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;List Items On Drive&lt;/STRONG&gt; block from the &lt;STRONG&gt;Microsoft SharePoint&lt;/STRONG&gt; connector. &lt;BR /&gt;&lt;BR /&gt;This block will be used to get the Item Id for the file created by the &lt;STRONG&gt;Copy File&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;Configure it as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: driveId variable&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Item Id&lt;/STRONG&gt;: folderId variable&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;Right-click on the &lt;STRONG&gt;List Items On Drive&lt;/STRONG&gt; block and choose &lt;STRONG&gt;Collapse loop&lt;/STRONG&gt;. This saves space in the automation and makes it more readable.&lt;BR /&gt;&lt;EM&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="list items on drive block.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186474iDC98BF61209D5DC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="list items on drive block.png" alt="list items on drive block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Perform a manual run of the automation to verify that the destination Excel file is created and is returned by the &lt;STRONG&gt;List Items On Drive&lt;/STRONG&gt; block.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block from the Lists blocks section. &lt;BR /&gt;&lt;BR /&gt;This block will be used to retrieve the &lt;STRONG&gt;item id&lt;/STRONG&gt; of the file created by the&amp;nbsp;&lt;STRONG&gt;Copy File&lt;/STRONG&gt; block (because this id is not returned by the &lt;STRONG&gt;Copy File&lt;/STRONG&gt; block). &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;List&lt;/STRONG&gt;: full output from &lt;STRONG&gt;List Items On Drive 2&amp;nbsp;&lt;/STRONG&gt;(&lt;STRONG&gt;A&lt;/STRONG&gt;)&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Conditions&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;Click the first input box (Property from) in the Condition parameter (&lt;STRONG&gt;B&lt;/STRONG&gt;) and select the name parameter (&lt;STRONG&gt;C&lt;/STRONG&gt;).&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="select the name condition.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186475i5A510BD9E45DCFB6/image-size/large?v=v2&amp;amp;px=999" role="button" title="select the name condition.png" alt="select the name condition.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Set the next input field (operator) to &lt;FONT face="courier new,courier"&gt;equals&lt;/FONT&gt;&amp;nbsp;(&lt;STRONG&gt;D&lt;/STRONG&gt;).&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="equals conditin.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186476iD14C5BE12D5A7014/image-size/large?v=v2&amp;amp;px=999" role="button" title="equals conditin.png" alt="equals conditin.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Set the third one (Value) to the &lt;STRONG&gt;destinationFileName&lt;/STRONG&gt; (&lt;STRONG&gt;E&lt;/STRONG&gt;) variable.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="destination filename value.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186477iB419991554BC2A93/image-size/large?v=v2&amp;amp;px=999" role="button" title="destination filename value.png" alt="destination filename value.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;OL start="9"&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Create Workbook Session&lt;/STRONG&gt; block from the &lt;STRONG&gt;Microsoft Excel&lt;/STRONG&gt; connector and configure it with the output from the &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="create workbook session.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186478i2AAB4D7114F7A5BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="create workbook session.png" alt="create workbook session.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;List Current Changes From Change Store&lt;/STRONG&gt; block from the &lt;STRONG&gt;Qlik Cloud Services&lt;/STRONG&gt; connector. &lt;BR /&gt;&lt;BR /&gt;This block will return all saved changes from the change store. &lt;BR /&gt;&lt;BR /&gt;Configure the&lt;STRONG&gt; Store Id&lt;/STRONG&gt; parameter with the write table’s change store id.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="list current changes from change store.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186479i0F66BAE212EE877C/image-size/large?v=v2&amp;amp;px=999" role="button" title="list current changes from change store.png" alt="list current changes from change store.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Filter List&lt;/STRONG&gt; block. This block will be used to filter orders for the correct week. &lt;BR /&gt;&lt;BR /&gt;Configure it as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;List&lt;/STRONG&gt;: output of the &lt;STRONG&gt;List Current Changes From Change Store&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Conditions&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Property from&lt;/STRONG&gt;: the Order Date (&lt;STRONG&gt;A&lt;/STRONG&gt;) returned by the &lt;STRONG&gt;List Current Changes From Change Store&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt;&lt;/FONT&gt; Make sure this field is part of your primary key so it is included in the change data from the change store.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="property from order date.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186487iAD42DC62D6E7A1D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="property from order date.png" alt="property from order date.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Operator&lt;/STRONG&gt;: &lt;FONT face="courier new,courier"&gt;equals&lt;/FONT&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;: the &lt;STRONG&gt;weekStart&lt;/STRONG&gt; input from the &lt;STRONG&gt;Inputs&lt;/STRONG&gt; block&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="conditin order date equals inputs week start.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186488iC4473AEE99B8C28E/image-size/large?v=v2&amp;amp;px=999" role="button" title="conditin order date equals inputs week start.png" alt="conditin order date equals inputs week start.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;OL start="12"&gt;
&lt;LI&gt;Add an &lt;STRONG&gt;Update Rows In Worksheet&lt;/STRONG&gt; block from the &lt;STRONG&gt;Microsoft Excel&lt;/STRONG&gt; connector. &lt;BR /&gt;&lt;BR /&gt;This block will only be used to update a single cell in the Excel template with the date of the Week Start. &lt;BR /&gt;&lt;BR /&gt;If your Order form does not have such a value, you can ignore this step. &lt;BR /&gt;&lt;BR /&gt;If it has multiple of these values, then you can repeat it for each of them. &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: Drive Id from the “Parent Reference” from the &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Item Id&lt;/STRONG&gt;: Id from the &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Worksheet Name&lt;/STRONG&gt;: Sheet Name variable&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Start Cell&lt;/STRONG&gt;: Coordinate of the Excel cell that needs to be updated. In the example template, this is G2.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;End Cell&lt;/STRONG&gt;: Same coordinate as the Start Cell since we are only updating a single cell.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Values&lt;/STRONG&gt;: The &lt;STRONG&gt;weekStart&lt;/STRONG&gt; input from the &lt;STRONG&gt;Inputs&lt;/STRONG&gt; block. Since it will only update a single cell, there is no need to create an array as described in the help text.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="week start input value.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186489i0743BF74F13A7D85/image-size/large?v=v2&amp;amp;px=999" role="button" title="week start input value.png" alt="week start input value.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Loop Batch&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;This block will divide the output from the &lt;STRONG&gt;Filter List&lt;/STRONG&gt; block across multiple batches that can be added to Excel batch by batch. &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Loop over items of list&lt;/STRONG&gt;: &lt;STRONG&gt;Filter List&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Amount of items per batch&lt;/STRONG&gt;: 100&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loop batch.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186490iDDE24BB81F977993/image-size/large?v=v2&amp;amp;px=999" role="button" title="loop batch.png" alt="loop batch.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL start="14"&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Variable&lt;/STRONG&gt; block inside the &lt;STRONG&gt;Batch Loop&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;Create a new variable &lt;STRONG&gt;RowsString&lt;/STRONG&gt;&amp;nbsp;of type string. &lt;BR /&gt;&lt;BR /&gt;This variable will be used to build a string containing the changes in a format that is accepted by the &lt;STRONG&gt;Microsoft Excel&lt;/STRONG&gt; connector. &lt;BR /&gt;&lt;BR /&gt;Add the following operations in the variable block:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Empty RowsString&lt;/STRONG&gt;: this makes sure that on every new batch, the variable is emptied.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Append to RowsString&lt;/STRONG&gt;: this will add the first text value to the string. Configure this to a single square bracket &lt;FONT face="courier new,courier"&gt;[&lt;/FONT&gt;.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="variable-rowstring.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186491i93B9A13B09B0E2DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="variable-rowstring.png" alt="variable-rowstring.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Loop&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;This block will iterate over all the changes in the current batch. &lt;BR /&gt;&lt;BR /&gt;Configure it as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Loop over items of list&lt;/STRONG&gt;: Loop Batch &amp;gt; Batch&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add a loop block and loop batch.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186493i50E78C2F2A78E756/image-size/large?v=v2&amp;amp;px=999" role="button" title="add a loop block and loop batch.png" alt="add a loop block and loop batch.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;Perform a manual run of the automation to make sure there are example values in the &lt;STRONG&gt;Loop&lt;/STRONG&gt; block.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Get User&lt;/STRONG&gt; block from the &lt;STRONG&gt;Qlik Cloud Services&lt;/STRONG&gt; connector inside the loop of the &lt;STRONG&gt;Loop&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;This block will be used to retrieve the user information for the &lt;STRONG&gt;updatedBy&lt;/STRONG&gt; parameter in each change. &lt;BR /&gt;&lt;BR /&gt;Configure it to use the &lt;STRONG&gt;updatedBy&lt;/STRONG&gt; parameter as input for the &lt;STRONG&gt;User Id &lt;/STRONG&gt;parameter.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="get user block in loop.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186494i423E33270E3A6899/image-size/large?v=v2&amp;amp;px=999" role="button" title="get user block in loop.png" alt="get user block in loop.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a Variable block to the &lt;STRONG&gt;Get User&lt;/STRONG&gt; block and configure it to use the &lt;STRONG&gt;RowsString&lt;/STRONG&gt; &lt;STRONG&gt;variable&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Add an &lt;STRONG&gt;Append&lt;/STRONG&gt; to &lt;STRONG&gt;RowsString&lt;/STRONG&gt; operation and configure the Value to be of this format &lt;FONT face="courier new,courier"&gt;[“value1”,“value2”,…]&lt;/FONT&gt; where every item in this list corresponds with a value from the change that should be stored in the Excel file.&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;This string should be built value by value. &lt;BR /&gt;&lt;BR /&gt;Start by typing &lt;FONT face="courier new,courier"&gt;[“&lt;/FONT&gt; and then click to add the first value &lt;STRONG&gt;Product ID&lt;/STRONG&gt; (&lt;STRONG&gt;A&lt;/STRONG&gt;)&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="operations on rowstrings.png" style="width: 976px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186529i0C5471A82F1FB613/image-size/large?v=v2&amp;amp;px=999" role="button" title="operations on rowstrings.png" alt="operations on rowstrings.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Append to Rowstrings.png" style="width: 984px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186497i328F61602A4DABC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Append to Rowstrings.png" alt="Append to Rowstrings.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Add another &lt;STRONG&gt;double quote&lt;/STRONG&gt;, a &lt;STRONG&gt;comma&lt;/STRONG&gt;, and a &lt;STRONG&gt;new double quote&lt;/STRONG&gt;&amp;nbsp;(&lt;FONT face="courier new,courier"&gt;","&lt;/FONT&gt;) for the next value:&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add comma and quotation marks.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186498i57015CDD7655460D/image-size/large?v=v2&amp;amp;px=999" role="button" title="add comma and quotation marks.png" alt="add comma and quotation marks.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Repeat steps a and b to add all the values. &lt;BR /&gt;&lt;BR /&gt;Finally, add the user’s name from the &lt;STRONG&gt;Get User&lt;/STRONG&gt; block as the final value. &lt;BR /&gt;&lt;BR /&gt;Optionally, this can also be another indicator, such as an email address. Finish the operation with another square bracket and a trailing comma (&lt;FONT face="courier new,courier"&gt;"],&lt;/FONT&gt;).&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add all values.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186499i14DCA6EE4CBFFD49/image-size/large?v=v2&amp;amp;px=999" role="button" title="add all values.png" alt="add all values.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Add an &lt;STRONG&gt;Add Rows To Table (Batch)&lt;/STRONG&gt; block from the &lt;STRONG&gt;Microsoft Excel&lt;/STRONG&gt; connector after the loop from the Loop block. &lt;BR /&gt;&lt;BR /&gt;This block will be used to update the Excel file with the generated string that represents the current batch of changes. &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: Drive Id from the “Parent Reference” from the &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Item Id&lt;/STRONG&gt;: Id from the &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Worksheet&lt;/STRONG&gt;: Sheet Name variable&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Table Id&lt;/STRONG&gt;: Table Name variable&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Rows&lt;/STRONG&gt;: This will be the Rows String variable, but it is not fully ready yet and needs some modifications:&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-upper-alpha"&gt;
&lt;LI&gt;Add the &lt;STRONG&gt;Rows String&lt;/STRONG&gt; variable&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rows rows string.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186500i254151175ADDBAD3/image-size/large?v=v2&amp;amp;px=999" role="button" title="rows rows string.png" alt="rows rows string.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Click the field mapping to the variable and choose &lt;STRONG&gt;Add formula&lt;/STRONG&gt;. This&amp;nbsp;will open the formula picker.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add formula to rows string.png" style="width: 339px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186501i9281854E60B6D321/image-dimensions/339x269?v=v2" width="339" height="269" role="button" title="add formula to rows string.png" alt="add formula to rows string.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Search for the &lt;STRONG&gt;Right trim&lt;/STRONG&gt; formula.&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="right trim.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186502i530E2AFFC7ABBDA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="right trim.png" alt="right trim.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Configure the &lt;STRONG&gt;Character to trim&lt;/STRONG&gt; parameter to a &lt;STRONG&gt;single comma&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="right trim character to trim.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186503i34E8520571252C7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="right trim character to trim.png" alt="right trim character to trim.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Type a &lt;STRONG&gt;single square bracket&lt;/STRONG&gt; after the field mapping in the &lt;STRONG&gt;Rows input&lt;/STRONG&gt; field:&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add a single square bracket to close the input field.png" style="width: 488px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186504iC8A296411AB4D2AE/image-dimensions/488x124?v=v2" width="488" height="124" role="button" title="add a single square bracket to close the input field.png" alt="add a single square bracket to close the input field.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add rows to table batch.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186505iDB42C5A49A479411/image-size/large?v=v2&amp;amp;px=999" role="button" title="add rows to table batch.png" alt="add rows to table batch.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Close Workbook Session&lt;/STRONG&gt; block from the &lt;STRONG&gt;Microsoft Excel&lt;/STRONG&gt; connector at the end of the automation after the loop from the &lt;STRONG&gt;Loop Batch&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: Drive Id from the &lt;STRONG&gt;Parent Reference&lt;/STRONG&gt; from the &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Item Id&lt;/STRONG&gt;: Id from the &lt;STRONG&gt;Lookup Item In List&lt;/STRONG&gt; block&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Session Id&lt;/STRONG&gt;: Id from the output of the &lt;STRONG&gt;Create Workbook Session&lt;/STRONG&gt; block&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add a close workbook session block.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186506i6DD9E8C2BD0F2C80/image-size/large?v=v2&amp;amp;px=999" role="button" title="add a close workbook session block.png" alt="add a close workbook session block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Run the automation manually and review the generated Excel file to make sure the table in the order form is correctly populated.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="run the automation and review the excel.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186507iA45BA5430CEA40D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="run the automation and review the excel.png" alt="run the automation and review the excel.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="run the automation and review the excel content.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186508i84C30F3A0CD6CD09/image-size/large?v=v2&amp;amp;px=999" role="button" title="run the automation and review the excel content.png" alt="run the automation and review the excel content.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Running the automation from the sheet&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;The automation is now configured and can be run manually. But ideally, a user can run it from within the Qlik Sense app whenever they are finished with creating orders through the Write Table.&lt;/P&gt;
&lt;P&gt;This article will only cover the button’s configuration in a sheet. A step-by-step guide on configuring the button object to run automations is available in&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/How-to-run-an-automation-with-custom-parameters-through-the-Qlik/ta-p/2496485" target="_blank" rel="noopener"&gt;How to run an automation with custom parameters through the Qlik Sense button&lt;/A&gt;.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Button&lt;/STRONG&gt; object to the sheet that contains the Write Table, set the button's action to 'Execute automation', and configure the automation.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt;&lt;/FONT&gt; The automation selector in the button object only returns the first 100 automations. If your automation is not shown, you might need to manually copy and paste the automation id from the automation URL.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;parameter&lt;/STRONG&gt; for the &lt;STRONG&gt;weekStart&lt;/STRONG&gt; input from the automation's &lt;STRONG&gt;Inputs&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;Then configure it to use the &lt;STRONG&gt;GetFieldSelections&lt;/STRONG&gt; formula for the &lt;STRONG&gt;[Order Date]&lt;/STRONG&gt; field (this is used as Week start in the Write Table).&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add weekstart input from automation inputs block.png" style="width: 421px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186509i5721F7C95659522D/image-dimensions/421x568?v=v2" width="421" height="568" role="button" title="add weekstart input from automation inputs block.png" alt="add weekstart input from automation inputs block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Select a date in the app and click the button to run the automation and ensure that the correct date is received by the Inputs block:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Write Table Demo.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186511i7C21DCEDCB361946/image-size/large?v=v2&amp;amp;px=999" role="button" title="Write Table Demo.png" alt="Write Table Demo.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="automation per block event.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186512i5133F6898C9B4E3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="automation per block event.png" alt="automation per block event.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Bonus: overwriting an existing Excel file&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;The &lt;STRONG&gt;Copy File&lt;/STRONG&gt; block will fail when there already exists an Excel file with the same name. Depending on the use case, that might be the right behavior or you might want to overwrite the file.&lt;BR /&gt;The overwrite process explained below will delete the existing file and then create a new file.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to the automation and disconnect the&amp;nbsp;&lt;STRONG&gt;Open File on Microsoft SharePoint&lt;/STRONG&gt; block from the&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Variable - tableName&lt;/STRONG&gt;&amp;nbsp;block.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Search for the&amp;nbsp;&lt;STRONG&gt;Check If File Exists&lt;/STRONG&gt;&amp;nbsp;block from the &lt;STRONG&gt;Cloud Storage&lt;/STRONG&gt; connector and connect it to the&amp;nbsp;&lt;STRONG&gt;Variable - tableName&lt;/STRONG&gt;&amp;nbsp;block. &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Connector&lt;/STRONG&gt;: Microsoft SharePoint&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Path&lt;/STRONG&gt;: folder path + / + destinationFileName variable (this should be the same path as the one configured in the &lt;STRONG&gt;Copy File&lt;/STRONG&gt; block)&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: driveId variable&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="driveID variable.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186513i9ECB6AFFA4297338/image-size/large?v=v2&amp;amp;px=999" role="button" title="driveID variable.png" alt="driveID variable.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Add a &lt;STRONG&gt;Condition&lt;/STRONG&gt; block to the automation and configure it to evaluate the output from the &lt;STRONG&gt;Check If File Exists&lt;/STRONG&gt; block. &lt;BR /&gt;&lt;BR /&gt;This block will return a Boolean (true or false) result. If it is true, the file exists. &lt;BR /&gt;&lt;BR /&gt;Configure the Condition block to evaluate that output using the Boolean 'is true' operator:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="check if file exists is true.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186514i9FEFD50D553E3F27/image-size/large?v=v2&amp;amp;px=999" role="button" title="check if file exists is true.png" alt="check if file exists is true.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Delete File&lt;/STRONG&gt; block from the &lt;STRONG&gt;Cloud Storage&lt;/STRONG&gt; connector to the 'Yes' part of the &lt;STRONG&gt;Condition&lt;/STRONG&gt; block. This will then only be executed when a file already exists, and will then delete the file. Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Connector&lt;/STRONG&gt;: Microsoft SharePoint&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Path&lt;/STRONG&gt;: folder path + / + destinationFileName variable (this should be the same path as the one configured in the &lt;STRONG&gt;Copy File&lt;/STRONG&gt; block)&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: driveId variable&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add delete file on ms sharepoint.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186515iB5E60409074E198A/image-size/large?v=v2&amp;amp;px=999" role="button" title="add delete file on ms sharepoint.png" alt="add delete file on ms sharepoint.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Collapse the 'No' part of the &lt;STRONG&gt;Condition&lt;/STRONG&gt; block as this will not be used (when there is no file, the automation can continue and copy the template to create a new file). Right-click on the &lt;STRONG&gt;Condition&lt;/STRONG&gt; block and select the 'Hide NO Condition' option.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hide no condition.png" style="width: 435px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186516i309DCDBC82447877/image-dimensions/435x468?v=v2" width="435" height="468" role="button" title="hide no condition.png" alt="hide no condition.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emile_Koslowski_9-1769436389371.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186418iDBA60E07383AE8F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Emile_Koslowski_9-1769436389371.png" alt="Emile_Koslowski_9-1769436389371.png" /&gt;&lt;/span&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="no condition hidden.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186517i2C5E6DD280F17F26/image-size/large?v=v2&amp;amp;px=999" role="button" title="no condition hidden.png" alt="no condition hidden.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Reconnect the &lt;STRONG&gt;Open File&lt;/STRONG&gt; block (and the other attached blocks) to the &lt;STRONG&gt;Condition&lt;/STRONG&gt; block.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="reconnect the automation blocks.png" style="width: 895px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186518iEE6C1B6334DBE9F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="reconnect the automation blocks.png" alt="reconnect the automation blocks.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Perform two runs of the automation for the same date (weekStart) and ensure the original file is deleted and then recreated.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="delete file.png" style="width: 991px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186519i094631BF9AE59EC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="delete file.png" alt="delete file.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Bonus: Sending the Excel file as an email attachment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Qlik Automate can also be used to share the purchase order with your purchasing team. This can be built in the same automation or in a separate automation. Below are the steps to add this to the same automation.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add an &lt;STRONG&gt;Open File&lt;/STRONG&gt; block from the Cloud Storage connector at the end of the automation. &lt;BR /&gt;&lt;BR /&gt;Configure it as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Connector&lt;/STRONG&gt;: Microsoft SharePoint&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Path&lt;/STRONG&gt;: folder path + / + destinationFileName variable&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: driveId variable&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="open file 2 on microsoft sharepoint.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186549iBB4B5FCBB38B991E/image-size/large?v=v2&amp;amp;px=999" role="button" title="open file 2 on microsoft sharepoint.png" alt="open file 2 on microsoft sharepoint.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Send Mail With Attachments&lt;/STRONG&gt; block from the &lt;STRONG&gt;Microsoft Outlook 365&lt;/STRONG&gt; connector. &lt;BR /&gt;&lt;BR /&gt;This block will be used to send the Excel file as an email attachment to one or more recipients. &lt;BR /&gt;&lt;BR /&gt;Configure the block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;To&lt;/STRONG&gt;: one or more email addresses for the recipients of the purchase order&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Subject&lt;/STRONG&gt;: Purchase order { $.inputs.weekStart }&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;: text&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Content Body&lt;/STRONG&gt;: &amp;lt;your email body&amp;gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Attachments&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;
&lt;OL class="lia-list-style-type-upper-alpha"&gt;
&lt;LI&gt;Click the 'Add attachment' button&lt;/LI&gt;
&lt;LI&gt;Specify the output from the &lt;STRONG&gt;Open File 2&lt;/STRONG&gt; block&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add attachment.png" style="width: 955px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186550iBE6368E0C44AD952/image-size/large?v=v2&amp;amp;px=999" role="button" title="add attachment.png" alt="add attachment.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Tip!&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;Update the button label to make it clear to users of your app that clicking it will also send the purchase order. &lt;BR /&gt;&lt;BR /&gt;As an alternative, it is also possible to add these blocks to a new automation that is triggered from a second button.&lt;BR /&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Write Table Demo.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/186511i7C21DCEDCB361946/image-size/large?v=v2&amp;amp;px=999" role="button" title="Write Table Demo.png" alt="Write Table Demo.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 15:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-extract-changes-from-the-change-store-Write-Table-and/ta-p/2541457</guid>
      <dc:creator>Emile_Koslowski</dc:creator>
      <dc:date>2026-01-28T15:06:11Z</dc:date>
    </item>
  </channel>
</rss>

