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

Sending Email Attachments using Office365 resulting in errors

Hello all, Here is my code. I am getting lots of errors , most of them are invalid arguments, unexpected characters. SubmitForm(SharePointForm1); Office365.SendEmail(TextInput1, "Subject", "This is a body: ", {Attachments:Table({Name:First(DataCardValue41.Attachments).Name; ContentBytes:First(DataCardValue41.Attachments).Value; '@odata.type':""; Importance:"normal"})}) What is the correct code for sending multiple attachments in the email? Please let me know. Thanks, Nick
1 REPLY 1
Highlighted
Nick2020
Level: Powered On

Please help - Re: Sending Email Attachments using Office365 resulting in errors

Hello all, Here is my code. I am getting lots of errors , most of them are invalid arguments, unexpected characters.

SubmitForm(SharePointForm1) ; 
Office365.SendEmail(TextInput1, "Subject", "This is a body: ", {Attachments:Table(
{Name:First(DataCardValue41.Attachments).Name; ContentBytes:First(DataCardValue41.Attachments).Value; '@odata.type':""; Importance:"normal"})}) 

 

What is the correct code for sending multiple attachments in the email? Please let me know. Thanks, Nick

Helpful resources

Announcements
thirdimage

Power Automate 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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

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