web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power apps PDF functio...
Power Apps
Unanswered

Power apps PDF function is not working

(0) ShareShare
ReportReport
Posted on by

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.

Categories:
I have the same question (0)
  • v-chengfen-msft Profile Picture
    on at

    Hi @Anonymous ,

    The cause of this problem is:
    1.PDF formula has some restrictions,
    Please check:

     

    vchengfenmsft_0-1670813778943.png

     

    Here is a link about PDF formula for your reference:

    PDF function in Power Apps (experimental) - Power Platform | Microsoft Learn

     

    Best Regards

    Cheng Feng

     

  • Community Power Platform Member Profile Picture
    on at

    Hi Cheng Feng,

    Thanks for your valuable information.

     

    My requirement is that need to show few powerapps form fields on the pdf file. Is there any alternative way to do this task.

     

    Thanks.

    Nagendra.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard