I have this formula inside a submit button:-
//the file to be added asa list item attachment
Set(varAttachment, { DisplayName: Substitute("Print Job" & Text(Now(),"yyyy-mmm-dd hh:mmm AM/PM") & ".pdf", ":","_"), Id: Substitute("Print Job" & Text(Now(),"yyyy-mmm-dd hh:mmm AM/PM") & ".pdf",":","_"), Value: Substitute(JSON(varWorkOrderPDF,JSONFormat.IncludeBinaryData),"""","")});
IfError(
SubmitForm(PrintFormForm),
Notify(
"Error Submitting the Print form",NotificationType.Error,10000),
Office365Outlook.SendEmailV2(
PrintFormForm.LastSubmit.'Printing House Email',
PrintFormForm.LastSubmit.'Email Subject',
PrintFormForm.LastSubmit.'Email Body',
{
Attachments:Table({
Name: varAttachment.DisplayName,
ContentBytes: varAttachment.Value
})
}
);
);
the formula will generate a PDF >> then attach it to an email as attachment. now we need to expand this formula, to allow attaching all the list item attachments inside the email (and not just the generated PDF file), for example we have the generated PDF and 4 images.. how we can attach all the attachments inside the attachment control in the email?
