
hello, I'm hoping someone can shed some light on the issue I'm having with sending attachments via email in PowerApps.
I have multiple forms with similar functionality, and each form needs the ability to add an attachment and send an email with that attachment however of my 8 forms, wit the same logic, only 2 are sending the email with the attachment (the others send the email fine, but the attachment is not attached).
Set-up:
Each form is connected to its own SP list
User opens the form and fills out the fields and can add an attachment. The attachment data card is an added field in the form similar to all the other SP column fields.
On my Submit button the logic is to submit the form to the SP list and email the form contents including any attachments. It is working perfectly except for the attachment in the email (the attachment is successfully submitted to the record in the SP list.
Here is that logic on my submit button:
SubmitForm(Form1);
Set(varID,Form1.LastSubmit.ID);
Office365Outlook.SendEmailV2("myname@mycompany.com",
"Payroll/Seniority",
"<b>Email ID:</b> " & varID,
{Cc: User().Email,
Attachments: AddColumns(RenameColumns(Attachments.Attachments, "Value","ContentBytes"),"@odata.type",""),
Importance:"Normal"});
ResetForm(Form1);Navigate(Screen_Success)
Any insights? Again, I have that same logic written on other forms and the attachment WILL send properly in the email.
Thank you!