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
  • НаукаНаука

Комментарии • 193

  • @mdizzle1369
    @mdizzle1369 12 дней назад +1

    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.

    • @ShanesCows
      @ShanesCows  12 дней назад

      I love this so much! Great job! 🤩

    • @mdizzle1369
      @mdizzle1369 11 дней назад

      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

  • @SharleneLe
    @SharleneLe Год назад +2

    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!

    • @ShanesCows
      @ShanesCows  Год назад

      Happy to help. Have a great day. 🐶

  • @dacsch97
    @dacsch97 Год назад +2

    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!

  • @heylergalvez8815
    @heylergalvez8815 Год назад +1

    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.

    • @ShanesCows
      @ShanesCows  Год назад

      Good luck on your test! You will do awesome 🤩

  • @pamsmith1635
    @pamsmith1635 Год назад +1

    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!

    • @ShanesCows
      @ShanesCows  Год назад

      Awesome Pam. I think Cloudmersive or Encodian is the first 2 you should look at. 😎

  • @matthewv4170
    @matthewv4170 2 года назад

    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()

  • @oluwatobiyusuf
    @oluwatobiyusuf 2 года назад

    Thanks for another great video. I will definitely try out the image part

  • @jesugiovanny
    @jesugiovanny 2 года назад

    Thanks Shane, please continue share your knowleadge. Rgds

  • @Worrelpa
    @Worrelpa 2 года назад +1

    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.

    • @ShanesCows
      @ShanesCows  2 года назад +1

      That would be amazing! The fact that the HTML rules are so radically different across the platform is exhausting quite frankly. 😵‍💫

    • @Worrelpa
      @Worrelpa 2 года назад

      @@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.

  • @PieceFairy
    @PieceFairy Год назад

    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!

  • @putriayunurbayti1393
    @putriayunurbayti1393 2 года назад

    Thank you for your new lesson.. that was awesome !!

  • @dankirchner4460
    @dankirchner4460 2 года назад

    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?

  • @mdizzle1369
    @mdizzle1369 12 дней назад +1

    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.

    • @ShanesCows
      @ShanesCows  10 дней назад

      You might enjoy this video where I have some concat chaos fun for html :) ruclips.net/video/AnERfGIE8gw/видео.html

    • @mdizzle1369
      @mdizzle1369 9 дней назад

      Swweeeeet! TY!!!! PS. I am very close in prucring funds for your classes. ;)Chat soon I guess.@@ShanesCows

  • @lukewolton1494
    @lukewolton1494 2 года назад

    Great video, this might just solve two issues/requirements I currently have with one apps.

  • @pepex90
    @pepex90 2 года назад +1

    I love Power Apps. I hope back to Power Apps sometime. Greetings from Chile 🇨🇱

    • @ShanesCows
      @ShanesCows  2 года назад +1

      Have a great day José! 🐶

  • @mkavo
    @mkavo Год назад

    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!!

  • @EdSalinas-97
    @EdSalinas-97 3 месяца назад

    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!

  • @LandscapeInMotion
    @LandscapeInMotion 2 года назад +1

    Shane - you always bring the gravy!

    • @ShanesCows
      @ShanesCows  2 года назад

      Happy to help. Have a great day. 🐶

  • @fernandoruelasv6836
    @fernandoruelasv6836 2 года назад

    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 :(

  • @yacobmusic
    @yacobmusic 8 месяцев назад +1

    Thanks Shane, you're the master!

    • @ShanesCows
      @ShanesCows  8 месяцев назад +1

      Appreciate that :)

  • @videobewerker111
    @videobewerker111 3 месяца назад

    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'.

  • @vinosuresh6678
    @vinosuresh6678 2 года назад

    Shane, Thanks for the useful videos. Request you to share a video about the Indian Rupee comma format

  • @williambrummett2130
    @williambrummett2130 10 месяцев назад +1

    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?

    • @ShanesCows
      @ShanesCows  10 месяцев назад

      William, Yes! You will need to adapt the concept in this video. ruclips.net/video/0xZ4fMJbLvk/видео.html

  • @jonathanlucas9821
    @jonathanlucas9821 Год назад

    Another awesome video, thanks! Do you have a video on how to make the file name dynamic?

  • @jorgeluisleonaceituno5503
    @jorgeluisleonaceituno5503 Год назад +2

    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

    • @ShanesCows
      @ShanesCows  Год назад

      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.

  • @DA-xv6mi
    @DA-xv6mi Год назад

    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!!

  • @JenMayB
    @JenMayB Год назад +1

    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.

    • @ShanesCows
      @ShanesCows  Год назад +1

      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. 😎

    • @JenMayB
      @JenMayB Год назад

      @@ShanesCows thank you! Saves me from having to test ot out with someone.

  • @muhammedirshaad
    @muhammedirshaad Год назад +1

    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?

  • @lindakeefe6920
    @lindakeefe6920 2 года назад +3

    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.

    • @user-im4ix2qf7e
      @user-im4ix2qf7e Год назад

      same here

    • @Bibliotekr
      @Bibliotekr Год назад

      Same here.

    • @elseb
      @elseb Год назад +2

      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:

  • @jmanbaluch008
    @jmanbaluch008 2 года назад +2

    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!

    • @ShanesCows
      @ShanesCows  2 года назад +1

      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.

  • @gstredny
    @gstredny Год назад +2

    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?

    • @vedvoyager
      @vedvoyager 10 месяцев назад

      Hi mate. Have u done that? I am with the same situation...

  • @mustafahussainmohsin320
    @mustafahussainmohsin320 Год назад

    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?

  • @angrybatvoice
    @angrybatvoice 2 года назад +1

    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.

    •  2 года назад +1

      $-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}"
      )

    • @ShanesCows
      @ShanesCows  2 года назад +1

      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.

    • @ShanesCows
      @ShanesCows  2 года назад +2

      Very fun Kristóf. I love With so much. 😍

  • @WiserGuy
    @WiserGuy 6 месяцев назад +1

    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?

    • @ShanesCows
      @ShanesCows  6 месяцев назад

      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.

  • @Justinline
    @Justinline Год назад

    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.

  • @fanzfanzilla
    @fanzfanzilla 10 месяцев назад +1

    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?

    • @ShanesCows
      @ShanesCows  10 месяцев назад

      Not that I know of. Sorry

  • @martinwhite2369
    @martinwhite2369 3 месяца назад

    Hi @shane - how would you do this if you wanted to produce a report for each employee in one click?

  • @baoyuanluo8142
    @baoyuanluo8142 2 года назад +1

    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.

    • @ShanesCows
      @ShanesCows  2 года назад +1

      Yes, the Create File portion at the end (3rd step) can be created any where you want, like a SharePoint document library.

  • @nicholaiconstanti5175
    @nicholaiconstanti5175 2 года назад +3

    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.

    • @petovie
      @petovie 3 месяца назад

      How can I also do this?

    • @steffturton9567
      @steffturton9567 Месяц назад

      This is the bit I am struggling with- help us out Shane!

  • @raouleliasmiraglia148
    @raouleliasmiraglia148 2 года назад

    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?

    • @donjuaquin
      @donjuaquin Год назад

      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

  • @mavisqing9444
    @mavisqing9444 Год назад

    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.

  • @angelogarotti
    @angelogarotti 11 месяцев назад

    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

  • @NWulff86
    @NWulff86 2 года назад

    Hey Shane or other knowledgeable people. Which step of the conversion is the limiting factor for 2MB?

  • @GregCo72
    @GregCo72 2 года назад +1

    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.

    • @ShanesCows
      @ShanesCows  2 года назад

      Yup, this video talks about the looping. ruclips.net/video/bfXV_GXc_JM/видео.html

    • @autofxusa9965
      @autofxusa9965 2 года назад +1

      @@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.

  • @benjaminlahsen6721
    @benjaminlahsen6721 Год назад

    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!

  • @Maverick-uw1nc
    @Maverick-uw1nc Год назад +2

    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.

    • @ShanesCows
      @ShanesCows  Год назад +1

      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. 😐

  • @Danielx64
    @Danielx64 2 года назад

    Hey Shame, have you considered using the word online connector? I used to generate HTML document and just moved on from it

  • @LindaJohnson-vy1xg
    @LindaJohnson-vy1xg 7 месяцев назад

    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.

    • @LindaJohnson-vy1xg
      @LindaJohnson-vy1xg 7 месяцев назад +1

      I found an answer that worked. " &Concat(Gallery1.Selected.ViolenceTypes.Value, Value &", ")& "

    • @ShanesCows
      @ShanesCows  7 месяцев назад

      Good Job Linda. i was going to answer Concat. :) Glad you found it.

  • @julessaundersonco6790
    @julessaundersonco6790 7 месяцев назад +1

    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...

    • @ShanesCows
      @ShanesCows  7 месяцев назад

      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

  • @vaibhavnageshwaran3428
    @vaibhavnageshwaran3428 Год назад +2

    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

  • @soulaimanhatim7838
    @soulaimanhatim7838 Год назад +1

    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?

    • @ShanesCows
      @ShanesCows  Год назад +1

      I don't know. I have never tried. I don't have any good ideas off the top of my head. Sorry.

  • @arielamine5662
    @arielamine5662 Год назад +2

    Does that method support CSS ? It would be great to have well formatted pdfs

    • @ShanesCows
      @ShanesCows  Год назад +1

      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.

  • @stefanzervos7412
    @stefanzervos7412 2 года назад +1

    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?

    • @ShanesCows
      @ShanesCows  2 года назад +1

      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. :)

  • @jameslbetteridge
    @jameslbetteridge 6 месяцев назад +1

    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?

    • @ShanesCows
      @ShanesCows  6 месяцев назад +1

      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

  • @aliahbasri7837
    @aliahbasri7837 6 месяцев назад +1

    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?

    • @ShanesCows
      @ShanesCows  6 месяцев назад

      ruclips.net/video/bIne3DD3HAg/видео.html You can have multiple small photos, handle each one individually like the video shows.

  • @antoniomartinezjurado1223
    @antoniomartinezjurado1223 Год назад +1

    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?

    • @ShanesCows
      @ShanesCows  Год назад +1

      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.

    • @antoniomartinezjurado1223
      @antoniomartinezjurado1223 Год назад

      Thanks so much, Shane. Best regards from España.

  • @Randyr1963
    @Randyr1963 2 года назад

    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) "

  • @nadyranakylla4426
    @nadyranakylla4426 9 месяцев назад

    Hi, can i know how to send email dynamically based on manager name that input in powerapps?

  • @Escillo
    @Escillo Год назад +1

    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 ?

    • @ShanesCows
      @ShanesCows  Год назад

      I don't, the only way I know to merge is with premium. SOrry

    • @Escillo
      @Escillo Год назад

      @@ShanesCows Ok thank you but my client doesnot take premium licensing. Otherwise, is it possible to create a Page break in HTML?

  • @ginoginetto9389
    @ginoginetto9389 Год назад +1

    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

    • @ShanesCows
      @ShanesCows  Год назад

      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"

    • @dpd5097
      @dpd5097 Год назад

      @@ShanesCows Any chance you could explain this a little more?

    • @johnbrennan8442
      @johnbrennan8442 Год назад

      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

  • @mtamitolanga
    @mtamitolanga Год назад +1

    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.

    • @ShanesCows
      @ShanesCows  Год назад +1

      You need a comma after Transport in your filter formula

    • @mtamitolanga
      @mtamitolanga Год назад

      @@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.

  • @supriyochatterjee4095
    @supriyochatterjee4095 2 года назад +1

    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

    • @ShanesCows
      @ShanesCows  2 года назад +1

      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

  • @ealexander2488
    @ealexander2488 Год назад +1

    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?

    • @ShanesCows
      @ShanesCows  Год назад

      Not really. The one thing you could look at is maybe print to pdf? ruclips.net/video/JMhVtII5hQs/видео.html

  • @JustGetYoursJust4Fun
    @JustGetYoursJust4Fun Год назад +1

    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?

    • @ShanesCows
      @ShanesCows  Год назад

      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. :)

    • @JustGetYoursJust4Fun
      @JustGetYoursJust4Fun Год назад

      @@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

  • @utoroprincewill7808
    @utoroprincewill7808 2 года назад +1

    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.

    • @ShanesCows
      @ShanesCows  2 года назад

      I talk about this at the end. You have to use a 3rd party tool to do that.

  • @mdizzle1369
    @mdizzle1369 9 дней назад +1

    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?

    • @ShanesCows
      @ShanesCows  9 дней назад

      I like it

    • @mdizzle1369
      @mdizzle1369 8 дней назад

      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

  • @piocha88
    @piocha88 2 года назад

    Hello Shane, I would like to known if is possible that 1 combobox search in two shareponit lists.

    • @antoniomartinezjurado1223
      @antoniomartinezjurado1223 Год назад

      Look in Create File 2, Content File and be sure you introduce Content File from the previous step.

  • @peterspencer7317
    @peterspencer7317 9 месяцев назад +1

    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

    • @ShanesCows
      @ShanesCows  9 месяцев назад

      You need to use concat Concat(combobox1.SelectedItems, Value, “;”) that would write them semicolon separated.

  • @fitze87fatze13
    @fitze87fatze13 Год назад +1

    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

    • @ShanesCows
      @ShanesCows  Год назад

      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.

  • @JohnDoe-pe6yl
    @JohnDoe-pe6yl 3 месяца назад +1

    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?

    • @ShanesCows
      @ShanesCows  3 месяца назад

      Look at your html. You have a bad or missing tag most likely

  • @dion4894
    @dion4894 Год назад +1

    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?

    • @ShanesCows
      @ShanesCows  Год назад

      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. 😐

  • @allansmith9688
    @allansmith9688 Год назад

    Hi Shane great video again. I am using choices in my form. How do I get that value to appear?

    • @allansmith9688
      @allansmith9688 Год назад +1

      Resolved it, just used data card value instead of gallery selected. 👍

    • @ShanesCows
      @ShanesCows  Год назад

      Glad you got it Allan

  • @shinshae7882
    @shinshae7882 Год назад +1

    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

    • @ShanesCows
      @ShanesCows  Год назад +1

      You have a typo in your HTML. Look at it closely. You are missing a closing tag or something similar.

    • @shinshae7882
      @shinshae7882 Год назад

      ​@@ShanesCows Thank you so much😃😃😃
      I missed one double quotes, now it worked 🎉

  • @davidoddy4668
    @davidoddy4668 11 месяцев назад

    Is the file comvert still only a 2mb limit?

  • @larryjburgess
    @larryjburgess 2 года назад

    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?

    • @jasperdavid4030
      @jasperdavid4030 Год назад +2

      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.

  • @patrickp531
    @patrickp531 Год назад

    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.

  • @wolfcat007
    @wolfcat007 10 месяцев назад +1

    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?

    • @ShanesCows
      @ShanesCows  9 месяцев назад +1

      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.

    • @wolfcat007
      @wolfcat007 9 месяцев назад

      @@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::

  • @darkhorse7449
    @darkhorse7449 Год назад +1

    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

    • @ShanesCows
      @ShanesCows  Год назад +1

      I have never tried the Download function but worth a go docs.microsoft.com/en-us/power-platform/power-fx/reference/function-download

  • @getmighty8619
    @getmighty8619 7 месяцев назад +1

    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?

    • @ShanesCows
      @ShanesCows  7 месяцев назад

      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.

  • @parranoic
    @parranoic Год назад +1

    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

    • @ShanesCows
      @ShanesCows  Год назад +1

      What type of file are you trying to convert? Some of the 3rd party conversion tools support more file types.

    • @parranoic
      @parranoic Год назад

      @@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

  • @bzqp2
    @bzqp2 Год назад +1

    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??

    • @ShanesCows
      @ShanesCows  Год назад

      There is no convert action in SharePoint. 😑 Free pdf is only coming from OneDrive.

    • @bzqp2
      @bzqp2 Год назад

      @@ShanesCows Any way to somehow export data not fitting on the screen with the new experimental "PDF" function in Power FX?

    • @bzqp2
      @bzqp2 Год назад

      @@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!

  • @dileepkumars3690
    @dileepkumars3690 Год назад

    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.

  • @amrkalammansoori4411
    @amrkalammansoori4411 26 дней назад

    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!!🙂

  • @nh-eu2lg
    @nh-eu2lg Год назад +1

    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.

    • @ShanesCows
      @ShanesCows  Год назад

      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.

  • @MrAbueslam
    @MrAbueslam Год назад +1

    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.

    • @ShanesCows
      @ShanesCows  Год назад

      Not easy. Get some ideas of controlling the page with this video. QTT - Power Automate PDF Page Breaks
      ruclips.net/video/YkSNg7B_rps/видео.html

    • @MrAbueslam
      @MrAbueslam Год назад

      Thanks for Youth reply , much appreciated

  • @getmighty8619
    @getmighty8619 7 месяцев назад +1

    Conversion of this file to PDF is not supported. (Sandbox_HtmlTransform_InvalidOperation / An exception occurred while executing within the Sandbox) :(

    • @ShanesCows
      @ShanesCows  7 месяцев назад

      I have never seen that error. I would look at your HTML. It has to be well structured or the process gets mad.

    • @getmighty8619
      @getmighty8619 7 месяцев назад

      It doesn't allow flexbox it looks like :(@@ShanesCows

  • @lumilo7
    @lumilo7 8 месяцев назад +1

    te amo ♥ gracias

  • @deividspiv6659
    @deividspiv6659 Год назад +2

    how many pdf can i save in a Sharepoint list?

    • @ShanesCows
      @ShanesCows  Год назад

      A lot. 😎

    • @deividspiv6659
      @deividspiv6659 Год назад

      i need to save the pdf from all the company in the next 3 years it can be possible?

  • @Artofhandembroidery9862
    @Artofhandembroidery9862 Год назад

    can you explain about how to create pdf without using one drive or any third-party participation in power automate

  • @deividspiv6659
    @deividspiv6659 Год назад +1

    Can i save the files in a sql list? 👉👈

    • @ShanesCows
      @ShanesCows  Год назад +1

      You can but I don’t recommend it. Saving files to SharePoint doc library tends to work best.

    • @deividspiv6659
      @deividspiv6659 Год назад

      Thank you so much Shane! you're so great!

  • @getmighty8619
    @getmighty8619 7 месяцев назад +1

    Is there a version of this that doesn't explain HTML?

    • @ShanesCows
      @ShanesCows  7 месяцев назад

      Sorry, you need the HTML skills to make PDFs so I taught them.

  • @jacksonbrumbaugh9706
    @jacksonbrumbaugh9706 Год назад +1

    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

    • @ShanesCows
      @ShanesCows  Год назад +1

      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. 😎

    • @jacksonbrumbaugh9706
      @jacksonbrumbaugh9706 Год назад

      @@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

  • @matthewv4170
    @matthewv4170 2 года назад

    This is the exact methods I use. You get s 3mb sandbox error though which is unavoidable

  • @williamm8460
    @williamm8460 Год назад +1

    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

    • @ShanesCows
      @ShanesCows  Год назад +1

      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.

    • @williamm8460
      @williamm8460 Год назад +1

      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?

    • @ShanesCows
      @ShanesCows  Год назад

      @@williamm8460 There are 3rd party connectors that will do that but they are also premium.

  • @MaxZorin-bb8zz
    @MaxZorin-bb8zz Месяц назад +1

    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?

    • @ShanesCows
      @ShanesCows  Месяц назад +1

      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

    • @MaxZorin-bb8zz
      @MaxZorin-bb8zz Месяц назад

      Thanks very much!