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

Add mulitple files to V2-email

Hi everybody,

 

I have the following topic I don't succeed solving myself:

 

This is the background:

I have an App with multiple Attachment controls. In each attachment control there are files uploaded that will be stored as individual files in a SP library.

 

On the OnAddFile-control of the attachment control I set the following variable:

 

 

OnAddFile= Set(Var_EmailAttachment1,AttachmentControl_11.Attachments)

 

 

 

 

This variable I later use in my Office365Outlook.SendEmailV2- connector to attach the file to the mail on a separate button.

 

OnSelect= Office365Outlook.SendEmailV2(
User().Email,"Receipt for Offer "&Var_PictureName,
"Text",{From:User().Email,Importance:"Low",
Attachments:
RenameColumns(Var_EmailAttachment1,"Value","ContentBytes")})<p> </p><p><span>With One file this works just fine. If I now want to send out multiple attachment coming from multiple attachment controls I do not succeed.</span></p><p><font face="inherit">The way I thought out <font face="inherit">fails. In that case what I do is adding the multiple<font face="inherit"> attachments to a collection that should then be send out in the V2-message.</font></font></font></p><div><font face="inherit"><font face="inherit"><font face="inherit"><li-code lang="markup">OnAddFile= Collect(Coll_Pics,(Var_EmailAttachment1))<p>OnSelect=</p><p> <li-code lang="markup">OnSelect= Office365Outlook.SendEmailV2(
User().Email,"Receipt for Offer "&Var_PictureName,
"Text",{From:User().Email,Importance:"Low",
Attachments:
RenameColumns(Coll_Pics,"Value","ContentBytes")})

 

 

When doing that I receive the following error message:
ErrorMessage.png

As always, thanks ahead for your hel

best regards

JHL

 

0 REPLIES 0

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,489)