cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
SPOFLOW Helper I
Helper I

Issues with Multiple attachements to email using array with OneDrive For Business.

I'm creating a flow that will send multiple attachments from my onedrive for business account. I've found threads similar to mine and followed through with the solutions but am falling short on getting this to work once it tries to send.  Each attachment has data.

flow1.PNG

Here is the Flow

Flow2.PNG

 

 

Error occurs when Email is being Sent:

 

{
  "status": 400,
  "message": "No input parameters provided. Please provide required input parameters 'To', 'Subject' and 'Body'.\r\nclientRequestId: 07fde98a-7f5a-4a19-9846-a391b50567df",
  "error": {
    "message": "No input parameters provided. Please provide required input parameters 'To', 'Subject' and 'Body'."
  },
  "source": "office365-wus.azconn-wus-01.p.azurewebsites.net"
}

 

 

 

What do you think is going on ?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
Super User

Re: Issues with Multiple attachements to email using array with OneDrive For Business.

Hi @SPOFLOW 

So the issue is you are not showing the correct dynamic mappings?

 

The base64 should solve this.

 

Here is my test flow.

 

image.png

 

See the expression I set.

 

base64(body('Get_file_content_using_path_2'))
 
You need to set the right name of your Get File Content using path.
 
Here is my run result
 
image.png
 
Thanks


Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

View solution in original post

Community Support
Community Support

Re: Issues with Multiple attachements to email using array with OneDrive For Business.

 

Hi @SPOFLOW ,

 

We could find the solution to this issue in the comment of this blog:

https://flow.microsoft.com/en-us/blog/multiple-attachments-single-email/

You could click peek code to get the expression of the file content and add .$content after it.

34.PNG35.PNG

Expression reference:

body('VP_EQ-Weekly_TC_Report-contents').$content

Please take a try again.

 

Best Regards,

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

View solution in original post

8 REPLIES 8
Super User
Super User

Re: Issues with Multiple attachements to email using array with OneDrive For Business.

Hi @SPOFLOW 

 

See this post

 

https://powerusers.microsoft.com/t5/General-Power-Automate/Multi-attachment-email-Error/td-p/369305

 

Make sure use

"ContentBytes": base64(filecontentdynamiccontent)

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Dual Super User
Dual Super User

Re: Issues with Multiple attachements to email using array with OneDrive For Business.

Hi!
"Please provide required input parameters 'To', 'Subject' and 'Body'"
So... the problem is not the attachments, right?
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!



SPOFLOW Helper I
Helper I

Re: Issues with Multiple attachements to email using array with OneDrive For Business.

When I tried that and pressed the "ok" button, i get the error "The Expression is invalid.

 

flow3.PNG

Super User
Super User

Re: Issues with Multiple attachements to email using array with OneDrive For Business.

Hi @SPOFLOW 

 

Let me run my flow. Let you know soon.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Super User
Super User

Re: Issues with Multiple attachements to email using array with OneDrive For Business.

Hi @SPOFLOW 

So the issue is you are not showing the correct dynamic mappings?

 

The base64 should solve this.

 

Here is my test flow.

 

image.png

 

See the expression I set.

 

base64(body('Get_file_content_using_path_2'))
 
You need to set the right name of your Get File Content using path.
 
Here is my run result
 
image.png
 
Thanks


Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

View solution in original post

SPOFLOW Helper I
Helper I

Re: Issues with Multiple attachements to email using array with OneDrive For Business.

getting error

flow4.PNG

my scripts look like this:

flow5.PNG

 

my expression for this one is  

base64(body('VP EQ-Weekly TC Report-contents'))
 

 

 

Super User
Super User

Re: Issues with Multiple attachements to email using array with OneDrive For Business.

Hi @SPOFLOW 

 

Hi @SPOFLOW ,

 

We are getting closer now 🙂

 

Inside your expression use underscores for the spaces of your variable name.

 

VP_EQ-Weekly_TC_Report-contents

 

base64(body(VP_EQ-Weekly_TC_Report-contents))

 

Let me know how it goes.


Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Community Support
Community Support

Re: Issues with Multiple attachements to email using array with OneDrive For Business.

 

Hi @SPOFLOW ,

 

We could find the solution to this issue in the comment of this blog:

https://flow.microsoft.com/en-us/blog/multiple-attachments-single-email/

You could click peek code to get the expression of the file content and add .$content after it.

34.PNG35.PNG

Expression reference:

body('VP_EQ-Weekly_TC_Report-contents').$content

Please take a try again.

 

Best Regards,

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

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (5,612)