Hi,
In my power apps form added pdf icon, when user clicks on that pdf icon need to generate a pdf file and file will be saved in to specific document library.
To save pdf file in the document library written "SavePdftoDealerCreditPdf" power automate flow and used that flow name in the below code on pdf icon OnSelect.
SavePdftoDealerCreditPdf.Run({file:{name:"Test.pdf",contentBytes:PDF(DealerCreditPackage,{ExpandContainers:true})}});
here DealerCreditPackage is my screen name. with the above code getting below error.
The target of the pdf function can't be nested in a gallery, form, or component
please help me on this issue.
Thanks,
Nagendra.