Hello,
I would like to
- send Emails
- directly out of PowerApps-
- with one attachment
- attachment located in a folder in a SharePoint Library.
- I would not like to do a workaround with flow!
Sending Emails works fine, but to get the attachment produces an error.
I would not like to do a workaround with flow!
SharePoint Library is called "Export" and added as connection.
ClearCollect(FinalAttachments, {Name:Export.Name, ContentBytes:FileContent,'@odata.type':""})
;
Office365.SendEmailV2(
"My@email.com",
"Test Subject",
"Test Body",{Attachments: Name: FinalAttachments.Name,ContentBytes:FinalAttachments.ContentBytes, '@odata.type':""})
Mainly I get the error that contentbyte 'blob' is expected and not record...
Isn't there an easy way to get the file directly from the library connection instead of a collection? And really, what is it about contentbyte??? I cannot find any reasonable description in the microsoft docs about it...