
Announcements
Hi all,
I am developing a power app that has a DataCard which contain 5 add picture image controls (not a gallery) for the user to select a photo or image to upload and then press the button to send an email attached to these images and PDF
This 5 add picture image control called
AddMediaWithImage1 (Mandatory)
AddMediaWithImage1_1 (Optional)
AddMediaWithImage1_2 (Optional)
AddMediaWithImage1_3 (Optional)
AddMediaWithImage1_4 (Optional)
I have referred to this video, https://www.youtube.com/watch?v=GoF3vfP3YTM
but I do not know how to attach these images and PDF simultaneously and anything needs to be preset first.
Below is my code:
Office365Outlook.SendEmailV2(
"alan.tse@clp.com.hk" /*DataCardValue84.Text &";"*/,/// To
"New: CLPeS of PO:",// Subject
"Dear Sirs," &"<br> attached for your follow-up." & "<br> Thank." &
"<br> Dear Contractor," & "<br> Please refer to the report and rectify the defect(s) and provide Photo(s) to us for update by 2 business days." &"<br>Thanks.",
{Attachments: Table(
{
Name: "submittedInspection.pdf",
ContentBytes: PDF(DataCard1, {Orientation: "Portrait", ExpandContainers: true})
}
)
}
);
Thank you very much for your help.