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

Announcements

News and Announcements icon
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 Microsoft Employee

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
    Microsoft Employee 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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard