<?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 Hi Radoslawrajnert,
 
I… in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Save-attachment-MS-Outlook-Email-VBO/m-p/67489#M20094</link>
    <description>Hi Radoslawrajnert,
&amp;nbsp;
I looked into this action and it seems&amp;nbsp;like the ""File Name"" variable is not used anywhere (more advanced programmers - please correct me if I'm wrong). It may be a mistake in the code. Anyway ""File Name"" would be used only to determine which file You want to download from the email (and not the new name of the attachment).
If You want to rename specific file, use object ""Utility - File Management"" and action ""Move File"". Just specify there the same path but different file names and it should do the job.
&amp;nbsp;
Best regards
Michal Szumski</description>
    <pubDate>Fri, 22 Mar 2019 16:49:00 GMT</pubDate>
    <dc:creator>MichalSzumski</dc:creator>
    <dc:date>2019-03-22T16:49:00Z</dc:date>
    <item>
      <title>Save attachment / MS Outlook Email VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Save-attachment-MS-Outlook-Email-VBO/m-p/67488#M20093</link>
      <description>Hello,

&amp;nbsp;

I save email attachment using - MS Outlook Email VBO / task *save attachment*.
While saving attachment I want to rename the file in order to prevent from name duplication.

The file name stays unchanged. Could you please Support here?</description>
      <pubDate>Fri, 22 Mar 2019 13:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Save-attachment-MS-Outlook-Email-VBO/m-p/67488#M20093</guid>
      <dc:creator>radoslawrajnert</dc:creator>
      <dc:date>2019-03-22T13:23:00Z</dc:date>
    </item>
    <item>
      <title>Hi Radoslawrajnert,
 
I…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Save-attachment-MS-Outlook-Email-VBO/m-p/67489#M20094</link>
      <description>Hi Radoslawrajnert,
&amp;nbsp;
I looked into this action and it seems&amp;nbsp;like the ""File Name"" variable is not used anywhere (more advanced programmers - please correct me if I'm wrong). It may be a mistake in the code. Anyway ""File Name"" would be used only to determine which file You want to download from the email (and not the new name of the attachment).
If You want to rename specific file, use object ""Utility - File Management"" and action ""Move File"". Just specify there the same path but different file names and it should do the job.
&amp;nbsp;
Best regards
Michal Szumski</description>
      <pubDate>Fri, 22 Mar 2019 16:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Save-attachment-MS-Outlook-Email-VBO/m-p/67489#M20094</guid>
      <dc:creator>MichalSzumski</dc:creator>
      <dc:date>2019-03-22T16:49:00Z</dc:date>
    </item>
    <item>
      <title>I haven't looked at that…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Save-attachment-MS-Outlook-Email-VBO/m-p/67490#M20095</link>
      <description>I haven't looked at that action in a few months, but last I looked it's just a mistake in the object. 'Save Attachment' calls 'Save Attachments' and is supposed to pass over the File Name to be used to limit the attachment download to the specific name you give it. It was never intended to rename the attachment as it is being downloaded. I agree that this is annoying, but it's not a very difficult change to make if you want it to rename the file during download. Just copy the action and edit the code stage so that it gives a new name to the file before saving.
Without editing the code stage or without creating your own action, the way Michal describes is the standard way to use it. In my opinion, the easiest way to do this while also being safe is to have a temporary folder that you always delete all files from before downloading attachments to it. Then you grab whatever attachment from that folder/directory that you want and move/rename the file to the folder you really wanted to download it to.</description>
      <pubDate>Fri, 22 Mar 2019 17:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Save-attachment-MS-Outlook-Email-VBO/m-p/67490#M20095</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2019-03-22T17:23:00Z</dc:date>
    </item>
    <item>
      <title>Hi guys,&#xD;
Many thanks forâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Save-attachment-MS-Outlook-Email-VBO/m-p/67491#M20096</link>
      <description>Hi guys,
Many thanks for your help!!Â&amp;nbsp;I try to use the logic mentioned by david.l.morris.
Can you help me to adjust the code so that the file is saved always with the same name. e.g. "newfile.xls"
Dim app = CreateObject("Outlook.Application")
Dim _nameSpace = app.GetNameSpace("MAPI")
Dim item = _nameSpace.GetItemFromID(Entry_ID)
If item Is Nothing Then Return
If Not Folder_Path.EndsWith("\) Then Folder_Path &amp;amp;=""\"
For Each attachment As Object In item.Attachments
Â&amp;nbsp;If attachment.Type = 1 AndAlso attachment.FileName Like File_Pattern Then
Â&amp;nbsp;Â&amp;nbsp;attachment.SaveAsFile(Folder_Path &amp;amp; attachment.FileName)
Â&amp;nbsp;End If
 Next
Â&amp;nbsp;
Â&amp;nbsp;
Â&amp;nbsp;
Â</description>
      <pubDate>Mon, 25 Mar 2019 16:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Save-attachment-MS-Outlook-Email-VBO/m-p/67491#M20096</guid>
      <dc:creator>radoslawrajnert</dc:creator>
      <dc:date>2019-03-25T16:23:00Z</dc:date>
    </item>
    <item>
      <title>Change:

attachment…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Save-attachment-MS-Outlook-Email-VBO/m-p/67492#M20097</link>
      <description>Change:

attachment.SaveAsFile(Folder_Path &amp;amp; attachment.FileName)

To:

attachment.SaveAsFile(Folder_Path &amp;amp; ""newfile.xls"")</description>
      <pubDate>Mon, 25 Mar 2019 19:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Save-attachment-MS-Outlook-Email-VBO/m-p/67492#M20097</guid>
      <dc:creator>AmiBarrett</dc:creator>
      <dc:date>2019-03-25T19:25:00Z</dc:date>
    </item>
  </channel>
</rss>

