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

Multiple Attachments to Send Email : No input parameters provided

This is a post of half solution half question.



Let's say I have Send Email Card (either Outlook or Gmail) to send E-Mail with multiple attachments which a user uploaded from PowerApps. I followed the common way that many telling in websites using JSON(MyFilesInCollection, IncludeBinaryData) after I collected the file names (MyAttachments.Name) as texts and content (MyAttachments.Value) as images.


Then in Flow, Parsed JSON contains Base64 such as "data:application/pdf;base64,(###DATA STRINGS###)" as a variable "File".

When I tried to create an array of attachments based on this, the following result I got by using for ContentBytes, dataUriToBinary(MyAttachmentFiles[File]) .






Now I got Content-Type part and Content part, so I attached this array in Send Email card, hoever I had encountered several times error 400 Bad Request with a message: 

"No input parameters provided. Please provide required input parameters 'To', 'Subject' and 'Body'." 


I had struggled for how to solve this since it sometimes works, sometimes not meanwhile. Tech beginners like me might be confused with how to walk in from this so I leave my solution to help those in the same situation.
Looking into the image above I did pulled the content directly by :
Then it seems like working in any type of flows I created.






I hope these help!
But please add me any comments if I still miss something, like if there's any risk of data loss due to ignoring content-type?
Helper I
Helper I

It seems like they "fixed" this so we can simply point 'File' not '$content' anymore.


Just found out in one of my flows. Welcome to hear if anything I miss!

Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,067)