Hi All,
I have an app which uses the PDF function and in it i am sending the PDF via an email.
Usually this works just fine, but every now and again the user gets an error saying that the PDF creation has failed. Is anyone sure why this might happen? it also stops the sendemail function from running, so has been failing to send the emails without our isers' knowledge. They seem to have ignored the notification bar at the top, however in fairness to them, i do have a container that pops up saying "Order sent Sucessfully"
I have just added in some error management to make users aware of this and changed my pop up so that a different one pops of in the case of an error. I have also created an errorlog list that will be emailed to myself if an error happens, however i was wondering if anyone else has had issues with this error and if there are anyways to stop it happening?
I have put the code im using below, but like i said, this works 99% of the time.
Office365Outlook.SendEmailV2(If(IsBlank(ComboBox3.SelectedItems),ComboBox3.SearchText,Concat(ComboBox3.SelectedItems,EmailAddress & ";")),If(Dropdown8.Selected.Value = "Call Off", "CALL OFF ORDER REF: " & TextInput3.Text, "ORDER REF: " & TextInput3.Text),EmailBodyText.HtmlText,
{Cc:"ordering@be.co.uk;" & If(IsBlank(ComboBox3_1.SelectedItems),ComboBox3_1.SearchText,Concat(ComboBox3_1.SelectedItems,EmailAddress & ";")),
IsHtml: true ,Importance:"Normal", Attachments:Table({Name:If(Dropdown8.Selected.Value = "Call Off", "CALL OFF ORDER: "& TextInput3_2.Text & " - " & TextInput5.Text & " .pdf" ,"Purchase Order: " & TextInput3_2.Text & " - " & TextInput5.Text & " .pdf"),ContentBytes:PDF(poPDF,{Size:PaperSize.A4,Orientation:PaperOrientation.Portrait, ExpandContainers:true})})});
Thanks

Report
All responses (
Answers (