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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sending Email with 2 C...
Power Apps
Unanswered

Sending Email with 2 Collections and Signature Image

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

 

I have multiple collections of images being taken at different stages of the app, the new collection is named ColCameraImages and I need to add this collection to the code I already have OnSubmit (see below trimmed down code) to send an email, how can I add this new collection (ColCameraImages) as well as the existing (colImages) collection please?

 

ClearCollect(
 colImages,
 AddColumns(
 RenameColumns(
 'AttachmentControl-1'.Attachments,
 "Value",
 "ContentBytes"
 ),
 "@odata.type",
 ""
 ),
 {
 Name: "Signature.jpg",
 ContentBytes: 'Signature-1'.Image
 }
);

Office365Outlook.SendEmailV2('Lbl-AllEmailAddresses' , 'Result-Job-Number'.Text , "Hi,<br><br>

Please see completed form below and attached photos<br><br>

<b>Classification: </b>"&'Dropdown-Classification'.Selected.Value&"<br>
<b>Date Identified: </b>"&'Date-Created'.SelectedDate&"<br>
<b>Status: </b>"&'Dropdown-Status'.Selected.Value&"<br>
<b>Date Closed: </b>"&'Date-Closed'.SelectedDate&"<br>
<b>Time Identified: </b>"&'Result-TimeIdentified'&"<br><br>

<b>Notes: </b>"&'Notes-1'&"<br><br>

<b>Unique ID: </b>"&'UniqueRefNum-1'&"<br><br>

Regards<br><br>

Company<br></br>",
 {Attachments: colImages}
);

 

Thanks in advance! 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Dave-ITMan ,

     

    Please try to use ForAll function.

    ClearCollect(
     colImages,
     AddColumns(
     RenameColumns(
     'AttachmentControl-1'.Attachments,
     "Value",
     "ContentBytes"
     ),
     "@odata.type",
     ""
     ),
     {
     Name: "Signature.jpg",
     ContentBytes: 'Signature-1'.Image
     }
    );
    ForAll(ColCameraImages,Collect(colImages,{Name:ThisRecord.<field1>,ContentBytes:ThisRecord.<field2>}));
    ...

     

    Best Regards,

    Wearsky

  • Dave-ITMan Profile Picture
    on at

    Hi @v-xiaochen-msft 

     

    Thank you for this, can you confirm what the Name:ThisRecord.<field1>,ContentBytes:ThisRecord.<field2> is referring too please? I'm not sure which fields I need to change ThisRecord and field1 and field2?

     

    Many thanks

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Dave-ITMan ,

     

    Generally, it's your file name column and file content column from your first collection.

     

    Best Regards,

    Wearsky

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 617

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard