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 / Create a pdf from PA a...
Power Apps
Unanswered

Create a pdf from PA and upload it to a SharePoint list as an attachment

(0) ShareShare
ReportReport
Posted on by 37

Hello,

I created a PowerApps form starting from a SharePoint list. There is any way to create a pdf from PA with the questions and the answers from the form? This pdf I want to be saved also in the list as an attachment.

 

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

    Hi @Madalina97 ,

    Do you want to create a PDF file based on the form data in your app, then save the created PDF file as attachments of the submitted List Item record from your app?

     

    Based on the needs that you mentioned, I think the combination of PowerApps and MS Flow could achieve your needs. More details about generating a PDF file base don PowerApps form data, please check the following video resource:

    https://www.youtube.com/watch?v=IhE0-HumNNo

    https://www.youtube.com/watch?v=MHE4TU8jkwQ

    https://www.youtube.com/watch?v=bfXV_GXc_JM

     

    In addition, if you want to attached the generated PDF file as a attachment of the submitted SP List record, the user @Ajilakes has faced same needs with you, please check my response within the following thread:
    https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/Capture-Image-and-Save-as-Attachment/m-p/360815#M103106

     

    On your side, you should put your 'FlowName'.Run(...) formula within the OnSuccess property of the Edit form, when you submit your form data successfully, your flow would be fired.

    If you want to reference the submitted column value within the HTML content which you need to pass from your app to your flow in above 'FlowName'.Run(...) formula, please use the following formula:

     

    EditForm1.LastSubmit.Column1
    EditForm1.LastSubmit.Column2
    EditForm1.LastSubmit.Column3

    ...

     

    Within your flow, you need also define a List Item ID parameter which you need to pass from your app to the flow, then within the FlowName'.Run(...) formula in your app, pass the submitted List Item ID value using the following formula:

    EditForm1.LastSubmit.ID

    In your flow, you should add "Create a file" action of OneDrive connector to create a PDF file based on the passed the HTML Text content. Then add a "Add attachment" action of SP Connector to attached the generated PDF file as attachment of the submitted SP List Item record.

     

    Please consider take a try with above solution, check if the issue is solved.

     

    Best regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard