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
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
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 72 members 2,984 guests
Recent signins:
Please welcome our newest community members: