Has the schema for Attachments items property change from Name, Value to name,value? I have noticed it and found some comments on it. If so, Reza can you pin this comment if possible?
@RezaDorrani No, I have not downloaded and manually replicated the steps. Only lowercase works. There are few more comments under this video with the same issue and few of the users already tried with lowercase and it worked for them too.
Awesome Reza! Thank you for this! One note - I had to go into the Retired settings and turn Legacy formula bar back on to be able to set the Name and Value properties correctly (without enabling the Legacy formula bar, those properties are not visible for the attachments control). I'm wondering if that's because I copied the attachment control from another area in the app. Regardless, I wanted to share my workaround in case anyone else is experiencing an issue with downloading the PDF that is generated using the JSON and PDF functions.
Great tutorial Reza, especially i liked the way you printed the form inside the container (this was a problem with printpdf, we cannot print the entire form, but, using your trick the issue will be eliminated). Also, a genuinely nice example of copying objects leveraging YAML code. Thanks a lot for all your efforts 🙏🏻🙂
15:28 So many new party tricks with Yaml, Thanks Reza. This looks more achievable than convincing stakeholders not to physically print every pdf generated 😊😊
Did this using power automate last Friday only, direct SendEmail was not working due to the large size of pdf file but this approach is much neat.. So big thanks🙏
I have not experienced the mentioned issue, hence not sure whats the cause for your issue. See pinned comment on video and see if that helps. You can also try downloading the solution shown in video (members only - check video description for details)
Is it possible to add content to the PDF AFTER the gallery's expanded container? I'd like to be able to add content, like another container that shows total amounts on the bottom of the gallery.
Thanks for sharing your knowledge Reza: I am working on an application and I need to export to PDF all the content of a container that has as its only object an HTML text, but even using {ExpandContainers:true} the PDF is being exported with only the content that appears on the screen, regardless of the rest of the HTML content that I can see on the screen when using the scroll. Do you have any idea?
To add: I used the pdf viewer and I get the same result regarding content, but I can see the text of the pdf. In the case of email or download of the pdf, the content does not appear or appears blank
@NosfeSoto I have not experienced the mentioned issue, hence not sure whats the cause for your issue. You can try downloading the solution shown in video (members only - check video description for details)
Thank you for your solution, Reza. I have implemented it in my application, where an image control is dynamically set from the PenInput image. However, while all other data appears correctly in the PDF, the image does not render when viewed in a PDF viewer or sent via email. Your assistance in resolving this issue would be greatly appreciated.
I have not experienced the mentioned issue and hence not sure of the cause or fix for it. I will recommend checking or posting your issue on forums in case someone has experienced something similar community.powerplatform.com/
Fantastic. I was right to be excited to watch this video. Just had a quick question. Are you locked into using the form components, or is there a way to do this when using Patch to do forms? Thank you. You rock!
I prefer forms over patch because while making video content, its quick to build the forms. However, in real world scenarios, it depends on the use case at hand. Even if you using patch, your controls on screen can be a part of generated pdf using the pdf function.
For some reason, even though i follow everything here to the letter, once I click my button MS Edge shows an attempt to download the file, but errors out saying "Couldn't download - No File" I can see the binary data in the pdfContent variable so it does have data. just the PDF generation now working?
Hi Reza, hope you see this. I can't download the PDF in my app. In Edge, while editing, I get a corrupted PDF with 'Couldn't download - No file.' When playing the app, clicking download opens a new tab with an error 'The specified blob does not exist.' This XML file does not appear to have any style information associated with it. The document tree is shown below. BlobNotFound The specified blob does not exist. RequestId:314182b3-701e-000e-12a6-615d70000000 Time:2025-01-08T08:21:58.1497410Z
I have not experienced the mentioned issue, hence not sure whats the cause for your issue. You can try downloading the solution shown in video (members only - check video description for details)
Hey Reza, in the Email PDF option, do you know if it is possible to select more than one container to be added to the PDF? I have tried adding like container1;container2 to the function but the email will only generate the last container out of the two. Thanks.
Hello. I created a vertical container. I turned it into a pdf. My container data is dynamic. For this reason, sometimes it can be 3 and sometimes 5 pages. However, I want to add fixed headers and footers to these pages. Is there a way to do this?
This is great I implemented this awesome feature in an app that is live; but for some reason it's not creating the same results on the live app. The form is black and white and missing colors, containers/boxes for text. Do you know if the PDF feautre would function different on a live published app?
I have not experienced any issues with published app hence not sure. Video description has link to download the App (members only - check description for details)
Thank you Reza for the ideas. I was playing with PowerApps PDF function for a lengthy form inside a container control. One thing I noticed about it was sometimes texts get stuck in between two pages. As in part of the text appears in the previous page while the other in the next. Any advice on how to overcome this issue?
@@RezaDorrani Hope Microsoft will find a solution for that. The alternative I thought out was using a word template through power automate, but that connector action is a premium feature. Keep sharing more of these Reza, your video gave me more ideas for me to play around with PDF functions within PowerApps 🙏
Great video and nice work-around techniques. But after trying with your case, mine Edge browser says "Coundn't download - No file" after clinking the Attachments control. Any idea?
Thanks! No idea why that would be the case. Video description has link to download entire solution (members only - check description for details) I would suggest giving that a try.
@@RezaDorrani Hi again Reza, I think I have found the issue. It is the "Items" property of Attachment control. I changed it from {Name:,Value:} to lower case {name:,value:}, issue solve. Guess there is some unknow issue with Attachment control.
Hi Reza! this has never been the perfect timing! I really really need this and there you are solving our problems.. Thank you! Everything is working well on Power Apps Studio, however in the live/published version of the app, I always get an error "Couldn't download the file". The email trick works fine though. It's just the direct downloading of PDF is where I face the issue. I was wondering perhaps there is some tweak I need to do to make it work in the live mode. Thanks a lot! You are a blessing to us!
You're most welcome! I have not experienced the mentioned issue. You can try downloading the solution shown in video (members only - check video description for details
Hi Reza, thank you for this PDF creation tutorial without power automate flow. I wonder if it's possible to combine both actions : 'Generate PDF' & Auto download 'Login Page Bug.pdf' ? I tried but i don't see any OnSelect action on DTC Attachment. At the end of Generate PDF code, i would like to 'invoke' a click on 'Login Page Bug.pdf' :)
Im trying to follow along but what Im not see is being able to paste the code in the container. When i right click only paste appears. Also I dont see the step of how you added datacard 5 in . Your help is truly appreciated.
Feature is currently in preview for early release environments. You can try downloading the solution shown in video (members only - check video description for details)
Hi, Reza ! it was a great explanation but I have some confusion in generating YAML code like yours (copied from the notepad). In my case, I want to generate pdf from a container, and copied and paste from the container results in error. Where do you get that YAML code? Thank you!
I did a video on yaml code separately. I simply copy and pasted what I got in code video. Video description has link to download entire solution (members only)
Thanks a lot, Reza! Now i send the PDFs from a gallery with a form within with fields that have hidden formulas but the size of the file is 18MB. Ive tried everything (from erasing images, etc) but the size doesnt change. Is there a way to compress the file in powerapp or autoamate without paying and send it?
I have generated a PDF from a powerapps form. After I hit the PDF icon and create PDF, All the text input entered fields are there in form but all the radio values are empty in the screen. I expect hit the PDF icon and create PDF then the form with values are still presented. Is there any work around on this?
I'm unable to copy the YAML code, probably because that option is turned off from my gov tenant. Is there another way I can achieve the same result, perhaps the long way?
Hello Reza, Thank you for your very nice explanatory videos. Is it possible to export a PDF containing several screens from the Power Apps application?
I really like the use of the attachment controls to allow users to download a local document. I have an existing app that pulls base64 docs from an API. I let uses view the documents via the PDF viewer component. Keen to add the download function as well. Prevents me from having to store documents in SharePoint to allow download functionality.
@@RezaDorrani I have tried to implement the download via attachment control but getting "Couldn't download - No file" when trying to download the file. I can view the PDF via the PdfViewer Component so I am sure the format of the file "value" is correct. Is there any browser setting that has to be change to allow for the download. Using Edge.
@@97handball no unfortunately not. I downloaded Reza's App to see if I was missing anything but can't seem to get the download to work off a raw base64 pdf string. Says "Couldn't download - No file" when ever I tried.
Hi Reza, on my form i added a custom data card with "HtmlText", when i generate the PDF i do not get all the context in the "htmltext", is there a limitation on the number of characters in this case?
So Raza have you been using this in production , Is this stable . I am asking this question because I have bad experience with things in preview mode in power automate. Though not sure about the experimental feature
The pdf gen technique shown in video works with any form control experience. I have done many videos on SharePoint forms. You can try this out with any of them.
I'm putting together a curriculum using your video as a reference, however I'm using a Canvas component, where I inserted a container and several other components inside the container. Sending the PDF file by email is correct, but when I try to download it, the Canvas component appears blank. I know it's difficult to answer, but where could I be going wrong, could you help me?
If you are relating to multiple SCREENS in power app, then No. Pdf generated can be multiple pages, but it can only do so for controls on a single screen
@RezaDorrani Thank you So much for tutorial i have created pdf with flow for app previously which is taking lot of time. I have tried same way and my file has been downloaded in browser but download history shows File was not available for on site can you help
Most welcome! Video description has link to download entire solution (members only - check description for details) I would suggest giving that a try. As for the issue mentioned, I have not experienced it and hence not sure what the cause for it could be. I will recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com
Using the PDF function, I'm not able to get the text in bold font using normal controls not modern and also I don't have premium licence, i have microsoft365 licence. Is that a limitation? Or can i fix that issue? Not only bold text even i have faced same issue for svg images (it shows blank when download)
Pdf function is a standard action. There is no licensing needs here. Check documentation for limitations of pdf function. Not all controls are supported.
Good day Sir Reza! How to send the form (apps) through email? That can be edited by an approver. For example, the form needs to be reviewed first before taking next steps.
I do show how to send pdf copy in email. It does not output an editable pdf. Better option is to send notification to approver and make them edit item in form. I have done many videos on that.
Can anyone please help with this? In a Modern Table, how can we have a different onSelect action for every column? My task is to show a column with a ticket ID that appears as a link. When the user clicks on it, I want to navigate them to another screen. If this cannot be done in a Modern Table, how can we add a separator in a Classic Table?
Modern table has an onselect function. There you can check to see the metadata of selected item and accordingly write your logic with if or switch statements.
The pdf gen technique shown in video works with any form control experience. I have done many videos on SharePoint forms. You can try this out with any of them.
Hey Reza, thank you for this content. From my experience the generated pdf from pdf function works different when using live app from just previewing the app. When pdf is generated from live app everything gets broken and content is not rendered as displayed. Do you have any solution to that? Thanks a lot
Inserting the attachment control requires you to enable legacy formula bar. Which is not recommended to do. If the legacy formula bar is not enabled, your attachment control will fail to provide the attachment. You might get the "File wasn't available on site" error.
@elirdz weird. Did not run into that when building this video. I did share the video solution with channel members who have not reported any issues until now.
Hi Reza great tutorial as usual. When i am trying this function i am successfully getting the attachment but its corrupted. I tried with putting the form control and the formcontainer in the formula and made no changes. What might be the reason?
I have not come across this issue, hence not sure. Video description has details on how to download the app (members only) I would suggest giving that a try
I followed your video instructions step by step, even copied the entire yaml code word for word into my app, when i click on the file to download it gives an error "file wasn't available on site" what could be the issue? Please Help !!!
I have not experienced the mentioned issue, hence not sure whats the cause for your issue. You can try downloading the solution shown in video (members only - check video description for details)
I have not experienced the mentioned issue, hence not sure whats the cause for your issue. You can try downloading the solution shown in video (members only - check video description for details)
Hey Reza great content , However once I use a gallery and there is many content in it once the PDF is generated in 2 or more pages it cut through the words how can I fix this ?
Thank you so much Reza Very instructive video. But I have an error generating the PDF file using JSON. I get this error: The PDF file you are trying to open is damaged.
Most welcome! Video description has link to download entire solution (members only - check description for details) I would suggest giving that a try. As for the issue mentioned, I have not experienced it and hence not sure what the cause for it could be. I will recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com
I did get the same issue, when I copied the attachment data card from a view form. When I did it from a edit form it worked! Not sure if it's the same case for you
Thank you, i am using the same method. My question is, there is a way to combine multiple containers to one pdf? In my application i have 5 form (in 5 containers), different steps... Can i convert this 5 container in one pdf?.
Video description has link to download entire solution (members only - check description for details) I would suggest giving that a try. As for the issue mentioned, I have not experienced it and hence not sure what the cause for it could be. I will recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com
Have not experienced the mentioned issue and not sure of the cause for your issue. You can try downloading the solution shown in video (members only - check video description for details)
Very interesting Raza, I tested it and it works, for one container. But I have more data in another screen, a Container with a DataTable. How can I add it to the same PDF attachment?
Has the schema for Attachments items property change from Name, Value to name,value? I have noticed it and found some comments on it. If so, Reza can you pin this comment if possible?
I'm not sure if it has changed. Have you downloaded the solution shared and tried it and had to make changes?
@RezaDorrani No, I have not downloaded and manually replicated the steps. Only lowercase works. There are few more comments under this video with the same issue and few of the users already tried with lowercase and it worked for them too.
@ResponsibleXI I don't remember if it was lowercase or not. If I get 100% confirmation then I can add it as pinned comment.
Yeah all characters need to be lowercase letters (Name, Value not worked)(name,value worked for me)
With all due respect to other power platform instructors, You are the best Power Platform instructor on this platform.🙏
Thanks so much for your kind words. Everyone is awesome!
You are truly a champion - every day I learn something new from your tutorials and your creative way of solving things.
Thanks so much and very happy to hear the word NEW. I work extremely hard to try and bring something NEW to the table in each video.
Superb idea.
Solved so many doubts and got so many new ideas to play with it.
Glad to hear that
Your videos save me every time. So reliable. Thank you.
Great to hear!
Thanks Reza for this video and the tips for generating a PDF file.
My pleasure!
Thanks Reza ! Very useful for simple single-page PDFs
Glad it was helpful!
Note: The PDF generated can be multi page thanks to expandcontainers option shown in video.
Great video and content as always. I'm sure it will come in handy one of these days so will surely archive it. Thanks for sharing.😁😁
Thanks for watching!
Great video, i was looking for this function for some time, Thanks!
Most welcome
Awesome Reza! Thank you for this! One note - I had to go into the Retired settings and turn Legacy formula bar back on to be able to set the Name and Value properties correctly (without enabling the Legacy formula bar, those properties are not visible for the attachments control). I'm wondering if that's because I copied the attachment control from another area in the app. Regardless, I wanted to share my workaround in case anyone else is experiencing an issue with downloading the PDF that is generated using the JSON and PDF functions.
I already did that in the code that I used to copy and paste. So others dont have to do that.
Great tutorial Reza, especially i liked the way you printed the form inside the container (this was a problem with printpdf, we cannot print the entire form, but, using your trick the issue will be eliminated). Also, a genuinely nice example of copying objects leveraging YAML code. Thanks a lot for all your efforts 🙏🏻🙂
Great to hear the feedback. This will be the pinned comment on video 😊
@@RezaDorrani ☺️☺️🙏🏻
Great video clearly explain each steps love the tutorial Reza
Glad to hear!
Great job Reza. Thanks for sharing!!
Thank you! Cheers!
Thanks for created this type videos reza once again thank you
More to come!
Thank you Reza. This is really helpful
Glad it was helpful!
Thanks for the informative video Reja..😊😊
Most welcome
You are great as always ❤
Thank you so much
I love you, Reza, you are the best.
Thank You
Great email PDF option. Thanks. I couldn't find the copy code (Preview) option @ 15:33 How can we request MS a "preview" environment? Thanks!
learn.microsoft.com/en-us/power-platform/admin/early-release
Amazing , thanks alots, recently stucked in this topic now Alhmdullilah solved
Most welcome
15:28 So many new party tricks with Yaml, Thanks Reza. This looks more achievable than convincing stakeholders not to physically print every pdf generated 😊😊
YAML is the new star in town!
i get an error while click on the attachemnt to download saying : the file content not available on site !
Video description has link to download entire solution (members only)
As far as the mentioned issue, I have not experienced it, hence not sure
Did this using power automate last Friday only, direct SendEmail was not working due to the large size of pdf file but this approach is much neat.. So big thanks🙏
Most welcome
@@RezaDorrani Just facing an issue on how to generate PDF which contains charts as they are still not supported, any workaround please.
@@anilkumar-ml2sl Not supported. I am not aware of any workarounds.
Reza,
When i tried to download the file its showing as couldnt download - No file
I have not experienced the mentioned issue, hence not sure whats the cause for your issue.
See pinned comment on video and see if that helps.
You can also try downloading the solution shown in video (members only - check video description for details)
Just brilliant 💥💥 Thanks for sharing 💥💥
Thanks for watching
As always, great content.
Much appreciated!
Awesome. Next level stuff.
Glad you enjoyed it
i can't seem to get the copy code option, could i get steps to complete download pdf without that?
You can try downloading the solution shown in video (members only - check video description for details)
Thank you so much Reza 😊
My pleasure 😊
Is it possible to add content to the PDF AFTER the gallery's expanded container? I'd like to be able to add content, like another container that shows total amounts on the bottom of the gallery.
You can only target a single container but you can nest containers. A container can contain multiple containers.
instead of Form, is it possible to do with flexible height gallery? I have tried but it only print screen
I have not tried with flexible height gallery. Might very well be a limitation if it's not working.
Thanks for sharing your knowledge Reza: I am working on an application and I need to export to PDF all the content of a container that has as its only object an HTML text, but even using {ExpandContainers:true} the PDF is being exported with only the content that appears on the screen, regardless of the rest of the HTML content that I can see on the screen when using the scroll. Do you have any idea?
To add: I used the pdf viewer and I get the same result regarding content, but I can see the text of the pdf.
In the case of email or download of the pdf, the content does not appear or appears blank
I believe html control is not supported with expand containers as per the documentation
Oh no!
@@RezaDorrani Do you have any idea why the download link may have an error but the email delivery works?
@NosfeSoto I have not experienced the mentioned issue, hence not sure whats the cause for your issue.
You can try downloading the solution shown in video (members only - check video description for details)
Thank you for your solution, Reza. I have implemented it in my application, where an image control is dynamically set from the PenInput image. However, while all other data appears correctly in the PDF, the image does not render when viewed in a PDF viewer or sent via email. Your assistance in resolving this issue would be greatly appreciated.
I have not experienced the mentioned issue and hence not sure of the cause or fix for it.
I will recommend checking or posting your issue on forums in case someone has experienced something similar
community.powerplatform.com/
Love thanks Renza 🙏🙏🙏
Most welcome!
Made one of these last year to export a form display; from a container to a downloadable pdf, now lets see how I should have made it :D
:)
Fantastic. I was right to be excited to watch this video. Just had a quick question. Are you locked into using the form components, or is there a way to do this when using Patch to do forms? Thank you. You rock!
I prefer forms over patch because while making video content, its quick to build the forms.
However, in real world scenarios, it depends on the use case at hand.
Even if you using patch, your controls on screen can be a part of generated pdf using the pdf function.
@@RezaDorrani That's great to know. Thank you so much!
Thank you for sharing🙌🏾
You are most welcome
For some reason, even though i follow everything here to the letter, once I click my button MS Edge shows an attempt to download the file, but errors out saying "Couldn't download - No File" I can see the binary data in the pdfContent variable so it does have data. just the PDF generation now working?
The feature does work fine. I'm not sure what's the issue with your team.
Hi Reza, hope you see this. I can't download the PDF in my app. In Edge, while editing, I get a corrupted PDF with 'Couldn't download - No file.' When playing the app, clicking download opens a new tab with an error 'The specified blob does not exist.'
This XML file does not appear to have any style information associated with it. The document tree is shown below.
BlobNotFound
The specified blob does not exist. RequestId:314182b3-701e-000e-12a6-615d70000000 Time:2025-01-08T08:21:58.1497410Z
I have not experienced the mentioned issue, hence not sure whats the cause for your issue.
You can try downloading the solution shown in video (members only - check video description for details)
Could you give some guidance on the settings to have this work with a gallery inside a container
Check my other video on pdf function
@RezaDorrani could you share a link please?
@@jamiecairns9111 search “reza pdf” on youtube
Hey Reza, in the Email PDF option, do you know if it is possible to select more than one container to be added to the PDF? I have tried adding like container1;container2 to the function but the email will only generate the last container out of the two. Thanks.
Only 1 container is allowed. You can add containers within containers and point to the parent container.
Reza, this is awesome! Is it possible to specify page breaks through the PDF function? Or would that require going the Power Automate HTML route?
Page breaks is not an option.
Hello. I created a vertical container. I turned it into a pdf. My container data is dynamic. For this reason, sometimes it can be 3 and sometimes 5 pages. However, I want to add fixed headers and footers to these pages. Is there a way to do this?
I dont think fixed headers and footers is an option
This is great I implemented this awesome feature in an app that is live; but for some reason it's not creating the same results on the live app.
The form is black and white and missing colors, containers/boxes for text. Do you know if the PDF feautre would function different on a live published app?
I have not experienced any issues with published app hence not sure.
Video description has link to download the App (members only - check description for details)
Thank you Reza for the ideas. I was playing with PowerApps PDF function for a lengthy form inside a container control. One thing I noticed about it was sometimes texts get stuck in between two pages. As in part of the text appears in the previous page while the other in the next. Any advice on how to overcome this issue?
Currently, there is no option to overcome that limitation.
@@RezaDorrani Hope Microsoft will find a solution for that. The alternative I thought out was using a word template through power automate, but that connector action is a premium feature.
Keep sharing more of these Reza, your video gave me more ideas for me to play around with PDF functions within PowerApps 🙏
@@Y0urN3m3sis Word doc is the answer for now.
Thanks for the informative video
My pleasure
Great video and nice work-around techniques. But after trying with your case, mine Edge browser says "Coundn't download - No file" after clinking the Attachments control. Any idea?
Thanks!
No idea why that would be the case.
Video description has link to download entire solution (members only - check description for details)
I would suggest giving that a try.
I had the same issue. I ended up putting the name and file data bits into the Named Formulas and it worked.
@@RezaDorrani Hi again Reza, I think I have found the issue. It is the "Items" property of Attachment control. I changed it from {Name:,Value:} to lower case {name:,value:}, issue solve. Guess there is some unknow issue with Attachment control.
@@ericzheng4838 Thank you. Lower case fix worked.
@@ericzheng4838 Thank you! I had the same issue. This fixed it .
Hi Reza! this has never been the perfect timing! I really really need this and there you are solving our problems.. Thank you!
Everything is working well on Power Apps Studio, however in the live/published version of the app, I always get an error "Couldn't download the file". The email trick works fine though. It's just the direct downloading of PDF is where I face the issue. I was wondering perhaps there is some tweak I need to do to make it work in the live mode.
Thanks a lot! You are a blessing to us!
You're most welcome!
I have not experienced the mentioned issue.
You can try downloading the solution shown in video (members only - check video description for details
Hi Reza, thank you for this PDF creation tutorial without power automate flow. I wonder if it's possible to combine both actions : 'Generate PDF' & Auto download 'Login Page Bug.pdf' ? I tried but i don't see any OnSelect action on DTC Attachment. At the end of Generate PDF code, i would like to 'invoke' a click on 'Login Page Bug.pdf' :)
OnSelect does not work for attachments control.
Not a supported feature.
Im trying to follow along but what Im not see is being able to paste the code in the container. When i right click only paste appears. Also I dont see the step of how you added datacard 5 in . Your help is truly appreciated.
Feature is currently in preview for early release environments.
You can try downloading the solution shown in video (members only - check video description for details)
do you need a premiun por create pdf?
No
Do you have any videos on how to create and download an Excel file with data from a gallery/collection/table?
I do but wait 2 weeks. I have a video coming on that exact topic.
@@RezaDorrani I'm looking forward to this video.
nice work as always
Thank you! Cheers!
Hi, Reza ! it was a great explanation but I have some confusion in generating YAML code like yours (copied from the notepad). In my case, I want to generate pdf from a container, and copied and paste from the container results in error. Where do you get that YAML code? Thank you!
I did a video on yaml code separately. I simply copy and pasted what I got in code video.
Video description has link to download entire solution (members only)
Thanks a lot, Reza! Now i send the PDFs from a gallery with a form within with fields that have hidden formulas but the size of the file is 18MB. Ive tried everything (from erasing images, etc) but the size doesnt change. Is there a way to compress the file in powerapp or autoamate without paying and send it?
I have no idea about the size or how can it be compressed
Thank you. Can this be used for a gallery?
Yes. My earlier pdf video did cover gallery.
What can I do with the PDF function to prevent cuts when there are 2 or more pages?
You would need to explore premium 3rd party connectors for that.
This is really useful, but it doesn't print the Chart used in the container, is it possible to print the chart as well 😅
Pdf does not support certain controls. Check documentation for limitations.
I have generated a PDF from a powerapps form. After I hit the PDF icon and create PDF, All the text input entered fields are there in form but all the radio values are empty in the screen. I expect hit the PDF icon and create PDF then the form with values are still presented. Is there any work around on this?
I'm not sure why the control values are coming empty in your case. This is not an issue I have experienced.
I'm unable to copy the YAML code, probably because that option is turned off from my gov tenant. Is there another way I can achieve the same result, perhaps the long way?
I'm not aware of alternative ways
Once more great video Reza!! One question can this generate a pdf beyong of whats visible on screen?Eg a vertical gallery as a report?
It can generate pdf of all components in the screen but it cannot go across screens.
Thanks a million!
Most welcome
We can't create PDF for other screen other than Active screen ?
No one can create that as it is not a supported feature of pdf function
if the data is more than 100 rows then pdf function taking time upto 5 mins to received or download the pdf
Check learn.microsoft.com/en-us/power-platform/power-fx/reference/function-pdf
Hello Reza, Thank you for your very nice explanatory videos. Is it possible to export a PDF containing several screens from the Power Apps application?
Pdf function only supports controls on single screen.
I really like the use of the attachment controls to allow users to download a local document.
I have an existing app that pulls base64 docs from an API. I let uses view the documents via the PDF viewer component. Keen to add the download function as well. Prevents me from having to store documents in SharePoint to allow download functionality.
Great to hear!
@@RezaDorrani I have tried to implement the download via attachment control but getting "Couldn't download - No file" when trying to download the file. I can view the PDF via the PdfViewer Component so I am sure the format of the file "value" is correct. Is there any browser setting that has to be change to allow for the download. Using Edge.
@@kylecullenvdw Did you try downloading the app I shared for members?
@@kylecullenvdw Did you found a solution ? I have the same error!
@@97handball no unfortunately not. I downloaded Reza's App to see if I was missing anything but can't seem to get the download to work off a raw base64 pdf string. Says "Couldn't download - No file" when ever I tried.
Hi Reza, on my form i added a custom data card with "HtmlText", when i generate the PDF i do not get all the context in the "htmltext", is there a limitation on the number of characters in this case?
I have not checked with html text type control. Check pdf function documentation for limitations
How would we support galleries over multiple pages where the items are not cut off across pages?
ExpandContainers feature shown in video does allow multiple pages for pdf but the items will cut off from page to page. Thats a current limitation.
Hi Reza, can we use pdf function in production apps. I can see it is still an experimental feature.
Its been experimental since years.
So Raza have you been using this in production , Is this stable . I am asking this question because I have bad experience with things in preview mode in power automate. Though not sure about the experimental feature
@@MrNavin1987 I have used this specific one for years now without issues. However, at the end of the day, it is an experimental feature.
@@RezaDorrani do you recommend using it in prod ? Because actually this takes very less time to implement than the Power automate approach
@@MrNavin1987 Do I recommend: May be
But with the acceptance of risk that there is an outside chance that something can break.
Great work, how do I replace dataverse for Share point list
The pdf gen technique shown in video works with any form control experience. I have done many videos on SharePoint forms. You can try this out with any of them.
I'm putting together a curriculum using your video as a reference, however I'm using a Canvas component, where I inserted a container and several other components inside the container. Sending the PDF file by email is correct, but when I try to download it, the Canvas component appears blank. I know it's difficult to answer, but where could I be going wrong, could you help me?
I cannot guess where you could be going wrong. I have not experienced any issues with pdf function, hence not sure.
Is it possible to select more than one record and generate a PDF for each record at once?
PDF function can only create pdf of controls on 1 screen.
Hi @Reza, thanks for video. I have small doubt if we have multiple pages in the pdf is that generates in this function?
If you are relating to multiple SCREENS in power app, then No.
Pdf generated can be multiple pages, but it can only do so for controls on a single screen
@RezaDorrani
Thank you So much for tutorial i have created pdf with flow for app previously which is taking lot of time.
I have tried same way and my file has been downloaded in browser but download history shows File was not available for on site can you help
Most welcome!
Video description has link to download entire solution (members only - check description for details)
I would suggest giving that a try.
As for the issue mentioned, I have not experienced it and hence not sure what the cause for it could be.
I will recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com
Using the PDF function, I'm not able to get the text in bold font using normal controls not modern and also I don't have premium licence, i have microsoft365 licence. Is that a limitation? Or can i fix that issue?
Not only bold text even i have faced same issue for svg images (it shows blank when download)
Pdf function is a standard action. There is no licensing needs here.
Check documentation for limitations of pdf function. Not all controls are supported.
@@RezaDorrani Got it. Thanks for your response
can M365 business basic use PDF function?
Pdf function is an standard action. As long as user has license to run power app, then yes
nice, does this work in custom pages ? as print function doesn't work in custom pages or embedded canvas
I have not tried this technique in custom pages
@@RezaDorrani it worked .🥰
Great video Reza... Does it work well with HTML control?
I have not tested with that control. Check documentation of pdf function to see how it works, or even better - give it a try.
Charts not being displayed when i PDF a page in powerapp, kindly tell me the solution why in pdf chart not displayed
Check documentation on pdf function to see what elements are supported.
@ it is powerapps chart builten chart
@@infoktkcreative did you check the documentation?
@@RezaDorrani please give your email address
@infoktkcreative why do you need it?
Good day Sir Reza! How to send the form (apps) through email? That can be edited by an approver. For example, the form needs to be reviewed first before taking next steps.
I do show how to send pdf copy in email. It does not output an editable pdf. Better option is to send notification to approver and make them edit item in form. I have done many videos on that.
Can anyone please help with this?
In a Modern Table, how can we have a different onSelect action for every column? My task is to show a column with a ticket ID that appears as a link. When the user clicks on it, I want to navigate them to another screen.
If this cannot be done in a Modern Table, how can we add a separator in a Classic Table?
Modern table has an onselect function.
There you can check to see the metadata of selected item and accordingly write your logic with if or switch statements.
Great timing, is it safe to assume that this feature will be coming out of preview in the not so distant future?
Its been in preview since 3 years if not more. Im not sure what is the GA date for pdf function.
Wow that's very exciting, thank you
unfortunately I don't have a dataverse, how can I replace this with a sharepoint list
The pdf gen technique shown in video works with any form control experience. I have done many videos on SharePoint forms. You can try this out with any of them.
Hey Reza, thank you for this content.
From my experience the generated pdf from pdf function works different when using live app from just previewing the app.
When pdf is generated from live app everything gets broken and content is not rendered as displayed.
Do you have any solution to that?
Thanks a lot
I have not faced any such issues. The app shown in video has been run as live app and on mobile devices.
@@RezaDorrani hmm, thats weird. May I ask you what version of power app you are currently running?
Whatever is the current latest version.
Reza, why you use JSON function? since it can work without it?
I don't remember why. Probably just to place safe.
does it support multiple pages (for long galleries?)
Yes - ExpandContainers feature shown in video
Hey @reza It does but it cut through the words how to fix this ?
@@rainehardclarke7955 You mean cut through across pages? Page break concept is not an option.
@@RezaDorrani thank you for your swift response how can I avoid this? It’s a major hurdle for me
@@rainehardclarke7955 You would need to explore premium 3rd party pdf connector actions.
Inserting the attachment control requires you to enable legacy formula bar. Which is not recommended to do. If the legacy formula bar is not enabled, your attachment control will fail to provide the attachment. You might get the "File wasn't available on site" error.
The code I showcased (copy pasted) has that info baked in.
@@RezaDorrani I have forced the Name and Value into the items property for the attachment control as well. The error still happens.
@elirdz weird. Did not run into that when building this video.
I did share the video solution with channel members who have not reported any issues until now.
Hey nice video :) Is it possible to add an OnSet action to the attachments control?
There is no onset action.
Hi Reza great tutorial as usual. When i am trying this function i am successfully getting the attachment but its corrupted. I tried with putting the form control and the formcontainer in the formula and made no changes. What might be the reason?
I have not come across this issue, hence not sure.
Video description has details on how to download the app (members only)
I would suggest giving that a try
I followed your video instructions step by step, even copied the entire yaml code word for word into my app, when i click on the file to download it gives an error "file wasn't available on site" what could be the issue? Please Help !!!
I have not experienced the mentioned issue, hence not sure whats the cause for your issue.
You can try downloading the solution shown in video (members only - check video description for details)
after clicking download getting error : file wasn't available on site
I have not experienced the mentioned issue, hence not sure whats the cause for your issue.
You can try downloading the solution shown in video (members only - check video description for details)
Need the PDF with page breaks , currently no way to do it :(
That’s been a limitation ever since the function existed.
Hey Reza great content ,
However once I use a gallery and there is many content in it once the PDF is generated in 2 or more pages it cut through the words how can I fix this ?
Defining Page breaks is not an option with the pdf function.
Thank you so much Reza
Very instructive video. But I have an error generating the PDF file using JSON.
I get this error: The PDF file you are trying to open is damaged.
Most welcome!
Video description has link to download entire solution (members only - check description for details)
I would suggest giving that a try.
As for the issue mentioned, I have not experienced it and hence not sure what the cause for it could be.
I will recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com
I did get the same issue, when I copied the attachment data card from a view form.
When I did it from a edit form it worked! Not sure if it's the same case for you
In my worksheet, there are a lot of images where many of them do not appear when I generate the PDF. What is the solution?
Worksheet?
@@RezaDorrani sorry my container
@XV-x5 I have not experienced any issue with it hence not sure. I suggest posting your issue on forums
community.powerplatform.com/
@@RezaDorrani Thanks
Thank you, i am using the same method. My question is, there is a way to combine multiple containers to one pdf? In my application i have 5 form (in 5 containers), different steps... Can i convert this 5 container in one pdf?.
You can target 1 screen or 1 container. If all your other 5 containers are within a main container then target the main one.
I keep getting the following error when trying to download the document; "Coudn't download - No file"
Video description has link to download entire solution (members only - check description for details)
I would suggest giving that a try.
As for the issue mentioned, I have not experienced it and hence not sure what the cause for it could be.
I will recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com
when i click on the file it says coulndt download the file. why?
Have not experienced the mentioned issue and not sure of the cause for your issue.
You can try downloading the solution shown in video (members only - check video description for details)
@RezaDorrani I found out. It was because it had to be on the same screen
@@ellgee9402 which was as shown in video 😃
Very interesting Raza, I tested it and it works, for one container. But I have more data in another screen, a Container with a DataTable. How can I add it to the same PDF attachment?
You can target a single container only. Idea would be to target a parent container in which you have other child containers.
Hi Reza, Can you make approval using Business Approval kit?
That’s not something I have explored. My knowledge there is limited.