<?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 Qlik Automate: How to Add Text Strings with Quotes obtained from Straight Table to a Microsoft Excel Using &amp;quot;Add rows to table (Batch)&amp;quot; in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Automate-How-to-Add-Text-Strings-with-Quotes-obtained-from/ta-p/2093522</link>
    <description>&lt;P&gt;This article shares a step-by-step process on how to copy straight table data having quotes to Excel using&amp;nbsp;"Add rows to table (Batch)" in Qlik Automate.&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Full Automation&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="full automation overview.png" style="width: 548px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112986iD321DA78E93AA50F/image-size/large?v=v2&amp;amp;px=999" role="button" title="full automation overview.png" alt="full automation overview.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;BLOCKQUOTE class="quote"&gt;&lt;SPAN&gt;The attached JSON file can be directly&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/How-to-import-and-export-automations/ta-p/1781602" target="_blank" rel="noopener"&gt;imported into a new workspace&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;
&lt;H3 id="toc-hId--496747452"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Step-by-step description&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Start your automation with the&amp;nbsp;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;reate Workbook Session&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;block from the Microsoft Excel connector. &lt;BR /&gt;&lt;BR /&gt;Use the &lt;STRONG&gt;session id&lt;/STRONG&gt; returned by this block in all subsequent blocks with a &lt;STRONG&gt;Session Id&lt;/STRONG&gt; input field. The session id field can be found by navigating to the settings of Microsoft Excel blocks as shown in the below screenshot.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;BLOCKQUOTE class="quote"&gt;When using a Microsoft Excel workbook session in automation, the session must be closed at the end of the automation by adding a&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Close Workbook Session&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;block.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;
&lt;EM&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Workbook Session ID" style="width: 339px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112987iAC21FBE5955A63BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Add Worksheet Session ID.png" alt="Workbook Session ID" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Workbook Session ID&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/EM&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;Use the&amp;nbsp;&lt;STRONG&gt;Get Straight Table Data&lt;/STRONG&gt;&amp;nbsp;block from the Qlik Cloud Services connector to get data from the straight table for a specific app we want to sync to the Microsoft Excel worksheet.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;BLOCKQUOTE class="quote"&gt;The limit of 100 000 records that can be retrieved through the&amp;nbsp;&lt;STRONG&gt;Get Straight Table Data&amp;nbsp;&lt;/STRONG&gt;block.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The response from the&amp;nbsp;&lt;STRONG&gt;Get Straight Table Data&amp;nbsp;&lt;/STRONG&gt;block will be as shown in the below screenshot. &lt;BR /&gt;&lt;BR /&gt;The keys will act as headers, and the values will act as rows corresponding to the keys in the Microsoft Excel table.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Response from Qlik Sense straight table" style="width: 305px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112988i157797887B9B53C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="response from qlik sense straight table.png" alt="Response from Qlik Sense straight table" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Response from Qlik Sense straight table&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Loop&amp;nbsp;&lt;/STRONG&gt;block to loop over all items from the straight table.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Initialize a variable called '&lt;STRONG&gt;row&lt;/STRONG&gt;' of type &lt;STRONG&gt;List&lt;/STRONG&gt; and use another&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Loop&amp;nbsp;&lt;/STRONG&gt;block to loop over all the keys from the straight table.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Within the loop, add this '&lt;STRONG&gt;row&lt;/STRONG&gt;' variable of type &lt;STRONG&gt;List&lt;/STRONG&gt; to retrieve each column value for the associated key from the straight table as an item of this list variable, resulting in a single row containing values for all the keys in each iteration. The data will be in the format &lt;FONT face="courier new,courier"&gt;["1","Text\"1\""]&lt;/FONT&gt;. Because this is a list variable, the quotations in the data are automatically escaped.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;We must first compute the &lt;STRONG&gt;Array of Lists&lt;/STRONG&gt; before inserting it into the &lt;STRONG&gt;Add Row To Table(Batch)&lt;/STRONG&gt; block. &lt;FONT face="courier new,courier"&gt;[["1","Text"1""], [["2","Text2"]]&lt;/FONT&gt; will be the format.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add &lt;STRONG&gt;arrayOflist&lt;/STRONG&gt; (variable block of type string). Because the data from the previous stages is an array, use the JSON formula to convert it to a JSON string and append a comma at the end. The data obtained will be in the format&amp;nbsp;&lt;FONT face="courier new,courier"&gt;["1","Text\"1\""],["2","Text2"]&lt;/FONT&gt;&amp;nbsp;.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Use&amp;nbsp;&lt;STRONG&gt;Add Row To Table(Batch) block&amp;nbsp;&lt;/STRONG&gt;from the Microsoft Excel connector to add rows to the table in batch.&amp;nbsp; From the data obtained from the previous stage, Trim the comma at the end and add opening and closing braces.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Make sure to close the workbook session by adding the&amp;nbsp;&lt;STRONG&gt;Close Workbook Session&amp;nbsp;&lt;/STRONG&gt;block from the Microsoft Excel connector at the end of the automation.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 May 2025 14:04:45 GMT</pubDate>
    <dc:creator>Jayarams</dc:creator>
    <dc:date>2025-05-28T14:04:45Z</dc:date>
    <item>
      <title>Qlik Automate: How to Add Text Strings with Quotes obtained from Straight Table to a Microsoft Excel Using "Add rows to table (Batch)"</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Automate-How-to-Add-Text-Strings-with-Quotes-obtained-from/ta-p/2093522</link>
      <description>&lt;P&gt;This article shares a step-by-step process on how to copy straight table data having quotes to Excel using&amp;nbsp;"Add rows to table (Batch)" in Qlik Automate.&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Full Automation&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="full automation overview.png" style="width: 548px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112986iD321DA78E93AA50F/image-size/large?v=v2&amp;amp;px=999" role="button" title="full automation overview.png" alt="full automation overview.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;BLOCKQUOTE class="quote"&gt;&lt;SPAN&gt;The attached JSON file can be directly&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/How-to-import-and-export-automations/ta-p/1781602" target="_blank" rel="noopener"&gt;imported into a new workspace&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;
&lt;H3 id="toc-hId--496747452"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Step-by-step description&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Start your automation with the&amp;nbsp;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;reate Workbook Session&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;block from the Microsoft Excel connector. &lt;BR /&gt;&lt;BR /&gt;Use the &lt;STRONG&gt;session id&lt;/STRONG&gt; returned by this block in all subsequent blocks with a &lt;STRONG&gt;Session Id&lt;/STRONG&gt; input field. The session id field can be found by navigating to the settings of Microsoft Excel blocks as shown in the below screenshot.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;BLOCKQUOTE class="quote"&gt;When using a Microsoft Excel workbook session in automation, the session must be closed at the end of the automation by adding a&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Close Workbook Session&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;block.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;
&lt;EM&gt;&lt;EM&gt;&lt;SPAN&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Workbook Session ID" style="width: 339px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112987iAC21FBE5955A63BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Add Worksheet Session ID.png" alt="Workbook Session ID" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Workbook Session ID&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/EM&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;Use the&amp;nbsp;&lt;STRONG&gt;Get Straight Table Data&lt;/STRONG&gt;&amp;nbsp;block from the Qlik Cloud Services connector to get data from the straight table for a specific app we want to sync to the Microsoft Excel worksheet.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;BLOCKQUOTE class="quote"&gt;The limit of 100 000 records that can be retrieved through the&amp;nbsp;&lt;STRONG&gt;Get Straight Table Data&amp;nbsp;&lt;/STRONG&gt;block.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The response from the&amp;nbsp;&lt;STRONG&gt;Get Straight Table Data&amp;nbsp;&lt;/STRONG&gt;block will be as shown in the below screenshot. &lt;BR /&gt;&lt;BR /&gt;The keys will act as headers, and the values will act as rows corresponding to the keys in the Microsoft Excel table.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Response from Qlik Sense straight table" style="width: 305px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/112988i157797887B9B53C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="response from qlik sense straight table.png" alt="Response from Qlik Sense straight table" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Response from Qlik Sense straight table&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Loop&amp;nbsp;&lt;/STRONG&gt;block to loop over all items from the straight table.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Initialize a variable called '&lt;STRONG&gt;row&lt;/STRONG&gt;' of type &lt;STRONG&gt;List&lt;/STRONG&gt; and use another&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Loop&amp;nbsp;&lt;/STRONG&gt;block to loop over all the keys from the straight table.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Within the loop, add this '&lt;STRONG&gt;row&lt;/STRONG&gt;' variable of type &lt;STRONG&gt;List&lt;/STRONG&gt; to retrieve each column value for the associated key from the straight table as an item of this list variable, resulting in a single row containing values for all the keys in each iteration. The data will be in the format &lt;FONT face="courier new,courier"&gt;["1","Text\"1\""]&lt;/FONT&gt;. Because this is a list variable, the quotations in the data are automatically escaped.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;We must first compute the &lt;STRONG&gt;Array of Lists&lt;/STRONG&gt; before inserting it into the &lt;STRONG&gt;Add Row To Table(Batch)&lt;/STRONG&gt; block. &lt;FONT face="courier new,courier"&gt;[["1","Text"1""], [["2","Text2"]]&lt;/FONT&gt; will be the format.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add &lt;STRONG&gt;arrayOflist&lt;/STRONG&gt; (variable block of type string). Because the data from the previous stages is an array, use the JSON formula to convert it to a JSON string and append a comma at the end. The data obtained will be in the format&amp;nbsp;&lt;FONT face="courier new,courier"&gt;["1","Text\"1\""],["2","Text2"]&lt;/FONT&gt;&amp;nbsp;.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Use&amp;nbsp;&lt;STRONG&gt;Add Row To Table(Batch) block&amp;nbsp;&lt;/STRONG&gt;from the Microsoft Excel connector to add rows to the table in batch.&amp;nbsp; From the data obtained from the previous stage, Trim the comma at the end and add opening and closing braces.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Make sure to close the workbook session by adding the&amp;nbsp;&lt;STRONG&gt;Close Workbook Session&amp;nbsp;&lt;/STRONG&gt;block from the Microsoft Excel connector at the end of the automation.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 14:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Automate-How-to-Add-Text-Strings-with-Quotes-obtained-from/ta-p/2093522</guid>
      <dc:creator>Jayarams</dc:creator>
      <dc:date>2025-05-28T14:04:45Z</dc:date>
    </item>
  </channel>
</rss>

