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 / PowerApps and collabor...
Power Apps
Suggested Answer

PowerApps and collaboration with Sharpoint and conversion to PDF

(0) ShareShare
ReportReport
Posted on by
Hello dear PowerApp users,
I hope you can help me.
I have the following problem:
I would like to create an extra SharePoint list for the page/processing form for customers and fitters and display it here.
When the form is completed, it should be saved in a SharePoint list and, if possible, converted into a PDF form and sent by e-mail.
 
 
I hope for quick help. Kind regards
 
Categories:
I have the same question (0)
  • Suggested answer
    BJ-14110651-0 Profile Picture
    5 on at
    Hi there, 
     
    This can be achieved in two ways, depending on limitations to use premium connector or working with work arounds. 
    In any case so far PDF Generator function (Experimental) has been sleek function to generate PowerApps forms-based PDF.
    ** Note: Solution mentioned sole relies in PDF function to generate PDF binary object and subjected to all conditions and limitations applicable to function's experimental state.
     
     
    Implementation of PDF Function in Sharepoint Online List form by customizing them in PowerApps

    Feature: Generate and Download PDF of Sharepoint PowerApps Form
    Link to know more about Feature:
    PDF function (experimental) - Power Platform | Microsoft Learn
    Work with the PDF function (experimental) - Power Apps | Microsoft Learn

    Objective: Enable users to generate a PDF document of a SharePoint form within PowerApps and provide a downloadable link for the PDF file.

    Steps to Implement
    Step 1: Enable PDF Functionality
    1. Navigate to Settings in PowerApps.
    2. Under Updates, locate the Experimental tab.
    3. Toggle PDF Function to On. This allows PowerApps to use the PDF function for generating PDF documents.

    Step 2: Add a Button to Generate PDF
    1. Insert a button on the PowerApps screen, labelled "Print".
    2. Set the OnSelect property of this button to the following formula:
    Set(PdfContent, PDF(SharePointForm1, {ExpandContainers: true}));
      • Explanation:
        • PdfContent: A variable that stores the generated PDF content.
        • PDF(SharePointForm1, {ExpandContainers: true}): The PDF function generates a PDF of the specified form (SharePointForm1). The {ExpandContainers: true} option ensures that all containers in the form are included in the PDF.


    Step 3: Configure the Attachment Control for Downloading the PDF
    1. Add an Attachment DataCard to the screen (or use an existing attachment control).
    2. Set the DisplayMode property of the DataCard to View to make it read-only.
    3. Set the Item property of the attachment DataCard to the following:
    {Name: PdfContent, Value: PdfContent}
      • Explanation:
        • {Name: PdfContent, Value: PdfContent}: Defines the item in the attachment control as the PDF content generated in Step 2.
    1. Ensure that the attachment DataCard is only visible after the PDF is generated:
      • Set the Visible property of the attachment DataCard to PdfContent.


    Step 4: Download the PDF
    1. After clicking the "Print" button, PowerApps generates the PDF and stores it in PdfContent.
    2. Once the PDF is generated, the attachment DataCard will become visible.
    3. Users can click the attachment DataCard to download the PDF file.
    Summary
    • Print Button: Initiates PDF generation of the form.
    • Attachment DataCard: Becomes visible after PDF generation and allows users to download the generated PDF.Implementation of PDF Function in Sharepoint Online List form by customizing them in PowerApps

      Feature: Generate and Download PDF of Sharepoint PowerApps Form
      Link to know more about Feature:
      PDF function (experimental) - Power Platform | Microsoft Learn
      Work with the PDF function (experimental) - Power Apps | Microsoft Learn

      Objective: Enable users to generate a PDF document of a SharePoint form within PowerApps and provide a downloadable link for the PDF file.

      Steps to Implement
      Step 1: Enable PDF Functionality
    • Navigate to Settings in PowerApps.
    • Under Updates, locate the Experimental tab.
    • Toggle PDF Function to On. This allows PowerApps to use the PDF function for generating PDF documents.

    • Step 2: Add a Button to Generate PDF
    • Insert a button on the PowerApps screen, labelled "Print".
    • Set the OnSelect property of this button to the following formula:
    • Set(PdfContent, PDF(SharePointForm1, {ExpandContainers: true}));
      • Explanation:
        • PdfContent: A variable that stores the generated PDF content.
        • PDF(SharePointForm1, {ExpandContainers: true}): The PDF function generates a PDF of the specified form (SharePointForm1). The {ExpandContainers: true} option ensures that all containers in the form are included in the PDF.



    • Step 3: Configure the Attachment Control for Downloading the PDF
    • Add an Attachment DataCard to the screen (or use an existing attachment control).
    • Set the DisplayMode property of the DataCard to View to make it read-only.
    • Set the Item property of the attachment DataCard to the following:
    • {Name: PdfContent, Value: PdfContent}
      • Explanation:
        • {Name: PdfContent, Value: PdfContent}: Defines the item in the attachment control as the PDF content generated in Step 2.
    • Ensure that the attachment DataCard is only visible after the PDF is generated:
      • Set the Visible property of the attachment DataCard to PdfContent.


    • Step 4: Download the PDF
    • After clicking the "Print" button, PowerApps generates the PDF and stores it in PdfContent.
    • Once the PDF is generated, the attachment DataCard will become visible.
    • Users can click the attachment DataCard to download the PDF file.
    • Summary
    • Print Button: Initiates PDF generation of the form.
    • Attachment DataCard: Becomes visible after PDF generation and allows users to download the generated PDF.

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard