<?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>topic File from collection to a folder path in University Forum</title>
    <link>https://community.blueprism.com/t5/University-Forum/File-from-collection-to-a-folder-path/m-p/121433#M4389</link>
    <description>&lt;P&gt;I used the &lt;STRONG&gt;Get File&lt;/STRONG&gt; action to retrieve an .xlsx attachment from an email, and it was successfully stored in a &lt;STRONG&gt;collection&lt;/STRONG&gt;. The challenge I’m facing now is how to &lt;STRONG&gt;extract the file from the collection and save it to a specific folder path&lt;/STRONG&gt; on my system.&lt;/P&gt;&lt;P&gt;Please assist&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jul 2025 03:47:54 GMT</pubDate>
    <dc:creator>blazino17</dc:creator>
    <dc:date>2025-07-11T03:47:54Z</dc:date>
    <item>
      <title>File from collection to a folder path</title>
      <link>https://community.blueprism.com/t5/University-Forum/File-from-collection-to-a-folder-path/m-p/121433#M4389</link>
      <description>&lt;P&gt;I used the &lt;STRONG&gt;Get File&lt;/STRONG&gt; action to retrieve an .xlsx attachment from an email, and it was successfully stored in a &lt;STRONG&gt;collection&lt;/STRONG&gt;. The challenge I’m facing now is how to &lt;STRONG&gt;extract the file from the collection and save it to a specific folder path&lt;/STRONG&gt; on my system.&lt;/P&gt;&lt;P&gt;Please assist&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 03:47:54 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/File-from-collection-to-a-folder-path/m-p/121433#M4389</guid>
      <dc:creator>blazino17</dc:creator>
      <dc:date>2025-07-11T03:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: File from collection to a folder path</title>
      <link>https://community.blueprism.com/t5/University-Forum/File-from-collection-to-a-folder-path/m-p/121463#M4392</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/61249"&gt;@blazino17&lt;/a&gt;&amp;nbsp;-&amp;nbsp;I recommend using the Outlook VBO – Get Received Items (Expert), and then applying a DASL Query like this:&lt;BR /&gt;@SQL=urn:schemas:httpmail:sendername = 'Mukesh Kumar' AND urn:schemas:httpmail:subject LIKE '%Test Emails%' (Replace it with your Sender Name/Subject Key)&lt;/P&gt;&lt;P&gt;You'll also need an action to save attachments(Action should be present in the Outlook VBO), which should take the Entry ID, Folder Path, and File Pattern as inputs. The action will execute the code and save the attachments to the specified folder path. (I’m using a custom built Outlook VBO).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mukeshh_k_3-1752484331945.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41188i222EEDC849B5DEE4/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Mukeshh_k_3-1752484331945.png" alt="Mukeshh_k_3-1752484331945.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="Mukeshh_k_2-1752483978409.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41187i4A51AFABEF6D4407/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Mukeshh_k_2-1752483978409.png" alt="Mukeshh_k_2-1752483978409.png" /&gt;&lt;/span&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="Mukeshh_k_1-1752483865422.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41186iA337324A260D35F6/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Mukeshh_k_1-1752483865422.png" alt="Mukeshh_k_1-1752483865422.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Code Block:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;Dim app = CreateObject("Outlook.Application")&lt;/DIV&gt;&lt;DIV&gt;Dim _nameSpace = app.GetNameSpace("MAPI")&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Dim item = _nameSpace.GetItemFromID(Entry_ID)&lt;/DIV&gt;&lt;DIV&gt;If item Is Nothing Then Return&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If Not Folder_Path.EndsWith("\") Then Folder_Path &amp;amp;="\"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For Each attachment As Object In item.Attachments&lt;/DIV&gt;&lt;DIV&gt;If (attachment.Type = 1 or attachment.Type = 5) AndAlso attachment.FileName Like File_Pattern Then&lt;/DIV&gt;&lt;DIV&gt;attachment.SaveAsFile(Folder_Path &amp;amp; attachment.FileName)&lt;/DIV&gt;&lt;DIV&gt;End If&lt;/DIV&gt;&lt;DIV&gt;Next&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 09:17:23 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/University-Forum/File-from-collection-to-a-folder-path/m-p/121463#M4392</guid>
      <dc:creator>Mukeshh_k</dc:creator>
      <dc:date>2025-07-14T09:17:23Z</dc:date>
    </item>
  </channel>
</rss>

