UiPath | How to Download Attachments from Outlook and save them dynamically | Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.ค. 2024
  • Learn how to download attachments from Outlook with UiPath. This very easy guide shows you how to. Afterwards we show the solution to the problem, if the attachments are named the same and how we then save them without overwriting.
    You could also watch:
    🔵 UiPath RPA Beginners Tutorial - • UiPath RPA Beginners T...
    🔵 How to use Outlook with Uipath • I Build my RPA Company...
    00:36 Get Outlook Mail Message
    We get the desired amount of Outlook Mail Messages and store them into a list of mailmessages.
    00:40 Mail Account Property
    It's always best practice to specify the mail account to make sure, we don't accidentally look in another mail account at the computer.
    01:06 Mail Folder
    Remember to specify what Outlook folder to look in. Default is Inbox.
    01:57 Save Attachments
    Use the Save Attachments activity to save attachments.
    02:08 For Each
    We iterate through our list of mails. And then save the attachments.
    02:25 Setting the TypeArgument in For Each
    Remember to set our TypeArgument to System.Net.Mails.
    03:55 Problem with Attachments with the same name
    Solve for the problem with attachment with similar name (create unique file names for the attachments).
    05:18 How to get the date of the mail and use it as an ID
    We create unique file names by using the date of the mail.
    07:18 Using DateTime
    10:25 Use an If to check if the got any attachments
    11:05 Create Folder
    Connect with me:
    🔔 Subscribe - th-cam.com/users/klogeande...
    💼 LinkedIn - / andersjensens
    👥 Facebook - / andersjensenorg
    💌 Email Newsletter - andersjensen.org/email-newsle...
    #uipath #rpa #automation

