Hello and thanks for your help in advance!
I have a button with the function patch, where I export a pdf to my sharepoint list using Form.Updates (a datacard with a pdf attachment):

and my button also send an email using SendEmailV2 but I can't attach the pdf file to the email. I tried using a collection before but the email goes without the pdf file. Can you help me, please ?
Office365Outlook.SendEmailV2("XXX@outlook.com";
"XX";
"Content"; {Attachment: PDF});;
ClearCollect(PDF; {Name:"pdfattachment.pdf"; ContentBytes: DataCard.Attachments; '@odata.type':""})