cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
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

Highlighted
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (7,374)