<?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 Re: Automatically download emails from Outlook with SAS or Outlook rule. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Automatically-download-emails-from-Outlook-with-SAS-or-Outlook/m-p/795678#M32943</link>
    <description>Hi, i have worked with VB and SAS in different ways. Unfortunately, i have never tried what you are trying to do but found a good video you can review below. One suggestion if you have not used it , is making sure to debug your code to see what is not working properly.&lt;BR /&gt; &lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=ZXLyT6gqQp4" target="_blank"&gt;https://www.youtube.com/watch?v=ZXLyT6gqQp4&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 11 Feb 2022 14:43:51 GMT</pubDate>
    <dc:creator>CarmineVerrell</dc:creator>
    <dc:date>2022-02-11T14:43:51Z</dc:date>
    <item>
      <title>Automatically download emails from Outlook with SAS or Outlook rule.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Automatically-download-emails-from-Outlook-with-SAS-or-Outlook/m-p/795627#M32935</link>
      <description>&lt;P&gt;Hello everyone, I am trying to create a program to automatically download the attached files that are sent to us from a certain email and then transform the delimiter with SAS, of those csv that are attached to us and pass those csv through a flow that I have already created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have managed to create a program that treats the csv as I want and the delimiter that I want, the problem is that when it comes to automating the download of files from Outlook it does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have done is create a rule with the following VB code that I found on the internet:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Public Sub SaveAttachmentsToDisk(MItem As Outlook.MailItem)&lt;BR /&gt;Dim oAttachment As Outlook.Attachment&lt;BR /&gt;Dim sSaveFolder As String&lt;BR /&gt;sSaveFolder = "C:\Users\DT168\Documents\outlook-attachments\"&lt;BR /&gt;For Each oAttachment In MItem.Attachments&lt;BR /&gt;oAttachment.SaveAsFile sSaveFolder &amp;amp; oAttachment.DisplayName&lt;BR /&gt;Next&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;website: &lt;A href="https://es.extendoffice.com/documents/outlook/3747-outlook" target="_blank"&gt;https://es.extendoffice.com/documents/outlook/3747-outlook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that this code does not work for me, it does absolutely nothing for me and no matter how much I search the internet, only this code appears.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other way to do with SAS what I want? What is it to automatically download 8 csv files sent to me by Outlook, or has someone experienced the same thing as me with VBA?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have followed all the steps about 7 times so I think the error is not in copying the code or selecting certain options wrong, in fact I had copied and pasted the code and later I modified the path where I wanted those to be saved. files but it doesn't work, does anyone know why?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I will be tremendously grateful, thank you very much for everything!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 11:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Automatically-download-emails-from-Outlook-with-SAS-or-Outlook/m-p/795627#M32935</guid>
      <dc:creator>Abelp9</dc:creator>
      <dc:date>2022-02-11T11:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically download emails from Outlook with SAS or Outlook rule.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Automatically-download-emails-from-Outlook-with-SAS-or-Outlook/m-p/795678#M32943</link>
      <description>Hi, i have worked with VB and SAS in different ways. Unfortunately, i have never tried what you are trying to do but found a good video you can review below. One suggestion if you have not used it , is making sure to debug your code to see what is not working properly.&lt;BR /&gt; &lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=ZXLyT6gqQp4" target="_blank"&gt;https://www.youtube.com/watch?v=ZXLyT6gqQp4&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Feb 2022 14:43:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Automatically-download-emails-from-Outlook-with-SAS-or-Outlook/m-p/795678#M32943</guid>
      <dc:creator>CarmineVerrell</dc:creator>
      <dc:date>2022-02-11T14:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically download emails from Outlook with SAS or Outlook rule.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Automatically-download-emails-from-Outlook-with-SAS-or-Outlook/m-p/795699#M32948</link>
      <description>&lt;P&gt;Does your SAS LOG show any messages? If SAS is not actually getting something then this would be a WINDOWS question and not SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest that you contact your IT department. There have been several times that I wanted to link SAS and Outlook for some tasks but have found out that one or more of the pieces needed had been locked out by our IT for security reasons.&lt;/P&gt;
&lt;P&gt;That could be one reason why your approach didn't work. If so, you might be able to get exceptions or suggestions from IT on implementation.&lt;/P&gt;
&lt;P&gt;It may not hurt to get your management involved to demonstrate potential time savings or process improvements that would result with this automation so there is some support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 16:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Automatically-download-emails-from-Outlook-with-SAS-or-Outlook/m-p/795699#M32948</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-11T16:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically download emails from Outlook with SAS or Outlook rule.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Automatically-download-emails-from-Outlook-with-SAS-or-Outlook/m-p/953496#M42859</link>
      <description>&lt;P&gt;A few years back, I had to automate the download of attachments from certain emails for a data processing project. Like you, I started with VB code and a rule in Outlook. It worked fine for a while but sometimes skipped emails or didn’t trigger reliably, which was super frustrating.What saved me was looking into &lt;A href="https://www.maestrolabs.com/blog-detail/picking-the-20-best-outlook-add-ins-in-2024" target="_self"&gt;Outlook add ins&lt;/A&gt;. I found one that handled attachments more effectively—it could automatically download and even rename files based on email content. This freed me from worrying about Outlook’s rules acting up. Once I integrated it with my scripts, everything flowed smoothly.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 10:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Automatically-download-emails-from-Outlook-with-SAS-or-Outlook/m-p/953496#M42859</guid>
      <dc:creator>mightydron</dc:creator>
      <dc:date>2024-12-13T10:29:44Z</dc:date>
    </item>
  </channel>
</rss>

