Hi @nok ,
Yes this is possible by passing the optional attachments parameter , but there's a trick to it:
Office365Outlook.SendEmailV2(
"user@email.com", //replace with a reference to the recipients
"Subject", //replace with a reference to the subject
"Body", //replace with a reference to the email body
{
Attachments:
{
ContentBytes: First(AttachmentControl.Attachements).Value,
Name: First(AttachmentControl.Attachements).Name
}
}
);
As you can see this refers to an AttachmentControl. To get one of these, you need to add a form to your app and then copy the control from there. Delete the formulas for any properties that give you errors, rename the control to AttachmentControl and then set the Items property to:
LookUp(
LibraryName, //replace with the name of your library
'File name with extension' = "default.pdf"
)
After this, hide the attachment control by setting its' Visible property to false.