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

Including multiple attachments in the SendEmailV2

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @MarioA43 :
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

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @MarioA43 :
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

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (908)