cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
drvela
Level: Powered On

Office365.SendEmail with Attachment Error

Hi there, I'm trying to send an email with an attachment that is a csv file of a collection created within the app. I consistently get the same error when I try to use the Concat function to place my collection's data in the attachment's ContentBytes. I've tried the process using Flow and receive the same error. Is anyone familiar with this? Office365.SendEmail failed: One or more errors occurred. Reporting the first one: Bad Request <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> Bad Request - Invalid URL HTTP Error 400. The request URL is invalid Thanks, Darian
2 REPLIES 2
Community Support Team
Community Support Team

Re: Office365.SendEmail with Attachment Error

Hi @drvela,

 

Can you please share the detailed related formulas here?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
drvela
Level: Powered On

Re: Office365.SendEmail with Attachment Error

Hi Mona,

 

Sorry for the late response. Here is the formula, where SelectedTraining is a collection in the app and CcUser is the current user's email address. 

 

 

Office365.SendEmail("Darian.Vela@ecolab.com", "Subject", "Body", {IsHtml: true,  Importance: Normal, Cc:CcUser, Attachments:Table({Name:"test.csv", ContentBytes:Concat(SelectedTraining, it0l & ", "), '@odata.type':""})})

 

Thanks,
Darian

 

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (5,290)