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 / Saving container/form ...
Power Apps
Unanswered

Saving container/form as pdf

(0) ShareShare
ReportReport
Posted on by 29

Hello, im having trouble with saving the form/container into a PDF file for email attachment. Sometimes it print the entered value on the datacards sometimes it doesnt.

 

NigusInPajamas_0-1701086011936.pngNigusInPajamas_1-1701086054272.png

or sometimes it only works perfectly on edit > play mode, but when published no value was been save.

 

I insert the code on the form's OnSuccess instance here's the code.

Set(varPDF, PDF(MainContainer1_8,{ExpandContainers:true}));
SaveFileToSharepoint.Run(
DataCardValue1_17.Text,
{
file: {
contentBytes: varPDF,
name: DataCardValue1_17.Text & ".pdf",
contentType: PDF(MainContainer1_8)

}

}

);
Set(varSavePrompt, true);
Set(varSubmitButton, false);


Here also the flow

 

NigusInPajamas_2-1701086467572.png

Appreciate all suggestions thanks!

Categories:

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
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard