<?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 export files to a custom SharePoint document library with Qlik Automate in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-export-files-to-a-custom-SharePoint-document-library-with/ta-p/2546922</link>
    <description>&lt;P&gt;It is possible to save files generated by Qlik Automate (such as reports from the Generate Report and Copy File block) directly to a custom SharePoint document library instead of the default &lt;EM&gt;Shared Documents&lt;/EM&gt; or &lt;EM&gt;Documents&lt;/EM&gt; library.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default, the &lt;STRONG&gt;Drive ID dropdown&lt;/STRONG&gt; in the &lt;STRONG&gt;Copy File block&lt;/STRONG&gt; will only show the default library; this article explains how to correctly target any &lt;STRONG&gt;custom library&lt;/STRONG&gt; using the &lt;STRONG&gt;List Drives From Site block&lt;/STRONG&gt;.&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Background Information&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;The &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Microsoft SharePoint connector&lt;/STRONG&gt;&lt;/FONT&gt; in &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Qlik Automate&lt;/STRONG&gt;&lt;/FONT&gt; uses the concept of Drives, where each SharePoint document library is a separate Drive with its own unique Drive ID (GUID).&lt;/P&gt;
&lt;P&gt;By default, when you use the &lt;STRONG&gt;Copy File on Microsoft SharePoint&lt;/STRONG&gt;&amp;nbsp;(or any similar write blocks) and perform a &lt;STRONG&gt;Do Lookup&lt;/STRONG&gt; on the &lt;STRONG&gt;Drive Id&lt;/STRONG&gt; field, Qlik Automate only displays and allows selection of the site's default document library, which is typically called&amp;nbsp;&lt;STRONG&gt;Documents&amp;nbsp;&lt;/STRONG&gt;or&amp;nbsp;&lt;STRONG&gt;Shared Documents&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Even if you have created additional custom document libraries and they appear correctly in the SharePoint Site Contents view as separate Folders, these custom libraries do not appear in the simple Drive ID dropdown of the Copy File block.&lt;/P&gt;
&lt;P&gt;As a result, any file copy operation defaults to the default library. If you enter a path such as &lt;EM&gt;New Folder/QLIK/filename.pdf&lt;/EM&gt;, the automation interprets &lt;EM&gt;New Folder&lt;/EM&gt;&amp;nbsp;as a subfolder inside the default library, causing the file to be saved under &lt;EM&gt;/Shared documents/New Folder/QLIK/...&lt;/EM&gt;&amp;nbsp;instead of directly at the root of the custom library.&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;How to target a custom document library&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;To target a custom document library, we retrieve its &lt;STRONG&gt;unique Drive ID&lt;/STRONG&gt; and then use that ID in the &lt;STRONG&gt;Copy File block&lt;/STRONG&gt;. But before we can do this, we need to first discover all available document libraries (drives) on the SharePoint site so we can select the correct Drive ID for the custom library instead of defaulting to &lt;EM&gt;Documents&lt;/EM&gt;.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create or open an automation that needs to write to SharePoint&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Add the &lt;STRONG&gt;List Drives From Site&lt;/STRONG&gt;&amp;nbsp;from the Microsoft SharePoint connector.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sharepoint automation.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187852i72FF45EA8573EA7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="sharepoint automation.png" alt="sharepoint automation.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Configure the &lt;STRONG&gt;List Drives From Site&amp;nbsp;&lt;/STRONG&gt;block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Site Id&lt;/STRONG&gt;:
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;Click the field&lt;/LI&gt;
&lt;LI&gt;Select &lt;STRONG&gt;Do Lookup &lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Select the correct site&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="list drives from site.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187847iF5034941D6B75644/image-size/large?v=v2&amp;amp;px=999" role="button" title="list drives from site.png" alt="list drives from site.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Leave other fields at their default or with empty values&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Right-click the &lt;STRONG&gt;List Drives From Site block&lt;/STRONG&gt;&amp;nbsp;and select &lt;STRONG&gt;Test Run&lt;/STRONG&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test run.png" style="width: 415px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187848i74A16F1AE51D9BEB/image-dimensions/415x503?v=v2" width="415" height="503" role="button" title="test run.png" alt="test run.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;After the block executes successfully, go to the &lt;STRONG&gt;History&lt;/STRONG&gt;&amp;nbsp;tab and expand the output of the &lt;STRONG&gt;List Drives From Site&lt;/STRONG&gt; block&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;In the output, locate the entry for your custom library; look for the name, title, or WebUrl field to identify it&lt;BR /&gt;&lt;BR /&gt;Copy the entire&amp;nbsp;&lt;STRONG&gt;id value&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="copy id from history.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187849i5D24B060FA3FEB28/image-size/large?v=v2&amp;amp;px=999" role="button" title="copy id from history.png" alt="copy id from history.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Go to your original &lt;STRONG&gt;Copy File&lt;/STRONG&gt; block (or whichever write block you are using) and configure it as follows:
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: paste the Drive Id you retrieved from the History; this can either be hard-coded or stored in a variable for reusability&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Destination Path&lt;/STRONG&gt;: enter the relative path starting from the root of that library&lt;BR /&gt;Example:&amp;nbsp;&lt;EM&gt;QLIK/&amp;lt;filename&amp;gt;.pdf&lt;/EM&gt; or&amp;nbsp;&lt;EM&gt;QLIK/[Date]_Report.pdf&lt;/EM&gt;
&lt;BLOCKQUOTE class="quote"&gt;Do not include the library name in the path.&lt;/BLOCKQUOTE&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paste the drive id.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187853iAB305516075241E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="paste the drive id.png" alt="paste the drive id.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Save&lt;/STRONG&gt; and &lt;STRONG&gt;test&lt;/STRONG&gt; the automation&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Automate&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Thu, 16 Apr 2026 14:01:55 GMT</pubDate>
    <dc:creator>ArpadWeitz</dc:creator>
    <dc:date>2026-04-16T14:01:55Z</dc:date>
    <item>
      <title>How to export files to a custom SharePoint document library with Qlik Automate</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/How-to-export-files-to-a-custom-SharePoint-document-library-with/ta-p/2546922</link>
      <description>&lt;P&gt;It is possible to save files generated by Qlik Automate (such as reports from the Generate Report and Copy File block) directly to a custom SharePoint document library instead of the default &lt;EM&gt;Shared Documents&lt;/EM&gt; or &lt;EM&gt;Documents&lt;/EM&gt; library.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default, the &lt;STRONG&gt;Drive ID dropdown&lt;/STRONG&gt; in the &lt;STRONG&gt;Copy File block&lt;/STRONG&gt; will only show the default library; this article explains how to correctly target any &lt;STRONG&gt;custom library&lt;/STRONG&gt; using the &lt;STRONG&gt;List Drives From Site block&lt;/STRONG&gt;.&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Background Information&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;The &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Microsoft SharePoint connector&lt;/STRONG&gt;&lt;/FONT&gt; in &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Qlik Automate&lt;/STRONG&gt;&lt;/FONT&gt; uses the concept of Drives, where each SharePoint document library is a separate Drive with its own unique Drive ID (GUID).&lt;/P&gt;
