web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Including multiple att...
Power Apps
Answered

Including multiple attachments in the SendEmailV2

(0) ShareShare
ReportReport
Posted on by

Hello Everybody!

 

i've been trying to include multiple attachments in the SendEmailV2 function from Office365Users connector, however, the attachments are stored in a table, and the attachments property of this functions doesn't work with table data, is there any way i can make an array with these attachments and include them in the Email:

 

The code i'm using currently is this:

 

Office365Outlook.SendEmailV2(
 varApprover;
 varCurrentUser;
 HtmlText1.HtmlText;
 {
 isHtml: true;
 Attachments: |PLACEHOLDER TEXT|
 }
)

 

I want to get multiple attachments from the Collection below and insert them into the |PLACEHOLDER TEXT|.

 

As of right now, i've tested ForAll(), RenameColumns() and Concat().

 

 The tables i'm using to store the attachments are the following

MarioA43_1-1626786667284.png

 

And this is the child table marked in red:

 

MarioA43_2-1626786715324.png

 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @Anonymous :
    The value of the attachment parameter should be in this format:

    Table(
     {
     Name:"",
     ContentBytes:FileContent,
     '@odata.type':""
     }
    )

    I think this link will help you a lot:

    PowerApps Email Attachments with the office 365 connector and attachment control

    Best Regards,

    Bof

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard