Hi Experts,
I have the below code on a button via the OnSelect, can you tell me how I can add the attachments that the user uploads to my sharepoint list please? They are coming through via email fine but I can't get them into the sharepoint list, I need both the attachments and the signature:
ClearCollect(
colImages,
AddColumns(
RenameColumns(
AttachmentControl.Attachments,
"Value",
"ContentBytes"
),
"@odata.type",
""
),
{
Name: "Signature.jpg",
ContentBytes: Signature.Image
}
);
Office365Outlook.SendEmailV2("emailaddress@mydomainname.com" , 'Result Job Number'.Text , "Hi,<br><br>
Please see completed survey form below and attached drawings<br><br>
<a href=https://mydomainname.sharepoint.com/sites/PowerApps/Lists/DoorSurvey/AllItems.aspx>Click Here to View the Full SharePoint List</a><br><br>
<b>Customer: </b>"&Customer.Text&"<br>
<b>Address: </b>"&Address.Text&"<br>
<b>Job Number: </b>"&'Job Number'&"<br>
<b>Surveyor: </b>"&Surveyor.Text&"<br>
<b>Date: </b>"&Date.SelectedDate&"<br><br>
<b>Notes: </b>"&Notes&"<br><br>
Regards<br><br>
IT Department<br></br>",
{Attachments: colImages}
);
Reset(AttachmentControl);
Reset(Signature)
;
Patch(DoorSurvey, Defaults(DoorSurvey),
{
Title: ValueDateTimeNow.Text,
Customer: Customer.Text,
'Site Address': Address.Text,
'Job Number': 'Job Number'.Text,
Surveyor: Surveyor.Text,
Date: Date.SelectedDate,
Notes: Notes.Text
});
Navigate(Success,Cover)