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

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,023)