cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ronaldorrjr
Level: Powered On

Save email attachments from shared mailbox to SharePoint online

Hi all,

 

I've been trying to create a flow to save email attachments from a shared mailbox to SharePoint online, but something is wrong. Here's a screenshot of my flow:

 

Flow.png

 

I thought this would be enough to make it work, but I'm getting this error message:

 

flow-error.png

 

Any idea of what am I doing wrong? It's worth to mention that the attachment file is a pdf.

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Save email attachments from shared mailbox to SharePoint online

Hi again

THere is a similar description in this thread, it is suggested to mark the following fields in the trigger:

"Has Attachment" = Yes

"Include Attachment" = Yes

https://powerusers.microsoft.com/t5/I-Found-A-Bug/Error-at-Mail-attachment-file-to-create-a-file-in-...

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

6 REPLIES 6
Dual Super User
Dual Super User

Re: Save email attachments from shared mailbox to SharePoint online

Hi!
I usually recommend to add one or more Compose action block before the failed action block, and assign it the dynamic content of the susoicious inputs (in your case Name and Content). This way, after flow execution you can go to "Run history" and inspect the content of these elements; in order to make sure it matches your expectations
Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted
ronaldorrjr
Level: Powered On

Re: Save email attachments from shared mailbox to SharePoint online

Hi @efialttes, thanks for your reply!

 

Microsoft Flow is kind of a new thing for me. Would you mind explaining how can I accomplish that?

Dual Super User
Dual Super User

Re: Save email attachments from shared mailbox to SharePoint online

Sure! Compose action block was first documented in this post:

https://flow.microsoft.com/es-es/blog/build-advanced-flows/

 

You can add it inside the Apply To Each loop before the action that is failing (Create File), assigning as Inputs the suspicious outputs from email attachments you are using to build the Create File action block (Name / Content)

Compose.png

In order to inspect a specific Flow execution, you must click on "My Flows", select the Flow you want to inspect. THis will lead you to the flow details page (first documented in https://flow.microsoft.com/en-us/blog/error-handling/ ). 

 

GenericRunHistory.png

Once you select a specific Flow execution, you will be able to inspect the execution details; and also have the posibility to re-execute the Flow.

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



benrattigan
Level: Powered On

Re: Save email attachments from shared mailbox to SharePoint online

Is there any fix to this problem yet I get the same error

Dual Super User
Dual Super User

Re: Save email attachments from shared mailbox to SharePoint online

Hi again

THere is a similar description in this thread, it is suggested to mark the following fields in the trigger:

"Has Attachment" = Yes

"Include Attachment" = Yes

https://powerusers.microsoft.com/t5/I-Found-A-Bug/Error-at-Mail-attachment-file-to-create-a-file-in-...

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

ronaldorrjr
Level: Powered On

Re: Save email attachments from shared mailbox to SharePoint online

@efialttes YES! Now it's working! Thank you sooo much!

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (4,716)