Hi, I am currently working on a contract generator via Power Apps. I have been using this code for my other forms and it works fine but for this specific form, there seems to be an error. This is the code that I have been using for all contract forms:
Set(PDFvalue, PDF(APGSContract, {Size: PaperSize.A4}));
Set(fileNameSuffix, Substitute(Text(Now(), DateTimeFormat.UTC), ":","-"));
Set(DownloadLink, ThailandPDFExporter.Run(Concatenate("Agreement_" & fileNameSuffix & ".pdf"),
{
file: {
name: Concatenate("Agreement_" & fileNameSuffix & ".pdf"),
contentBytes: PDFvalue
}
}
).link);
Launch(DownloadLink);
For my previous forms, there is no issue. But for this new form, the error encountered is:
