Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

saving email attachment to folder and file ends up corrupted

(0) ShareShare
ReportReport
Posted on by 14

I've been at this a while now and have tried several of the solutions found in other posts (I believe I have followed correctly), however I still have an issue getting a pdf attachment to save to a folder and NOT be corrupted. I've tried new designer, old version, base64... unsure what I'm missing here.

Any suggestions would be greatly appreciated.

 

93drew_0-1717152238383.png

 

93drew_1-1717152308728.png

 

  • Verified answer
    93drew Profile Picture
    14 on at
    Re: saving email attachment to folder and file ends up corrupted

    I tried the V3 and it worked. I was able to also add additional conditions and have it still work.

  • creativeopinion Profile Picture
    10,396 Super User 2025 Season 1 on at
    Re: saving email attachment to folder and file ends up corrupted

    @93drew You are missing the Get Attachment (V2) action in your flow. Check out this section of my YT Tutorial: 

    Save Email Attachments to SharePoint with Microsoft Power Automate

     

    Although this YT Tutorial covers how to save your email attachments to SP, the concepts covered in this flow can be applied to yours. You'll just need to use the OneDrive actions instead of the SP actions for your flow.

     

    Power Automate doesn’t have a download attachment from outlook action. In this Power Automate Video tutorial, I’ll show you how to use the Get Attachment (V2) action in combination with the Create File action to get your email attachments onto SharePoint.

     

    The Create File action will overwrite any files that already exist with the same name. In this tutorial, I’ll show you how you can append a timestamp to the end of a file name to prevent your file from being overwritten.

    I’ll also show you how to set up your flow so that you can trigger it manually while building it so you don’t need to wait for an email to arrive. At the end of the video I’ll show you how adding trigger conditions to your flow can prevent it from triggering if certain conditions aren’t met. Although the final flow uses the When a new email arrives in a shared mailbox (V2) trigger, you can use any of the When a new email arrives triggers for your flow. Adjust this flow to suit your needs!

     

    IN THIS VIDEO:

    ✅ How to Automate Downloading and Uploading Email Attachments to SharePoint

    ✅ How to Use a the Get Email (V2) action

    ✅ How to Use the Get Attachment (V2) action

    ✅ How to Create Attachment Files using the Create File Action

    ✅ How to Prevent the Create File Action from Overwriting a File

    ✅ How to use Split the Filename from its Extension

    ✅ How to Append a Timestamp to a File Name

    ✅ How to use the When a New Email Arrives in a Shared Mailbox (V2) trigger

    ✅ How to use the Convert Time Zone action

    ✅ How to add Trigger Conditions to your Flow

     

    If you are still running into issues, please upload additional screenshots of your flow so I can help you to troubleshoot.

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow