Showing results for 
Search instead for 
Did you mean: 
Most Valuable Professional
Most Valuable Professional

Multiple Email Attachments from SharePoint Library files

Hi All,

I have a requirement to attach a group of photos (unknown number) stored in a SharePoint Library.

So that this is not started from the beginning, this post on the Power Apps Forum is where I am at the moment, but I have a feeling the answer lies with a Flow.

As noted, I can easily send the URLs/Identifiers to a Flow and well as that of the reference document. I just need the user to select a record and email these.


Hi @WarrenBelz 


I am also a bit lost. My humble suggestion:

1.-Mark this topic as "Solved" by clicking "Accept as a solution" whenever you manage to verify it. This way other community members facing your first problem in the future have the chance to find a solution faster. I am assuming your first problem is fixed in theory, but you cannot trigger the flow from your Power Apps to execute it, right?


2.- Open a new thread for this new issue, following the policy: 'One Question, one post', please note I am not sure if the best place to ask is Power Automate forum or Power Apps forum. Many SuperUsers pay more attention to unanswered topics, and this one already have too many. Let's hope somebody else can point us to the right direction

3.- (OPTIONAL) Click on 'Thumbs up' in any answer you found valuable on this current thread.


Even though this 3rd step is OPTIONAL, please remember it is the cheapest, easiest way to say thanks to somebody that simply tried to help  😉



Did I make your day? If so, mark my response as 'Solution' !!!

También escribo sobre Power Automate en este Blog y en Twitter

Most Valuable Professional
Most Valuable Professional

Thanks @efialttes ,

I have come from the Power Apps forum on this post as the solution I thought was in a Flow. I do not know at present whether this Flow will do the job as I cannot run it to text.

I will try tagging  @v-alzhan-msft , who has also been involved to see if Alice has any ideas. If no luck, I post this one on the top of the Power Apps item.

 Hi @WarrenBelz ,


Your flow is finished and the problem now is to send the file path from powerapps to MS flow.

I hope the link below about start a flow in powerApps could help you:


You could add a Button contorl ,with the Button control selected, select Flows on the Action tab, ang send the file path from powerapps to Ms flow.

I suggest that you could ask for help in powerApps forum if you still has problem.


Best regards,



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

Thanx Alice aka (@v-alzhan-msft ) and Microsoft support team for your extraordinary effort!

Did I make your day? If so, mark my response as 'Solution' !!!

También escribo sobre Power Automate en este Blog y en Twitter

So, did you get this to work, then?  I have done this, and it looks like I have lots of data, but it tells me I'm missing header data in the email, which I am not missing.


2020-09-17 02_52_56-Run History _ Power Automate.png


I'm not seeing a problem here.


2020-09-17 02_54_04-Edit your flow _ Power Automate.png



Most Valuable Professional
Most Valuable Professional

Hi @martinav and thank you for the follow-up.

I did not get it going (after a fair bit of trial and lots of error) and must admit other things have overtaken the priority.

I have now also realised that I had not responded (my error entirely) and apologise to @v-alzhan-msft and @efialttes as they put in the effort to try to help me (I know exactly what that feels like after building a Power Apps model to help someone).

If you have any more ideas, I am listening intently.


@WarrenBelz ,


I was a little misled by the thread having an accepted solution.  I would like to suggest making your own entry stating that you were not able to get it going, but wanted to close the subject, and making that the accepted solution or removing the acceptance alltogether.  I went down this avenue thinking it was actually working.  I wasted a bit of time on it.  






Sunay Vaishnav,'s article to attach files has several comments, one of them reporting it does not work, due to a similar 400 error "No input parameters provided. Please provide required input parameters 'To', 'Subject' and 'Body' ".  In this same article, you can find a workaround in the comment, thanks to


Did I make your day? If so, mark my response as 'Solution' !!!

También escribo sobre Power Automate en este Blog y en Twitter

@efialttes ,


Good article.  I did exactly what they said to do.  Even in the comments.  No go.  I will open a new thread.  My case is slightly different.  Attaching a file from a sharepoint library vs attachments from a sharepoint list.  It may matter.  My output is perfect:



        "ContentBytes":{"$content-type":"application/pdf","$content":"JVBERi0i...(LOTS deleted)...UlRU9GDQo="}},

        "ContentBytes":{"$content-type":"application/pdf","$content":"JVBERi0...(LOTS deleted)...xLSVFT0YNCg=="}},

        "ContentBytes":{"$content-type":"application/pdf","$content":"JVBERi...(LOTS deleted)...0xUlRU9GDQo="}}



However, there may be some nuance that is different with a library.  I'll open a new post, and see if I can get the raw array format from the Sharepoint List version.  I can always manipulate the information in string form, then push it back into an array in the right syntax.


@efialttes , @WarrenBelz ,


No wait... heres the deal.  There was a lot there to digest.  This is the workaround:




Works fine when you add the .$content to the body statement does the trick.

Helpful resources


Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started:   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!    

Welcome to the Power Automate Community

You are now a part of a fast-growing vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun.   Now that you are a member, you can enjoy the following resources:   Welcome to the Community   News & Announcements: The is your place to get all the latest news around community events and announcements. This is where we share with the community what is going on and how to participate.  Be sure to subscribe to this board and not miss an announcement.   Get Help with Power Automate Forums: If you're looking for support with any part of Power Automate, our forums are the place to go. From General Power Automate forums to Using Connectors, Building Flows and Using Flows.  You will find thousands of technical professionals, and Super Users with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Automate community forums. Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered. Galleries: The galleries are full of content and can assist you with information on creating a flow in our Webinars and Video Gallery, and the ability to share the flows you have created in the Power Automate Cookbook.  Stay connected with the Community Connections & How-To Videos from the Microsoft Community Team. Check out the awesome content being shared there today.   Power Automate Community Blog: Over the years, more than 700 Power Automate Community Blog articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on the future of process automation. In the Power Automate Community Blog, you can read the latest Power Automate-related posts from our community blog authors around the world. Let us know if you'd like to become an author and contribute your own writing — everything Power Automate-related is welcome.   Community Support: Check out and learn more about Using the Community for tips & tricks. Let us know in the Community Feedback  board if you have any questions or comments about your community experience. Again, we are so excited to welcome you to the Microsoft Power Automate community family. Whether you are brand new to the world of process automation or you are a seasoned Power Automate veteran - our goal is to shape the community to be your 'go to' for support, networking, education, inspiration and encouragement as we enjoy this adventure together.     Power Automate Community Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today!  

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (5,444)