Hello,
I am trying to set a button on my submitted screen to run a flow, and my PDF function on another screen. My formula is:
Navigate(PrintScreen);
Notify(
"PDF is being generated. Please wait...",
NotificationType.Information
);
Set(
varSavePDF,
SavePDF2.Run(
"Generated Report.pdf",
{
file: {
name: "Generated Report.pdf",
contentBytes: PDF(
PrintScreen,
{
Orientation: "Portrait",
ExpandContainers: true
}
)
}
}
)
);
Launch(varSavePDF.fileurl);
Navigate(SubmittedScreen)
When I preview the app this works. When I publish the app and try it I get "The target of the PDF function must be on the current screen".
Any ideas on how I can get this to work in my published version?
Thanks,
Collin