Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Get attachments from multiple emails and save to Sharepoint library

I've successfully built several flows that can capture an attachment from an incoming email and save to a Sharepoint library, but now I'm trying to build a manually triggered flow that searches all emails in an inbox, and filtered on Subject Line criteria, pulls the attachments from every email and adds them to a Sharepoint library. Tried multiple ways, but keeping getting one error or another. This is the structure I thought was the most straight forward:





This is the error I get:


I think maybe I'm missing a Compose or Variable operator... but I'm not sure where it should go?


Community Support
Community Support

Hi @MarcusD1 ,


Please try:



Best Regards,



Hi Bof,

Thanks for your suggested solution, but it isn't working for me. Here's my updated flow as per your guidance:




And here's the fail notice:







I noticed that your example has simple "id" dynamic content in the Attachments field... but couldn't find anything that displayed like that. I'm using the "Attachments Attachment ID" item - which is what I've used for all my other attachment related flows.

Helper I
Helper I

Anyone else have any ideas...?

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,969)