cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
grayishfiber
New Member

Update OneDrive file with content from an email attachment

Hello,

 

New Flow user here trying to automate a common business situation. 

 

I receive a report daily from an old ERP system that is an input I use for a Power BI report. File comes as a .txt file attached to the email. I want to take that attachment and write it to a file one my OneDrive for business account. 

 

I have the logic for taking an action when I receive this particular email working flawlessly, but I haven't been able to get  create file or update file to work at all.

 

This is the error I'm getting with create file:

Capture.PNG

 

I have verified that Include Attachments is set to "Yes" on the "When a new email arrives" step of the flow.

 

I really don't care if the file lives on OneDrive or a network location but my understanding is storing it on a network location isn't a feature provided in my E3 license. I just need the same file updated every time this email arrives.

 

Any help would be appreciated

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Update OneDrive file with content from an email attachment

Hi @grayishfiber ,

 

Could you share a detailed screen shot on how is the flow set up?

 

From your description, it seems that you would like to create email attachments to OneDrive for Business.

 

I have tried with the following flow, which is working properly to save the attachments to OneDrive for Business.

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support
Community Support

Re: Update OneDrive file with content from an email attachment

Hi @grayishfiber ,

 

Could you share a detailed screen shot on how is the flow set up?

 

From your description, it seems that you would like to create email attachments to OneDrive for Business.

 

I have tried with the following flow, which is working properly to save the attachments to OneDrive for Business.

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

grayishfiber
New Member

Re: Update OneDrive file with content from an email attachment

@v-yamao-msft 

 

Thanks for your reply! I was actually able to figure it out based on the working flow you provided. I was missing the "get attachment" action. Once I added that my flow functioned as expected. 

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (8,264)