Create a PDF from SharePoint Data using Power Apps and Power Automate flow for free
HTML-код
- Опубликовано: 29 май 2024
- Learn how to build a PDF from your SharePoint data by using Power Apps and Power Automate flow. No premium license, no 3rd party connectors, just simple actions put together smartly. Includes previewing the PDF in Power Apps, dynamic data including images, examples of more complex solutions and even some common errors and questions are covered. If you want to turn your data into PDFs then this is your video. Also, includes a look at the new flow connector in powerapps and the Power Apps v2 flow trigger in Power Automate.
0:00 It Starts
1:04 Demo of PowerApps app for creating a PDF from SharePoint Data
3:08 Connect to our data and view it in a gallery to get started
3:26 Add an HTML Text Control to visualize the HTML for the PDF
3:50 Walk through the process of creating a PDF using Power Apps and Power Automate Flow
5:08 Using w3schools to create HTML www.w3schools.com/html/defaul...
8:50 Using an HTML unordered list in your PDF
11:33 Getting an error when copying and pasting HTML with " instead of '
13:56 Using a Text function in your HTML Body to view a number as currency
15:26 Adding a dynamic image into your HTML for the PDF as base64 img src style width height
16:35 getting the base64 of an image control by using the JSON function
18:32 Creating the Power Automate Flow with the Power Apps v2 trigger to create a PDF using OneDrive for Business Create file and OneDrive for Business Convert File
22:25 Adding the flow to your Power Apps
25:13 Common questions and errors I get about creating a PDF
26:22 A couple of example of complex structures
Power Apps Consulting and training at www.PowerApps911.com - Наука
You're the MAN Shane! I took your advice and watched this. Then I got on chat GPT 4 and uploaded an existing PDF template, asked it to make it into HTML, and a few cleanup prompts later I had a working HTML template complete with place holders for my dynamic client data. AMAZING! now I just need to make the flow to convert and save it. The easy part.
I love this so much! Great job! 🤩
Thanks Shane. I just completed it and had a beer. Cheers to you for making all this possible. What a great hack on that html control. Makes getting the document set correctly a breeze@@ShanesCows
AMAZING!!! I've been struggling for days now trying to find an easy free way to accomplish what you just showed us. Thank you Shane!
Happy to help. Have a great day. 🐶
So, this is the 5th PowerApps911 video that I have watched today. I am focusing on components and making pdfs. They all have been extremely helpful and have saved me time. Thanks!
Wonderful!
Thank you Shane! I have a technical test for a new job I'm applying for, your video helped me a lot. Greetings from Central America.
Good luck on your test! You will do awesome 🤩
Yes! Got it to work! Now I need to see about using one of the third party converters because I really need it to be landscape. Awesome video!
Awesome Pam. I think Cloudmersive or Encodian is the first 2 you should look at. 😎
Hi Shane, if you connect this with a form you can also pull all the attachments through and attach to the email if you pass through the List ID to flow from PowerApps.
Also I create the new file in SharePoint add metadata to the file and then attach a copy of the file to the list item tying it all together with a GUID()
Thanks for another great video. I will definitely try out the image part
Thanks Shane, please continue share your knowleadge. Rgds
Thanks Shane
Another one of those common asks. Glad you covered the limits at the end to. As that trips up a lot of people.
Some times I wonder if one day things like thos would be easier and that certain features supported the same html rules. I can only dream I guess.
That would be amazing! The fact that the HTML rules are so radically different across the platform is exhausting quite frankly. 😵💫
@@ShanesCows email clients is flying of html in email is just as bad. Outlook desktop being one of the worst as it strips out certain tags. Yet the web version doesn't. 😜 Hopefully on the road to getting that fixed.
Great video, Shane! Thank you for this! I wanted to make use of that laying two images on top of each other. However, even though the HTML looks perfectly fine, the images display one after the other in the PDF after the conversion process. Is this also due to the restrictions of the free integretated PDF converter or did you manage to do this with your presented method? Thanks again for your videos, they are very helpful!
Thank you for your new lesson.. that was awesome !!
Hey Shane. Awesome video. Thanks for showing the conversion process with the power apps V2. Quick question. Is there a way to show the file size limit before the user exports to PDF. That way they know if the amount of information they are taking out is too much and they need to cut down their selection?
OMG!!!!! I got it. GPT 4 FTW! Here's what we did - To add items from a collection to your HTML invoice in Power Apps, you need to dynamically generate the HTML table rows for the line items based on the collection. Since Power Apps doesn't natively support looping through collections in a single HTML text control, you will need to generate the HTML for the table rows dynamically using Power Apps functions.
Here's how you can do it:
Prepare Your Collection: Ensure you have a collection with the necessary properties, such as ExpenseName, Description, and Expense.
Generate HTML Table Rows: Use the Concat function to concatenate the HTML for each item in the collection. This will dynamically generate the table rows.
You might enjoy this video where I have some concat chaos fun for html :) ruclips.net/video/AnERfGIE8gw/видео.html
Swweeeeet! TY!!!! PS. I am very close in prucring funds for your classes. ;)Chat soon I guess.@@ShanesCows
Great video, this might just solve two issues/requirements I currently have with one apps.
I love Power Apps. I hope back to Power Apps sometime. Greetings from Chile 🇨🇱
Have a great day José! 🐶
Hi Shane, great video, say you wanted to select 3 of the Employees from the Gallery and print their details in an ordered or unordered list how do you do that? add them to a collection then put the collection info into the HTML code for HTMLtext box? I can't seem to get the syntax right!!
Good job pretty much anticipating all of the questions I was going to ask: first off if there's a way to do it without One Drive for Business and instead creating the html file in a Sharepoint Library and then converting it to PDF. Second was the landscape question since I want to ultimately create a shipping label for our Logistics Department. It's been a year since this video so maybe there's a more updated solution, but thanks for the video!
Shane - you always bring the gravy!
Happy to help. Have a great day. 🐶
Hello Shane! Thanks for putting so much information for us about PowerApps. I wanted to ask bout using SharePointIntegration instead of Gallery1.Selected. I have tried a way to use the SharePoint integration to use dynamic information based on selected itmes but cant get it to work :(
Thanks Shane, you're the master!
Appreciate that :)
Hello Shane, if you have a child/repeating table ... can I save the html data in a parent field to be used later in a created pdf or re-opening in power apps? I saw a example of a Nintex Form saving the repeating table info as XML in a sharepoint parent list 'more lines field'.
Shane, Thanks for the useful videos. Request you to share a video about the Indian Rupee comma format
Hey Shane. Great video! You do a great job of breaking it down and being entertaining. Is it possible to select multiple Gallery fields? In your example, could you select you and Chewy?
William, Yes! You will need to adapt the concept in this video. ruclips.net/video/0xZ4fMJbLvk/видео.html
Another awesome video, thanks! Do you have a video on how to make the file name dynamic?
Hola! Muchas gracias por sus videos!!! Le saludo desde Guatemala! Con una consulta, cómo se puede adjuntar varios archivos con html? Desde ya muchas gracias
In this video I talk about sending emails including attachments. Does that help? ruclips.net/video/vpYkOccwn4Y/видео.html
If you are trying to attach files to the PDF then I do not know how to do that. Sorry.
thank you for your help that is exactly what I'm looking for ..but I have a question how do you link the icon of the pdf in the items to the html page that you want to generate.. so what I meant is how it generate the exact item data I need!!
Thank you Shane. In using the OneDrive- is it always the users OneDrive or is it always my OneDrive that the user is accessing when they access that flow? I’m just curious how that works because I would have to have a folder that everyone in my organization had the same named folder for the flow to work if it was accessing their OneDrive.
The user is always using THEIR OneDrive. If the folder you specify in the flow doesn't exist the create file process will automatically create it for them. 😎
@@ShanesCows thank you! Saves me from having to test ot out with someone.
This is great. Is it possible to use powerapps and automate to fill in existing pdf templates with user data that are in a SharePoint?
Great video, Shane! I have followed this step by step and having issues with the images coming through on the PDF. The text and all come through just fine from PowerApps into HTML, and then into PDF....all except the images. I was super excited to try this short cut. Any troubleshooting ideas? BTW, I can see the images when I open the HTML file.
same here
Same here.
it worked for me when I've removed the quotes from html, it looks strange but the quotes are generated by Shanes JSON so the code looks like:
Awesome Video Shane! When I move a a solution from Dev Environment to Test Environment, the same flow also moves to the Test Environment but the print button doesnt work. Since the Test Environment is a managed solution, if I edit it, it creates an unmanned layer. Have you noticed it doesnt work in a different Environment? Do you know how I can move it to another environment and make the print flow feature work? Thank you!
Hmmm... I haven't ran into that. I don't have an answer but I will try to think about that next time I am playing with Solutions.
Hey Shane! Thanks for the video! Is it possible to do this just through Power Automate? Creating a flow specifically pulling images and data from Sharepoint and creating a PDF for each row item in Sharepoint?
Hi mate. Have u done that? I am with the same situation...
Hi @ShaneYoung, I want to get the export of all the gallery Items and including their attachments of those gallery records and create a PDF just like you having all the records appended.
I am confused any idea?
Great video Shane. Have you played around with the $-string function in the newer authoring version builds? Seems to be some lack of consensus on whether it will work for HTML Text controls or not, but could make writing this dynamic code a little less painful.
$-string works fine with html text controls as well, since it just needs a string as the result, you can concatinate such string the way you like. ;)
With(
{
MyTable: [
"First is ❤";
"Second is 🚀";
"Third is a 🐢";
"Last but one is 🥂";
"Finally 🍺"
]
};
$"
{First(MyTable).Value}
{Index(MyTable;2).Value}
{Index(MyTable;3).Value}
{Index(MyTable;CountRows(MyTable)-1).Value}
{Last(MyTable).Value}"
)
Thanks! I haven't kicked the tires on $-string stuff yet. I try to avoid features that aren't main stream yet, now that I think everyone has it I should dive in and see what happens.
Very fun Kristóf. I love With so much. 😍
Hi Shane, I really appreciate you putting this content out on RUclips, I've used many of your videos for inspiration. I've looked high and low and cannot find out how to control the page size of the PDF when going thru this process, no matter what I do in the HTML. Is there documentation out there? Is that something you address in any other video?
The only luck I have had is inserting Page Breaks. ruclips.net/video/YkSNg7B_rps/видео.html All of the other page manipulation stuff doesn't seem to work unless you use one of the 3rd party tools.
Hi . . . I'm looking to use the HTML box, but without the Gallery. I've been able to display fields correctly with just the DataCardValue.Text working. However, I can't get a people picker field to display correctly. I've tried many things like DataCardValue.DisplayName, but nothing is working. I'm surprised it isn't the same as with the Gallery syntax, like DataCardValue.'People Field'.DisplayName or something similar. Any insight is appreciated. Thank you for all your great videos.
Thank you for the video. Is it possible to add a signature block that allows using government smart ID card (PIV)? Can you show example of it?
Not that I know of. Sorry
Hi @shane - how would you do this if you wanted to produce a report for each employee in one click?
Awesome video Shane. Can I ask if we could use Sharepoint document library to store created PDF file instead of using OneDrive? If we could use Sharepoint document library then I do not need to create the same folder location in Onedrive for all application users.
Yes, the Create File portion at the end (3rd step) can be created any where you want, like a SharePoint document library.
This is a great video. How would you dynamically compute the file name and also how would you pull other information from the gallery over so you can use it it in the rest of the flow, such as email addresses that you have within the gallery. thanks.
How can I also do this?
This is the bit I am struggling with- help us out Shane!
Hey Shane. Great video! I just wanted to ask what I should do if I would want to put in multiple photos... I tried with a collection, but the HTML-Code won't work then... Do you have any ideas?
Hi Raoul! i used create a column in Sharepoint list named "Image1" and repeat for 2+ images (Image2), so in the gallery first add a image control w/ name of Imagen2, next use botton > like Set(varImagen;JSON(NaneImage.Image;JSONFormat.IncludeBinaryData));;Set(varImagen2;JSON(NameImage.Image;JSONFormat.IncludeBinaryData)) ,, and add in HtmlText a next row like
hope help u
Hi Shane,I watched many of your video and they helped me lot❤, but we find out one problem for the PDF generated , the line will be separated if the PDF is over one page. One line will be separated into two part , half of them in the first page , another half in another page. How this can be resolved? We also tried find out some resolution but failed.
Hi Shane, thanks very much for your content. Could you make a video showing how generate a PDF file from a SharePoint page? Thanks again
Hey Shane or other knowledgeable people. Which step of the conversion is the limiting factor for 2MB?
So, I'm assuming if you loop through a list with many entries since it's html it will span multiple pages? Now if we could get external style sheets to work that would be awesome.
Yup, this video talks about the looping. ruclips.net/video/bfXV_GXc_JM/видео.html
@@ShanesCows Is there any fix to pagination? I often have a file that has a table that goes into a second page. The last item on the first page gets cut in the middle because the conversion doesn't recognize it's crossing pages.
Hello Shane! I would like to ask how can I create an HTML file using PowerAppsV2 trigger. I have defined the parameters but when the flow begins it doesn´t recognizes the HTML file parameter.
The reason I need PowerAppsV2 trigger is because I need to ask for more variables.
Appreciate your help!
Hi Shane, Nice video clears basic concept. But would you have or can you make a video similar to this but instead of using HTML codes to create pdf file it should call a flow which fills up my predesigned word or pdf file.
Maverick it is on my far out list of videos. I have never had a project where I have had to populate a project so I don't have any first hand experience. My team has done it but I haven't. 😐
Hey Shame, have you considered using the word online connector? I used to generate HTML document and just moved on from it
Hi Shane, Your video's are so, so, helpful! I'm stuck on one item though. Trying to print item that has multiple selected items in one field from drop down choices. When I try to enter .value after the code, it keeps erroring out. How can I write this to display all the selected choices? " & Gallery1.Selected.ViolenceTypes.Value & " is erroring out. Can you offer a solution to capture the multiple choice answers for this field? Thanks.
I found an answer that worked. " &Concat(Gallery1.Selected.ViolenceTypes.Value, Value &", ")& "
Good Job Linda. i was going to answer Concat. :) Glad you found it.
As always, you have the answers! One question, can you share how we can bring the name of the doc generated in Powerapps over as the filename (that will obviously be dynamic). I've tried a gazillion different ways and am reaching the crazy side of efforts...
In this really old video I show how to respond from flow. Different topic but same concept. I will put responding to Power Apps on my to do list. :) ruclips.net/video/ovLIwnj6QjU/видео.html
Hi Shane, Great Video...big fan from India....
I have two issues where i need your help:
1. How to do for SharePoint list with image attachments (or multiple images)
2. I have copied exactly how you did, but my flow error is occurring in the last two steps of the flow, The flow test is successful but when i run the PowerApp the flow is getting failed..
Thanks in Advance
Have you solved your problem???
No bro....if you can solve...please ping me
Hello Shane; thanks for this awesome video!!! There is any way to generate powerpoint from template in sharepoint list or lib with power automate; whitout premium?
I don't know. I have never tried. I don't have any good ideas off the top of my head. Sorry.
Does that method support CSS ? It would be great to have well formatted pdfs
Inline Styles for the most part yes. What you can and cannot do with styling just takes a lot of trial and error, but yes, I have made some very pretty ones along the way.
Hallo Shane. Very nice tutorial. Is there also a way, to make a Report from a filtered Gallery. One Or two lines as a formated form in html to bring it in the Flow to Generate a Report?
Stefan did you see this video where I dive into Table Data? ruclips.net/video/bfXV_GXc_JM/видео.html You can apply a Filter inside the Concat and get what you want. :)
Hi Shane, long time no speak :-) Hope you are well. As always thank you for your excellent videos. I am working on something to produce a pdf report based on powerapps data and am wanting to add the company logo to the top. I've added the logo to a variable using the JSON mentioned in this video (Set(VarCustomerlogo, JSON(LookUp(MyDataSource, Title = "MyCompanyName",Company_Logo), JSONFormat.IncludeBinaryData))) and have added the HTML () but my PDF just shows the border of a box with a red cross at the top. I must be doing something wrong but have gone back over your video and can't spot the error - any ideas?
James try this video. You need dthe base64 and I don't think the lookup is getting what you think it is. :) ruclips.net/video/bIne3DD3HAg/видео.html
Hai Shane, in this episode I'm very interesting in getting image to PDF. How about, there is multiple images. How can i implement using JSON Function?
ruclips.net/video/bIne3DD3HAg/видео.html You can have multiple small photos, handle each one individually like the video shows.
Hi Shane. I am very grateful for your videos. You're my hero. Just one question: how do I make the email go to an account that is in the gallery?
See if this video helps. PowerApps Send email - Everything you need to know about sending mail via Outlook and Power Apps
ruclips.net/video/vpYkOccwn4Y/видео.html I show getting emails from Dropdown which is similar idea.
Thanks so much, Shane. Best regards from España.
Hi ALL, quick question, I performed the Flow as outlined in the video, when I ran the flow it creates the HTML File ( I can open and see it in a browser) , but won't convert to PDF,... this is the error
"ERROR Details : Conversion of this file to PDF is not supported. (Sandbox_HtmlTransform_InvalidOperation / An exception occurred while executing within the Sandbox) "
Hi, can i know how to send email dynamically based on manager name that input in powerapps?
Hello Shane, have you a solution without premium connectors or third party connectors with subs, with HTTP request to SP for example, to merge 2 PDFs ?
I don't, the only way I know to merge is with premium. SOrry
@@ShanesCows Ok thank you but my client doesnot take premium licensing. Otherwise, is it possible to create a Page break in HTML?
Hi Shane, great video, if it's possible I have a question for you, is it possible to rename the PDF file name dynamically?, for example using the employee's last name or another gallery field? tks in advance
Yes, Gino. The filename portion that you send to flow is just text. It can be anythign you want. Like: User().FullName & " PDF file.PDF"
@@ShanesCows Any chance you could explain this a little more?
I think the question is in the flow part can the file name be dynamic? You could put a get items Sharepoint step before this and add ‘Created by’ to the name and ‘Created’ to that box
Hi Shane, great video as usual. In my HTML text I'm attempting to pull data from multiple galleries which are linked to multiple SharePoint lists. In SharePoint I have a primary list using its ID as a primary key and foreign key to my other lists. In my HTML text when I filter to get multiple items where my primary key is foreign then I get Invalid number of arguments: received 1, expecting 2 or more.... here is my filter: Filter(Transport.travel_request_id = selectedID), where Transport is my list and travel_request_id is my foreign key and selectedID is a variable set to my primary key. Please help, thank you.
You need a comma after Transport in your filter formula
@@ShanesCows the comma didn't work as well, so I ended filtering into a collection then reading from there. Thank for coming back to me much appreciated.
Great content, can you please kindly make a video tutorial with detailed steps on how to make a workflow in Powerapps for the following thing suppose there is a work order form for a company with several fields like Billing, E-mail IDs, etc etc and the workflow should be created in such a way that the work order form can be edited, updated accordingly by some specific concerned persons in the company whose email ID will be linked in the workflow in Powerapps, Please kindly have a look into the request, also wishing you and your family a very happy Easter from Kolkata, West Bengal, India, God bless all
Happy Easter to you also. 🐶 You will need a Power Apps app to facilitate most of this. I would start there and only incorporate flow if necessary. Check out this for an example. ruclips.net/video/49O284deOAI/видео.html
Is it possible in Powerapps, to have a button that takes a screen shot of the final screen in an app, and make it a pdf to store in a OneDrive folder?
Not really. The one thing you could look at is maybe print to pdf? ruclips.net/video/JMhVtII5hQs/видео.html
Hi there Shane
Your videos are always insightful and great to watch
Hope you could help with this one with there being no information about this.
I am trying to grab a SharePoint PDF attachment convert it to code 64 in order to send it in a response via HTTP
Think you could figure this one out?
If you use the flow action Get File Content for the SharePoint file does that give you the base64? I am 99% sure it does. :)
@@ShanesCows It did not. It said "Click to Download" and was a long JSON. but took a different approach. So when the file is first uploaded I convert PDF to code64 and store it in a column. When the flow is called I read it out of that column. It reduces the response time as well. But having other issues now with trying to get nested field layers down and struggling a bit lol - but I am sure I will eventually figure it out. Would have been cool to jump on a Teams call with you, but I know you a busy man.
Thanx for the reply man appreciate it
Nice video, can you have the pdf in landscape instead of portrait, this can be helpful for wide range of columns that span across an invoice.
I talk about this at the end. You have to use a 3rd party tool to do that.
One last thing. If anyone has issues with the PDF conversion... A great workaround is to add a print button that goes invisible when clicked so it does not show on the printed doc. Then just print to PDF and save to sharepoint. I know that's not automated etc, but a friend of mine brought it up as an idea when I was getting frustrated with my html formatting. Luckily GPT4 resolved that for me, but it worth noting that print to PDF will still get you a PDF doc with dynamic properties from your app. Which is the goal, right?
I like it
Now my boss is so excited she wants some multipage docs to also be populated like the one page invoice I just made. I don't think this method works for a multipage doc. Or am I wrong there? I see some things online from Andrew Hess about a free way to populate a word doc using content types. I might give that a try. Do you have any videos on that as well? Yours are better hehehe!@@ShanesCows
Hello Shane, I would like to known if is possible that 1 combobox search in two shareponit lists.
Look in Create File 2, Content File and be sure you introduce Content File from the previous step.
Can the html in powerapps also be used where powerapps has a multi choice selection. I cannot seem to get rid of the error generated. e.g Location has 5 location to select from in an inspection app, but when writing the html code in powerapps all i get is an error
You need to use concat Concat(combobox1.SelectedItems, Value, “;”) that would write them semicolon separated.
Dear Shane - I learned a lot from your videos and made good progress. Thank you!
But today I am really fcked up.. My App and flows work almost perfectly but obviously there is no stock solution to convert files >2MB. I felt like beeing on the last meters to my goal but now it feels like I am lightyears apart from that....
Do you have any good Idea of fow I can use a report in HTML format with pictures in it into a PDF? Thanks for your support! Felix
Felix you will have to go with one of the 3rd party tools. Either Encodian or Cloudmersive would be my recommendation. Sorry, wish I had better news.
Mine will create 2 files the HMTL and the PDF file but for some reason the PDF is blank. Any idea what causes this? Is there a step at the end that can either open the file location or the good file to print without going the long route?
Look at your html. You have a bad or missing tag most likely
Great video! However, when I try styling HTML such as aligning some text and giving text background color I can see it in Power Apps. But somehow that part doens't come through in the PDF. Am I missing something?
The conversion engine uses different HTML rules. Try inline styles. It is all possible just have to keep trying different ways till you find the one that works. 😐
Hi Shane great video again. I am using choices in my form. How do I get that value to appear?
Resolved it, just used data card value instead of gallery selected. 👍
Glad you got it Allan
Hi Shane,
Thank you for this video,
I created the app, and the flow.
But the thing is, my data is not coming in pdf, in html file all are working as expected.
Could you please help here
You have a typo in your HTML. Look at it closely. You are missing a closing tag or something similar.
@@ShanesCows Thank you so much😃😃😃
I missed one double quotes, now it worked 🎉
Is the file comvert still only a 2mb limit?
This is (almost) exactly what I've been looking for. The only thing you didn't cover was dynamically naming the PDF file. For example, how would you include the employee's name as part of the PDF file name so that you would have unique file names for each PDF?
i used Get items from the sharepoint list in power automate to assign the value in to the file name, then apply to each before make file 2.
Excellent video!! Thank you!. How would you change the hello.html/hello.pdf to save it under the name of the record. IE in this example under Greg's name ?
Thank you.
So I need about 1000 images to create a pdf report. I need to use base64 but the data column in SharePoint shows the list down to a crawl. How do get around that?
The free PDF conversion process shown here has a file size limit of about 2 MB total 🫤 So no way you are getting a 1000 images in there. Probably not even 10. If you need that massive of a PDF you will need to look at on of the 3rd party tools, I think I mention at the end of the video.
@@ShanesCows yeah. I’ve scratched my head on that limitation. It’s for building a punch list app with photos. I’ve been down on my luck with finding an alternative solution, to the point where 7 months of development, 5 of those was dealing with this pdf issue. What is your recommendation? I’ve thought of getting a hosting site just for images, or sadly scrapping the whole thing and redoing it as a browser version. ::Shrug::
Good video and great explanation.
But tell me one thing that how can I download this pdf file directly in my local system from powerapps
I have never tried the Download function but worth a go docs.microsoft.com/en-us/power-platform/power-fx/reference/function-download
What if I want to include an image that I don't want the user to see until the image is generated? Just create an image in the app and make the image visible property to false?
That should be fine. :) Or because you will have the base64 you don't have to display it. Remember base64 is the key to images in PDFs.
Is it possible to just take a file, convert it and save it to SP. I'm getting "Conversion of this file to PDF is not supported." It seems they broke Convert File in 2018 and no solution seems to work. I don't wanna go to power apps, convert to html, save the file, convert it again to pdf etc
What type of file are you trying to convert? Some of the 3rd party conversion tools support more file types.
@@ShanesCows Thanks for the reply Shane, mainly Excel files. My tests were done with xlsx.
PS they don't want to get my coworker another paid license for the N other premium actions available since they already paid for his Power Automate Plan 2
I can't seem to be able to avoid using OneDrive. In my Teams environment some of the users have guest status and have access to Sharepoint but not to OneDrive. Once I connect the flow using OneDrive these users loose access to the created app. Is there any way to get PDF to a Sharepoint folder without having to use OneDrive??
There is no convert action in SharePoint. 😑 Free pdf is only coming from OneDrive.
@@ShanesCows Any way to somehow export data not fitting on the screen with the new experimental "PDF" function in Power FX?
@@ShanesCows Ok, I just checked and the new PDF function covers all the PDF-making needs I had! :D No Flow modules required. You just point to a container or gallery and get a PDF. It also supports scrollable galleries or containers that go beyond the extents of the page. Finally!
Hi ,
Is It possible to save a record of Model driven app with entire data in it as PDF ? IF yes how to save that record as PDF in Model driven app. Reply is much appreciated.
Thank you.
Thank you soo much Shane for this incredible video!❤🔥 This helped me solve my work of converting customer form to pdf document.
Shane now I want to save the pdf by the customer name. For example CustomerName.pdf. How do you dynamically grab the customer name from the customer text field in powerapps and populate it in the place of hello.pdf.
Can you please make a video on it? It will be highly appreciated! or guide me to the right Microsoft documentation🙂
Thanks again!!
Your videos are super helpful as always!!🙂
Anyone have an issue of random instances where the pdf has "show your html text here" it seems that power app sometimes fails to send flow information.
That has never happened to me but I have heard of it for others. 😑 Usually the app was too busy to keep up or a hidden control kind of thing. Not sure but you are not alone.
Dear Shane
Can you please add a video on how to add a footer to pdf document generated in this video , I did generate a pdf with a logo but failed to add fixed position footer to my doc . Can you please help me with this.
Not easy. Get some ideas of controlling the page with this video. QTT - Power Automate PDF Page Breaks
ruclips.net/video/YkSNg7B_rps/видео.html
Thanks for Youth reply , much appreciated
Conversion of this file to PDF is not supported. (Sandbox_HtmlTransform_InvalidOperation / An exception occurred while executing within the Sandbox) :(
I have never seen that error. I would look at your HTML. It has to be well structured or the process gets mad.
It doesn't allow flexbox it looks like :(@@ShanesCows
te amo ♥ gracias
😊
how many pdf can i save in a Sharepoint list?
A lot. 😎
i need to save the pdf from all the company in the next 3 years it can be possible?
can you explain about how to create pdf without using one drive or any third-party participation in power automate
Can i save the files in a sql list? 👉👈
You can but I don’t recommend it. Saving files to SharePoint doc library tends to work best.
Thank you so much Shane! you're so great!
Is there a version of this that doesn't explain HTML?
Sorry, you need the HTML skills to make PDFs so I taught them.
HTML tables?!?
if we are already dabbling into HTML & need some advanced techniques like specifying image position => probably better off copy/pasting some CSS styling to go into the HTML element to then use grid view
I find the conversion process doesn't like a lot of fancy stuff. I find I have to use HTML tables to get my positioning. Have you found other ways? I would love to see it. 😎
@@ShanesCows no i watched the video in prep for a work project
I wont be converting PDFs for a few more weeks
it just stood out to me that some other content creator's i've learned a ton from (Kevin Powell to name 1) seem to recommend strongly away from "the olden days" of HTML tables
but I also wondered if this was a case of u doing some protective hand-waving & not guiding us down a path of failure if the free converting is generally finicky
This is the exact methods I use. You get s 3mb sandbox error though which is unavoidable
Cheers Shane for another great video. Just wanted to know if there was a method to include multiple images, as opposed to just a single. I've got a Sharepoint gallery, and need to attach up to 20 photos to the required PDF, from a single record in said gallery. Would the method be similar to your video: ruclips.net/video/K74UFYgrKB4/видео.html Thanks
Yes, you can have multiple images. You need to create an tag for each one but the pattern is the same. Now be careful, the OneDrive conversion only works for total HTML size of less than 2 MB. So depending on your image sizes you may run into challenges and need to switch to one of the 3rd party tools to get what you are looking for. Good luck.
Thanks @@ShanesCows! Although, I may be out of luck on that front then. I'm anticipating the images being of quite high resolution. Do you know of any methods in which you can compress images, using Dataverse connectors via a flow?
@@williamm8460 There are 3rd party connectors that will do that but they are also premium.
Writing the html in Power Apps, when you are calling a variable from the gallery that is multi choice, the “& Gallery.Selected.’Variable’ &” does not work, how do I solve this?
A multichoice field is a Table. So you would need to Concat that table to get the value out. I don't have a dedicated video for it but I show it in a few. THis one for example ruclips.net/video/AvGRlruMVnI/видео.html
Thanks very much!