Skip to main content

Notifications

Community site session details

Community site session details

Session Id : s6M9MpY/dLd7HneQKkGovo
Power Automate - General Discussion
Unanswered

Issue with automatically saving attachments in OneDrive that I received via Outlook

Like (1) ShareShare
ReportReport
Posted on 1 Jul 2024 13:56:59 by 5

Hi all, 

 

I tried to create a flow which automatically saves attachments, received via mail in Outlook, in OneDrive. Setting up the flow wasn't difficult as there was a template in Power Automate. I tested the flow and got a succeeded status. The issue is that I couldn't open the attachment in OneDrive and got below error message. 

 

Jonas8_0-1719842167254.jpeg

You can also see that the files all have 1kb memory which isn't the case for the original file in Outlook. 

Jonas8_1-1719842167256.jpeg

Does anyone have an idea what I'm doing wrong? Something is going wrong between Outlook and OneDrive but I'm not sure if it has something to do with Nitto settings or if it's just something that I should change in my flow in Power Automate. 

 

Kind regards, 

 

Jonas Vreys

Categories:
  • creativeopinion Profile Picture
    10,411 Super User 2025 Season 1 on 02 Jul 2024 at 14:18:50
    Re: Issue with automatically saving attachments in OneDrive that I received via Outlook

    @Jonas8 I believe you need to add a Get Attachments (V2) action as I've demonstrated in the tutorial I linked. Can you try that and let me know if it helps?

  • Jonas8 Profile Picture
    5 on 02 Jul 2024 at 06:12:26
    Re: Issue with automatically saving attachments in OneDrive that I received via Outlook

    Hi, 

    Thank you for your reply! This are fields I filled in in the Outlook options and the flow: 

    Jonas8_0-1719900332648.png


    This is in the OneDrive Parameters: 

    Jonas8_1-1719900364818.png

    And the OneDrive Settings: 

    Jonas8_2-1719900389121.png

    I tried to set 'Allow Chunking' on and off but both didn't change the outcome of the process. 

    After executing the flow, and receiving the file in OneDrive, I tried to open the attachment in OneDrive but got this error message: 

    Jonas8_5-1719900551916.png

    And it shows like this in my OneDrive folder with 1kb memory: 

    Jonas8_6-1719900660569.png

     

    I guess that the file is damaged somewhere between the transfer from Outlook to OneDrive but I have no idea on what the reason can be. 

  • creativeopinion Profile Picture
    10,411 Super User 2025 Season 1 on 01 Jul 2024 at 19:28:50
    Re: Issue with automatically saving attachments in OneDrive that I received via Outlook

    @Jonas8 It's hard to provide recommendations without seeing your full flow. If you are using the new designer,toggle it off and click each action to expand them. Upload a screenshot of your flow in edit mode and the error you are receiving, it would help to provide more insight.

     

    In the meantime you might find the YT Tutorial linked below helpful. Although this tutorial covers how to get the Email attachments from Outlook to SP—the concepts covered in this flow can be applied to your flow as well. Just select the OneDrive actions instead of the SP actions.

     

    Save Email Attachments to SharePoint with Microsoft Power Automate

    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

     

    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!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
rpersad Profile Picture

rpersad 16

#2
David_MA Profile Picture

David_MA 10 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 8 Super User 2025 Season 1

Overall leaderboard
Loading started
Loading complete