&lt;P&gt;By default, when you use the &lt;STRONG&gt;Copy File on Microsoft SharePoint&lt;/STRONG&gt;&amp;nbsp;(or any similar write blocks) and perform a &lt;STRONG&gt;Do Lookup&lt;/STRONG&gt; on the &lt;STRONG&gt;Drive Id&lt;/STRONG&gt; field, Qlik Automate only displays and allows selection of the site's default document library, which is typically called&amp;nbsp;&lt;STRONG&gt;Documents&amp;nbsp;&lt;/STRONG&gt;or&amp;nbsp;&lt;STRONG&gt;Shared Documents&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Even if you have created additional custom document libraries and they appear correctly in the SharePoint Site Contents view as separate Folders, these custom libraries do not appear in the simple Drive ID dropdown of the Copy File block.&lt;/P&gt;
&lt;P&gt;As a result, any file copy operation defaults to the default library. If you enter a path such as &lt;EM&gt;New Folder/QLIK/filename.pdf&lt;/EM&gt;, the automation interprets &lt;EM&gt;New Folder&lt;/EM&gt;&amp;nbsp;as a subfolder inside the default library, causing the file to be saved under &lt;EM&gt;/Shared documents/New Folder/QLIK/...&lt;/EM&gt;&amp;nbsp;instead of directly at the root of the custom library.&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;How to target a custom document library&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;To target a custom document library, we retrieve its &lt;STRONG&gt;unique Drive ID&lt;/STRONG&gt; and then use that ID in the &lt;STRONG&gt;Copy File block&lt;/STRONG&gt;. But before we can do this, we need to first discover all available document libraries (drives) on the SharePoint site so we can select the correct Drive ID for the custom library instead of defaulting to &lt;EM&gt;Documents&lt;/EM&gt;.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create or open an automation that needs to write to SharePoint&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Add the &lt;STRONG&gt;List Drives From Site&lt;/STRONG&gt;&amp;nbsp;from the Microsoft SharePoint connector.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sharepoint automation.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187852i72FF45EA8573EA7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="sharepoint automation.png" alt="sharepoint automation.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Configure the &lt;STRONG&gt;List Drives From Site&amp;nbsp;&lt;/STRONG&gt;block as follows:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Site Id&lt;/STRONG&gt;:
&lt;OL class="lia-list-style-type-lower-alpha"&gt;
&lt;LI&gt;Click the field&lt;/LI&gt;
&lt;LI&gt;Select &lt;STRONG&gt;Do Lookup &lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Select the correct site&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="list drives from site.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187847iF5034941D6B75644/image-size/large?v=v2&amp;amp;px=999" role="button" title="list drives from site.png" alt="list drives from site.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Leave other fields at their default or with empty values&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Right-click the &lt;STRONG&gt;List Drives From Site block&lt;/STRONG&gt;&amp;nbsp;and select &lt;STRONG&gt;Test Run&lt;/STRONG&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test run.png" style="width: 415px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187848i74A16F1AE51D9BEB/image-dimensions/415x503?v=v2" width="415" height="503" role="button" title="test run.png" alt="test run.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;After the block executes successfully, go to the &lt;STRONG&gt;History&lt;/STRONG&gt;&amp;nbsp;tab and expand the output of the &lt;STRONG&gt;List Drives From Site&lt;/STRONG&gt; block&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;In the output, locate the entry for your custom library; look for the name, title, or WebUrl field to identify it&lt;BR /&gt;&lt;BR /&gt;Copy the entire&amp;nbsp;&lt;STRONG&gt;id value&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="copy id from history.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187849i5D24B060FA3FEB28/image-size/large?v=v2&amp;amp;px=999" role="button" title="copy id from history.png" alt="copy id from history.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Go to your original &lt;STRONG&gt;Copy File&lt;/STRONG&gt; block (or whichever write block you are using) and configure it as follows:
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;&lt;STRONG&gt;Drive Id&lt;/STRONG&gt;: paste the Drive Id you retrieved from the History; this can either be hard-coded or stored in a variable for reusability&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Destination Path&lt;/STRONG&gt;: enter the relative path starting from the root of that library&lt;BR /&gt;Example:&amp;nbsp;&lt;EM&gt;QLIK/&amp;lt;filename&amp;gt;.pdf&lt;/EM&gt; or&amp;nbsp;&lt;EM&gt;QLIK/[Date]_Report.pdf&lt;/EM&gt;
&lt;BLOCKQUOTE class="quote"&gt;Do not include the library name in the path.&lt;/BLOCKQUOTE&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paste the drive id.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187853iAB305516075241E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="paste the drive id.png" alt="paste the drive id.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Save&lt;/STRONG&gt; and &lt;STRONG&gt;test&lt;/STRONG&gt; the automation&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Automate&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 16 Apr 2026 14:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/How-to-export-files-to-a-custom-SharePoint-document-library-with/ta-p/2546922</guid>
      <dc:creator>ArpadWeitz</dc:creator>
      <dc:date>2026-04-16T14:01:55Z</dc:date>
    </item>
  </channel>
</rss>

