Hi all, i have some code that was working fine and has suddenly stopped working i cant figure out whats wrong but its saying its the pdf creation ive made bold what is showing as the issue any help appreciated :
Set(varpdfvisible,false);Set(varpdfblob,PDF(Form_PDF,{Size: PaperSize.A4, Orientation: PaperOrientation.Portrait}));Set(varpdfvisible, true);
Office365Outlook.SendEmailV2(emailadd, varfgasasset.'Building Name'&" - "&varfgasasset.'Building ID'&" - "&Label3_17&"-FG16", "New FG16 submission From "&User().Email,{Attachments: Table({Name: "test - FG16.pdf", ContentBytes: varpdfblob})});
ResetForm(Form2);
If(maintvis1,UpdateContext({maintvis1:!maintvis1}));
If(Disvis1,UpdateContext({Disvis1:!Disvis1}));
If(addvis1,UpdateContext({addvis1:!addvis1}));
If(Remvis1,UpdateContext({Remvis1:!Remvis1}));
If(Leakvis1,UpdateContext({Leakvis1:!Leakvis1}));
Navigate('R-Maintenance')