ความคิดเห็น • 73

  • @andersjensenorg
    @andersjensenorg  3 ปีที่แล้ว +3

    Check the full playlist with Outlook Tutorials: th-cam.com/play/PLXXz88_TPiHrhtzUv0CYARIujXSjZqelc.html

    • @syhzaidi22
      @syhzaidi22 ปีที่แล้ว +1

      This playlist takes to a different playlist not outlook

  • @mariaaden3096
    @mariaaden3096 2 ปีที่แล้ว +1

    Great job Anders. This video is very much helpful. Thanks!

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว

      You're very welcome, maria aden - your support helps me a lot 😍

  • @MRGRANDE1
    @MRGRANDE1 3 ปีที่แล้ว +1

    Thanks very much for your effort! and the clear and useful!

    • @andersjensenorg
      @andersjensenorg  3 ปีที่แล้ว

      Hey MRGRANDE1. Thanks a lot :) Have a great day. Kind regards, Anders

  • @vincentchu2710
    @vincentchu2710 4 ปีที่แล้ว +1

    Thank You for the sharing, It is very clear and helpful.

    • @andersjensenorg
      @andersjensenorg  4 ปีที่แล้ว

      Awesome, you can use the videoes 🤩🙂

  • @griiiinless
    @griiiinless 4 ปีที่แล้ว

    Hi Anders
    Thank you so much, it is so helpful.

    • @andersjensenorg
      @andersjensenorg  4 ปีที่แล้ว +1

      Hey Ali. Awesome you could use it 🙂 Kind regards, Anders

  • @zhtea716
    @zhtea716 3 ปีที่แล้ว +1

    It worked! Thanks good sir!

    • @andersjensenorg
      @andersjensenorg  3 ปีที่แล้ว

      Hey Zhi! Great and thanks for commenting - that's helping me a lot 😊👍 Kind regards, Anders

  • @akhilg7073
    @akhilg7073 3 ปีที่แล้ว +1

    thanks a lot Anders.....you are helping me in solving many issues

    • @andersjensenorg
      @andersjensenorg  3 ปีที่แล้ว

      Thanks a ton for writing, Akhil. That helps me a lot 🙂 Kind regards, Anders

  • @user-ti2vd8ed9z
    @user-ti2vd8ed9z 3 ปีที่แล้ว +1

    Your videos are helping me a lot.

    • @andersjensenorg
      @andersjensenorg  3 ปีที่แล้ว

      Thanks a lot - your comments help me a lot 😊👍

  • @user-qs1xv8wj7j
    @user-qs1xv8wj7j ปีที่แล้ว +1

    i love u !!! Thank u !!!!

    • @andersjensenorg
      @andersjensenorg  ปีที่แล้ว

      Thanks a ton, 墨尼 🤩 Have a great day. Kind regards, Anders

  • @AutoBots_Siva
    @AutoBots_Siva 2 ปีที่แล้ว +1

    Awesome :)

  • @antoinewilliams2512
    @antoinewilliams2512 2 ปีที่แล้ว +1

    Hello Anders. I have a file to download from Outlook, however, the name is more than 50 characters long. UiPath does not recognize it as an attachment to save it to a folder. When I reduce the filename to 50 characters, UiPath is able to save it to a folder. The file name is coded a special way for another system, and needs to remain its original character length. Can I extend the character limit? Is there another alternative besides truncating the file name? Thank you, in advance. I really enjoy your videos. They are very detailed and informative.

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว +1

      Hey Antoine
      Thanks for writing. I'm getting more than 40 questions/comments every day and having difficulty answering everyone (I try my best).
      I've created my UiPath Groups, where we all can post and solve problems or hang out around our favorite tool, UiPath. So you're very welcome. Get the addresses here: th-cam.com/video/C6xmGfEL07I/w-d-xo.html
      Have a great day.
      Kind regards,
      Anders

  • @mpawar88
    @mpawar88 3 ปีที่แล้ว +1

    Really helpful video. What if similar attachment files (mails.xlsx) is in a single email?

    • @andersjensenorg
      @andersjensenorg  3 ปีที่แล้ว

      Hey mpawar88. Thanks a lot. Sure, do you mean two attachments with the same name in the same mail? Kind regard, Anders

    • @mpawar88
      @mpawar88 3 ปีที่แล้ว

      @@andersjensenorg yes

  • @infernallotus1245
    @infernallotus1245 3 ปีที่แล้ว

    Hey Anders, just a quick question. Would I be able to apply this for the Outlook Web App as well or does it only work on the outlook desktop application?

    • @andersjensenorg
      @andersjensenorg  3 ปีที่แล้ว

      Hey Infernal. Is Outlook Web App = Outlook365? 🙂 Kind regards, Anders

    • @infernallotus1245
      @infernallotus1245 3 ปีที่แล้ว

      @@andersjensenorg I think its a Web exchange kind of thing. Like the url is: example.com.au/owa/

  • @Gin_Tonic_No1
    @Gin_Tonic_No1 2 ปีที่แล้ว +2

    Hi Anders, how can I change the date format? 5:43 this is my Format "Wed, 19 Jan 2022 08:36:34 +0100" and i want to keep it simple as possible. Thanks for your grate videos and best regards from Munich!

    • @Gin_Tonic_No1
      @Gin_Tonic_No1 2 ปีที่แล้ว

      because currently im working with another phrase: "ddd, dd MMM yyyyy hh:mm:ss K"

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว

      Hey Stefan Krah
      Thanks for writing. I'm getting more than 40 questions/comments every day and having difficulty answering everyone (I try my best).
      I've created my UiPath Groups, where we all can post and solve problems or hang out around our favorite tool, UiPath. So you're very welcome. Get the addresses here: th-cam.com/video/C6xmGfEL07I/w-d-xo.html
      Have a great day.
      Kind regards,
      Anders

  • @arnaudpinciroli8034
    @arnaudpinciroli8034 3 ปีที่แล้ว +1

    Hi Anders, thanks for your video i'm a RPA beginner, how can i do to save multiple attachements with the same name without overwrite ? Best regards.

    • @andersjensenorg
      @andersjensenorg  3 ปีที่แล้ว

      Hey Arnaud. It's covered in the video - we add the date (with miliseconds) to the attachment to make sure, we don't overwrite. Let me know, if that helps? Kind regards, Anders

    • @arnaudpinciroli8034
      @arnaudpinciroli8034 3 ปีที่แล้ว

      @@andersjensenorg Thanks for your fast response but the attachements must be in the same folder and in your video we've a folder by attachements but i can't do that because the attachements (an excel sheet) must feed a datatable to be able to pre-fill an email.

    • @ibrohimalhanif1573
      @ibrohimalhanif1573 2 ปีที่แล้ว

      @@arnaudpinciroli8034 Hi Arnaud, Have you found the solution? I want to know that as well.
      Because it's impossible to have the same exact file name in the same exact folder.

  • @MrAnupam200
    @MrAnupam200 3 ปีที่แล้ว +1

    Hi Anders,
    If I have to download mail attachment from outlook, if it has attachment.. to a particular location, otherwise I have to download the mail itself if no attachment are present, to another particular location..
    And the mail and attachment to be downloaded by bot from outlook mailbox should be less than one day that of current date (system date)...(read and download mail and attachment which has come yesterday not today)
    and mail should be saved with the subject+date and time inside the mail...
    Can you guide me with one sample video along with link.... It would be very grateful

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว

      Hey Anupam K
      Thanks for writing. I'm getting more than 40 questions/comments every day and having difficulty answering everyone (I try my best).
      I've created my UiPath Groups, where we all can post and solve problems or hang out around our favorite tool, UiPath. So you're very welcome. Get the addresses here: th-cam.com/video/C6xmGfEL07I/w-d-xo.html
      Have a great day.
      Kind regards,
      Anders

  • @sanjaykarthik2793
    @sanjaykarthik2793 2 ปีที่แล้ว +1

    string was not recognized as a valid datetime
    Anders, I'm getting this error. How to overcome this

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว

      Hey sanjay karthik
      Thanks for writing. I'm getting more than 40 questions/comments every day and having difficulty answering everyone (I try my best).
      I've created my UiPath Groups, where we all can post and solve problems or hang out around our favorite tool, UiPath. So you're very welcome. Get the addresses here: th-cam.com/video/C6xmGfEL07I/w-d-xo.html
      Have a great day.
      Kind regards,
      Anders

  • @mohammadrezwanurrahman6616
    @mohammadrezwanurrahman6616 2 ปีที่แล้ว

    Hi Anders! I dont know what is happening here. My one is showing, the operation has timed out. What should do?

    • @andersjensenorg
      @andersjensenorg  ปีที่แล้ว

      Hey Mohammad Rezwanur Rahman Thanks for writing. I'm getting more than 50 questions/comments every day and having difficulty answering everyone (I try my best). I've created my UiPath Groups, where we all can post and solve problems or hang out around our favorite tool, UiPath. So you're very welcome. Get the addresses here: th-cam.com/video/C6xmGfEL07I/w-d-xo.html Have a great day. Kind regards, Anders

  • @manuelcaballero5827
    @manuelcaballero5827 4 ปีที่แล้ว +1

    Hi Anders!
    Would you tell me how to unzip files? I got an extension but for some reason it disappear next time i use Uipath.
    Thank you!
    Manuel.

    • @andersjensenorg
      @andersjensenorg  4 ปีที่แล้ว

      Hey Manuel. You'll need to reinstall the package for each project ☹ I have a video about zip and unzip coming up in around 28 hours. Have a good day. Kind regards, Anders

    • @manuelcaballero5827
      @manuelcaballero5827 4 ปีที่แล้ว

      @@andersjensenorg Oh good, I thought i was doing something wrong, I will check the video. I still have to learn once i do have my flow completed how to use robot and automatize with orchestrator and everything.. oh well, i checked a video in the past but I have to do it again.
      Thank you for your help, it seem you are very fluent with RPA.
      Regards,
      Manuel.

  • @027_wahyuhidayatsiregar3
    @027_wahyuhidayatsiregar3 ปีที่แล้ว +1

    HELP ME!!
    after I run I get errors like this
    Message: String 'Wed, 21 Dec 2022 20:59:23 +0700' was not recognized as a valid DateTime.
    Exception Type: System.FormatException

    • @andersjensenorg
      @andersjensenorg  ปีที่แล้ว

      Hey [027]_Wahyu Hidayat Siregar Thanks for writing. I'm getting more than 50 questions/comments every day and having difficulty answering everyone (I try my best). I've created my UiPath Groups, where we all can post and solve problems or hang out around our favorite tool, UiPath. So you're very welcome. Get the addresses here: th-cam.com/video/C6xmGfEL07I/w-d-xo.html Have a great day. Kind regards, Anders

  • @vnPride75
    @vnPride75 2 ปีที่แล้ว

    Hello, First thanks for the Video. I've a question: How to get the Attachements names? I want to open it after the download if it a ".xls Data". Thank you.

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว

      Hey Le
      Thanks for writing. I'm getting more than 40 questions/comments every day and having difficulty answering everyone (I try my best).
      I've created my UiPath Groups, where we all can post and solve problems or simply just hang out around our favorite tool, UiPath. So you're very welcome. Get the addresses here: th-cam.com/video/C6xmGfEL07I/w-d-xo.html
      Have a great day.
      Kind regards,
      Anders

  • @KundanKumar-fb1ch
    @KundanKumar-fb1ch 2 ปีที่แล้ว

    What are the supported attachment types for Safe attachments in MDO . Kindly help.

    • @andersjensenorg
      @andersjensenorg  ปีที่แล้ว

      Hey Kundan Kumar Thanks for writing. I'm getting more than 50 questions/comments every day and having difficulty answering everyone (I try my best). I've created my UiPath Groups, where we all can post and solve problems or hang out around our favorite tool, UiPath. So you're very welcome. Get the addresses here: th-cam.com/video/C6xmGfEL07I/w-d-xo.html Have a great day. Kind regards, Anders

  • @XiroNyakuya
    @XiroNyakuya 2 ปีที่แล้ว

    My mail datetime comes in this string "Thu, 31 Mar 2022 17:33:06 -0300" and I have 0 idea of how to parseExact this monstruosity.

    • @andersjensenorg
      @andersjensenorg  ปีที่แล้ว

      Thanks for writing 😊 I'm getting more than 50 messages daily. While I read all of them, I can’t reply to everyone 😔 But I’ve created an RPA/Automation community where we’re 5800+ RPA Developers helping each other with solutions and our careers. Here’s the video on how to join (the invitation link is in the video description): th-cam.com/video/xWFz-S96XGo/w-d-xo.html Kind regards, Anders

  • @ralphgiordanuy226
    @ralphgiordanuy226 3 ปีที่แล้ว

    Hi. I would like to know if you did this case with Ui Path Studio X? If yes, could you send me a link of your work for my reference. Thanks very much. 😁

    • @andersjensenorg
      @andersjensenorg  3 ปีที่แล้ว

      Hey Ralph. Yes and no. Check this, where Michael shows me StudioX: th-cam.com/video/SWPXDoDyZxo/w-d-xo.html :) I hope that helps? Kind regards, Anders

    • @ralphgiordanuy226
      @ralphgiordanuy226 3 ปีที่แล้ว

      @@andersjensenorg yeah. It did helped a lot. Thanks

  • @a.sacerdotisa.
    @a.sacerdotisa. ปีที่แล้ว

    The automation is running fine, but no attachment is saved. What I should do please?

    • @andersjensenorg
      @andersjensenorg  ปีที่แล้ว

      Hey Maria Clara Luz Thanks for writing. I'm getting more than 50 questions/comments every day and having difficulty answering everyone (I try my best). I've created my UiPath Groups, where we all can post and solve problems or hang out around our favorite tool, UiPath. So you're very welcome. Get the addresses here: th-cam.com/video/C6xmGfEL07I/w-d-xo.html Have a great day. Kind regards, Anders

  • @PriyaSingh-ro7is
    @PriyaSingh-ro7is 3 ปีที่แล้ว

    Hello sir,
    My Robot was perfectly running fine but it start leaving some Activity and also auto pickup new file without showing any error .any solution !!!
    I'm not using orcheatrator

    • @andersjensenorg
      @andersjensenorg  3 ปีที่แล้ว

      Hey Priya, that one is very hard to solve, since no message etc. Can you try the "boring" solution and reinstall? Kind regards, Anders

    • @PriyaSingh-ro7is
      @PriyaSingh-ro7is 3 ปีที่แล้ว

      @@andersjensenorg
      Okay.
      Database having bulk data as it can be problem because BOT take data from database and bulky data not response on time of BOT timing ?

  • @suchithboddu7242
    @suchithboddu7242 4 ปีที่แล้ว

    How to exclude inline attachments and download only which are in attachment section ?

    • @andersjensenorg
      @andersjensenorg  4 ปีที่แล้ว

      Hey Suchith, can you send such a mail to me at anders@andersjensen.org? Then I can work with it and show you. Kind regards, Anders

    • @thanuthomas7003
      @thanuthomas7003 2 ปีที่แล้ว

      @@andersjensenorg I have this same query. How to exclude inline attachments and download only which are in attachment section ?could you help?

  • @rohitvarma7264
    @rohitvarma7264 3 ปีที่แล้ว

    can this be done for outlook 2007 ??

    • @andersjensenorg
      @andersjensenorg  3 ปีที่แล้ว

      Hey Rohit. I'm 90% sure, but I havn't got Outlook 2007. Can you try it? Kind regards, Anders

  • @wagnermacedo1608
    @wagnermacedo1608 6 หลายเดือนก่อน

    I have experienced a big problem....The Specific folder does not exist....I dont know how to fix this. Can you help me?

    • @andersjensenorg
      @andersjensenorg  6 หลายเดือนก่อน

      Thanks for writing 😊 I'm getting more than 50 messages daily. While I read all of them, I can’t reply to everyone 😔 But I’ve created an RPA/Automation community where we’re 10,000+ RPA Developers helping each other with solutions and our careers. Here’s the video on how to join (the invitation link is in the video description): th-cam.com/video/xWFz-S96XGo/w-d-xo.html Kind regards, Anders

  • @alanchen7984
    @alanchen7984 ปีที่แล้ว +1

    In case your Item.Header returns date time format like this "Tue, 08 Nov 2022 19:34:51 +0800", you can try using >>>> CDate(mail.Headers("Date")).ToString("yyyy.MM.dd")

    • @andersjensenorg
      @andersjensenorg  ปีที่แล้ว

      Hey Alan - thanks a lot for clarifying 😍💪

  • @relax_music668
    @relax_music668 2 ปีที่แล้ว

    How uipath control java application?

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว

      Hey Excel
      Thanks for writing. I'm getting more than 40 questions/comments every day and having difficulty answering everyone (I try my best).
      I've created my UiPath Groups, where we all can post and solve problems or simply just hang out around our favorite tool, UiPath. So you're very welcome. Get the addresses here: th-cam.com/video/C6xmGfEL07I/w-d-xo.html
      Have a great day.
      Kind regards,
      Anders

  • @allthecommonsense
    @allthecommonsense 2 ปีที่แล้ว +1

    Creating a separate folder for every attachment is a bit silly. I would think almost ANY automated process in a real company wouldn't want the additional bother of having to deal with all those resulting folders. Better to do the (harder) work of timestamping the attachments themselves.

    • @andersjensenorg
      @andersjensenorg  2 ปีที่แล้ว +1

      Username checks in 😅 Just kidding. Thanks a lot for the feedback and I tend to agree, but usually you'll just use the folders/attachment for the next automation step. Have a great day and please comment whenever you think I can do better 😊