Dear Power Apps community
I'm trying to send an e-mail from powerapps, with in the attachments a file from a sharepoint list.
This is to make it possible for employees to send certain documents to their email address from a local computer on the production site.
(note: i'm Dutch, so names of documents, buttons and so on could sometimes be in the dutch language, but i work in the englisch version of powerapps)
I have a gallery called Galerij_Documenten
Items value is InfoKioskInteressanteDocs (a sharepoint list)
This Sharepoint list has a couple of columns:
- LblSoortDocTitel with item ThisItem.TitelLink
- LblWelkDocTekst with item ThisItem.'Uitleg link'
- DataCardValueDocs with item ThisItem.Attachments
Everything works fine for now.
I have a button in the gallery with the following onselect formula
Clear(Attachment);
Collect(Attachment,DataCardValueDocs.Attachments);
Office365Outlook.SendEmailV2(
EmailadresInput.Text,
LblSoortDocTitel.Text,
LblWelkDocTekst.Text,
{
Attachments:
RenameColumns(
Attachment,
"Value", "ContentBytes"
)
}
),
If i only do the first part of Collect(Attachments ...) i have in my collections 'Attachments (Table 2 Rows)
If i click on view table i get 2 columns
Name and Value
But i get an error on this part of the formula of the button:
RenameColumns(
Attachment,
"Value", "ContentBytes"
)
The error is the following:
Missing column. Your formula is missing a column 'Attachments.ContentBytes' with a type of 'Blob'.
Is my 'renamecolumns' formule wrong?
Of what can i do to fix this type of 'Blob'?
I was working with this video as my guide:
https://www.youtube.com/watch?v=849WRw65JBo&t=1s
Thank you in advance!
​​​​​​​Greetings Miguel