Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Save Office 365 email attachments to OneDrive for Business: Action 'Create_file' failed, Code 400

(0) ShareShare
ReportReport
Posted on by 2

Hi,

 

I am trying to set up an automated flow to upload emails (including attachments) from a specific Outlook folder to a specific OneDrive folder. I have set up my flow as such:

 

GeoffreyAequum_2-1667867595393.png

 

And I am getting this error:

 

GeoffreyAequum_0-1667867484846.png

GeoffreyAequum_1-1667867513776.png

From what I can see, it looks like it's ok with the input but having issues with the output. I've tried looking on here and elsewhere online and either I'm searching wrong or this isn't a common issue or use case.

 

Could anyone please assist? This could reduce my workload by at least an hour every day if I can get this working for every folder!

 

Cheers,

  • Pstork1 Profile Picture
    65,999 Most Valuable Professional on at
    Re: Save Office 365 email attachments to OneDrive for Business: Action 'Create_file' failed, Code 400

    As a test I would also try selecting the folder using the default folder icon rather than inputting the full URL.  If you look at my screenshot you'll see the folder path is a relative path, not a full URL.

  • Geoffrey-Aequum Profile Picture
    2 on at
    Re: Save Office 365 email attachments to OneDrive for Business: Action 'Create_file' failed, Code 400

    Hi Pstork1, thanks for your quick answer!

     

    I've updated it to .eml (and changed the filename to received time but besides the point):

     

    GeoffreyAequum_0-1667869252771.png

     

    And changed include attachments to no:

     

    GeoffreyAequum_1-1667869297554.png

     

    Still getting the same error 😞

  • Pstork1 Profile Picture
    65,999 Most Valuable Professional on at
    Re: Save Office 365 email attachments to OneDrive for Business: Action 'Create_file' failed, Code 400

    The only thing I see wrong with the export is you are making it a .msg file.  When I've done this its always been an .eml.  I'm also not sure you can save it with attachments.  You may have to save the attachments separately

    image.png

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

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,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow