web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Saving email attachmen...
Power Automate
Answered

Saving email attachment when the email is stored in a folder (outside of Outlook)

(0) ShareShare
ReportReport
Posted on by 42

We have a bot that automatically stores emails in folders on a server and deletes the emails from Outlook.  I would like to extract attachments from the emails stored in the folders and store them in a desired location.  I'm struggling with this.  I know PAD allows you to easily do this when the email is in Outlook.  I'm not figuring out how to do this when an email with an attachment is stored in a folder outside of Outlook.  I know how to identify the email in the folder.  I don't know how to extract the attachment from the email.  Can someone help me with this?  Thanks!!  

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    This link shows how to add a folder within the outlook program to point at the archived folder, that way you can still use outlook to retrieve the messages:

     

    https://www.bu.edu/eso/help-support/e-mail/mailbox-management/create-pst/

     

  • Verified answer
    VJR Profile Picture
    7,635 on at

    Hi @jharrity 

    I am considering that you are having .msg files stored in a folder.

    And if you dont want to use PAD then you will have to use a scripting language like Vbscript, Python etc or a VBA macro.

     

    This link, after a random search, has both, the macro as well as a Vbscript program.

    excel - Extract attachments from saved .msg files using VBA - Stack Overflow

     

    You can find some more easier code over the internet if you would like to.

     

    The idea is to:

    - Either write an Excel macro and call it from the "Run Excel macro" action of PAD.

    - Or write a Vbscript in the "Run Vbscript" action of PAD.

     

    Let me know if you are facing any challenges.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 482

#2
11manish Profile Picture

11manish 280

#3
David_MA Profile Picture

David_MA 268 Super User 2026 Season 1

Last 30 days Overall leaderboard