PowerApps PDF Generator using Microsoft Flow PDF Converter

Поділитися
Вставка
  • Опубліковано 5 вер 2024
  • In this video, you will learn how to create a PDF using the power of PowerApps, Flow, and OneDrive. We walk through everything from generating the HTML, to filling in the variables, adding Flow actions, and finally sending content from PowerApps to the PDF. Very cool.
    John Liu's original blog post on PDFs johnliu.net/blo...
    W3 School's HTML guide www.w3schools....
    PowerApps and Flow consulting www.PowerApps9...

КОМЕНТАРІ • 837

  • @AdiCristea
    @AdiCristea 6 років тому +76

    Stop apologising about the video length, I am always happy to see the enthusiasm and passion of your learnings. The more, the merrier!
    Awesome video again, Shane, great job!

    • @ShanesCows
      @ShanesCows  6 років тому +6

      Thank yoU!

    • @hahahaha7023
      @hahahaha7023 4 роки тому +1

      i think i'm gonna dial 911

    • @tysonleonidas2955
      @tysonleonidas2955 3 роки тому

      I know im asking the wrong place but does anyone know of a tool to log back into an Instagram account??
      I was stupid forgot the login password. I love any assistance you can give me!

    • @davianbrayan2585
      @davianbrayan2585 3 роки тому

      @Tyson Leonidas instablaster =)

    • @tysonleonidas2955
      @tysonleonidas2955 3 роки тому

      @Davian Brayan thanks for your reply. I got to the site thru google and Im trying it out now.
      Takes a while so I will get back to you later when my account password hopefully is recovered.

  • @feliciadawn5014
    @feliciadawn5014 4 роки тому +2

    I have watched countless hours of CS and coding tutorials during my education and career, yours are by far my favorite. These PowerApps tutorials are an absolute lifesaver. Thank you!

  • @rambonumber007
    @rambonumber007 4 роки тому +1

    Just started working with Powerapps and Flow. Thanks to your videos I achieved a great progress.

  • @snork2209
    @snork2209 3 роки тому +1

    Shane! Just by watching your videos I was able to program a power app to track absence times of our students. All teachers can now work together in that app and it saves them a whole bunch of time (AND PAPER!!). Thank you so much, rock!!

    • @ShanesCows
      @ShanesCows  3 роки тому

      That is awesome! Good job to you Snork!

  • @christianpilon163
    @christianpilon163 5 років тому +4

    Good video, it really helped for my first application.
    A few things I learned along the way:
    - I used the "Compose" step to make the HTML more readable instead of directly entering it in the "Create File" step.
    - If you can store the data you want to print in a Sharepoint list it makes it a lot easier to include dynamic variables in your HTML

  • @christopherspencer8239
    @christopherspencer8239 4 роки тому +2

    I wish I could like this video twice. I was jumping and down with you when I got my company logo and my own custom power apps data out there!

  • @chrislambe400
    @chrislambe400 5 років тому +5

    "That took me...[Briefly reflects what day is it /damn I need to shower and sleep] I don't wanna talk about it." Nice work dude

    • @ShanesCows
      @ShanesCows  5 років тому +3

      Glad it helped and hope you remembered to shower. 😂

  • @burning_out
    @burning_out 6 років тому +4

    Another great informative video.
    Top tip for avoiding having to do all that hard work with the concat expression in the single line editor... if you initialise another variable of type string and put all your HTML text in that, it is way easier to maintain and you don't need to concat any of it. Then you just drop the variable into the FileContent of your OneDrive Create File action :D

    • @ShanesCows
      @ShanesCows  6 років тому +1

      I like it. 😻

    • @mgtd1138
      @mgtd1138 4 роки тому

      How would you accomplish that specifically?

  • @Maynardjones100
    @Maynardjones100 2 роки тому +1

    my superstars to follow used to be Roger Federer, Guns N Roses, Tool, Megadeth, now the rockstars for me are Shane Young and Reza Dorani. Thanks, that´s just what I needed

    • @ShanesCows
      @ShanesCows  2 роки тому

      Very kind of you. Hope you have a great weekend 🔥

  • @tenisviejos
    @tenisviejos 5 років тому +1

    I thought my enthusiasm for learning powerapps was weird. I feel you, bro. GREAT job, as usual. Thank you for your effort!

  • @frenamakenson9844
    @frenamakenson9844 2 роки тому +1

    thinking you were making this video in 2018... Awsome , thank you a lot for the sharing

    • @ShanesCows
      @ShanesCows  2 роки тому +1

      I feel like I should make a new version but nothing has changed so 🤷‍♂️

  • @thekreehaytion
    @thekreehaytion 4 роки тому +1

    Shanne you are awsome, you just can't imagine how much time you made us save. Please keep posting videos!

  • @eriks707
    @eriks707 4 роки тому +7

    "You can choose any option you want, as long as it's PDF...Because that's the only option you have" :'D

  • @johnmizell4683
    @johnmizell4683 5 років тому +1

    Hi Shane, just wanted to thank you for posting this video. I used your method for inserting a picture, except I tokenized the hmtl and then used replace() to add all of the pictures and elements. You're the best!!!

  • @82foghornleghorn
    @82foghornleghorn 3 роки тому +1

    Shane, thank you so much for this and all the great videos that have made Power Apps truly accessible to me in my job. I was able to use a "Get Row by ID" function in the flow, add its output to my HTML, and get dynamic values from Dataverse (even LookUps) to populate in my PDF. Now I can export a PDF with all the Dataverse record's fields. So cool, and useful. Cheers!

    • @ShanesCows
      @ShanesCows  3 роки тому

      Awesome 😎

    • @MrAbueslam
      @MrAbueslam 2 роки тому

      Can you please show me how you managed filling in lookup records and data table fields in html. I am having issue with that.

  • @androidgeeking
    @androidgeeking 3 роки тому +2

    Great video. I know I was struggling but I've learn a few things about a few limitation to take note of when desiging your html files for pdf conversion.
    1. No flexbox or grid support.
    2. Overflow doesn't work.
    3. Body width has a max I've found 600px to be the sweet spot.

  • @StevenNel
    @StevenNel 4 роки тому +1

    Awesome video Shane. Really does open up a lot of possibilities. One thing to add though, you can convert a word document to HTML which comes in handy when designing your document and then only needing to tweak a few things rather than having to write it all from scratch.

    • @ShanesCows
      @ShanesCows  4 роки тому +1

      Yes but that creates a lot of extra “noise” in the html that is really scary to a newbie.

  • @peterhowell4502
    @peterhowell4502 5 років тому +1

    Hi Shane, Fantastic Video as usual. The length was necessary to convey each step with enough detail. I especially appreciated the Button to test the Flow. Looking forward to the next Video! Thanks.

  • @ludwighallgren2554
    @ludwighallgren2554 6 років тому +1

    Thanks Shane. Had a customer the other day that wanted this and u solved it for me so easy. Thanks

  • @manuel_antonio_rivera_socarras
    @manuel_antonio_rivera_socarras 4 роки тому +2

    Hi Shane, I love it your video ...still my flow is not working but I could do it. Thanks for share yours knowledge. Thanks a lot.

  • @keldonmoodley7565
    @keldonmoodley7565 5 років тому +1

    Yo the trick to get the expression value got me out my chair like no waaaaaaaaaaay! nice one Shane! I was always a hover and type kind of guy! Not anymore!

    • @ShanesCows
      @ShanesCows  5 років тому

      Cool. Glad it works for you.

  • @divyanshgupta3760
    @divyanshgupta3760 3 роки тому +3

    Brooo... Thank you so much for making our lives easier! This is very helpful!

  • @Chris-ig5qz
    @Chris-ig5qz 5 років тому +6

    It’s like you knew that I needed this video in my life :-)

    • @ShanesCows
      @ShanesCows  5 років тому +2

      I made it just for you. 😻

  • @ghuerren
    @ghuerren 4 роки тому +1

    Once more, great video! I also must say that ive just started using Powerapp and your videos have been great as I dont know coding... Thanks a lot!!!!

  • @NICAMARCEL1
    @NICAMARCEL1 4 роки тому +1

    @Shane Young, two years later ago you posted this video and I'm learning it now! :)

  • @mds2672
    @mds2672 5 років тому +1

    Anyone looking for a low tech work around can try this
    1)On your powerapps screen select the gear icon and choose fit to screen
    2) right click and choose print
    3) choose save as PDF, then edit the layout
    4) click the more Settings and choose the paper size and scale that will best fit your screen
    5) uncheck headers and footers ( to disable all the annoying text and dates that will appear on your page from web printing)
    6)check background graphics ( to show all your logos and images)
    Then just save the file and you now have a perfect PDF replica of your screen.
    Hopefully this saves someone the endless hours of frustration that I had to endure trying to print to PDF

  • @bexjuice
    @bexjuice 2 роки тому +1

    OMG you're a hero !!! And this Concat function is just perfect

    • @ShanesCows
      @ShanesCows  2 роки тому

      Thanks 😊 glad it helped.

  • @stormybanjo
    @stormybanjo Рік тому +1

    Thank you Shane, this is really helpful and easy to follow.

  • @elierh442
    @elierh442 5 років тому +1

    Dude you are the best! You make the learning process easier and enjoyable. keep the hard work!!

  • @ahlan3609
    @ahlan3609 3 роки тому +1

    I love your enthusiasm! So in the end, you were able to insert only one input (the 9 cups of food) how would we make it to submit dozens of inputs in a table or form that I am making? Almost like an application to enter a program? Thank you appreciate any feedback!

    • @ShanesCows
      @ShanesCows  3 роки тому

      Thanks Alan. This video should help speak to how we can get lots and dynamic data into the mix. ua-cam.com/video/bfXV_GXc_JM/v-deo.html

  • @GrBritton
    @GrBritton 4 роки тому +1

    THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    I was just trying to figure this out myself. You just saved me a TON of time!

  • @seadude
    @seadude 6 років тому +1

    Are you serious!? I was just chatting with you how I had done this with Sharepoint..." HA! Here you are with the video! Nice!

    • @seadude
      @seadude 6 років тому +1

      Interesting! I did this a bit different: PowerApps to Sharepoint to Word Template to PDF. Love how flexible these tools are!

    • @ShanesCows
      @ShanesCows  6 років тому

      Yeah I chuckled the other day. 😀

    • @rebeccaj138
      @rebeccaj138 5 років тому

      @@seadude do you have a tutorial on your method?

  • @guyinazo
    @guyinazo 6 років тому +1

    Another great useful topic...there are many times I need to create a dynamic filename (like with the date) and I am sure I could use Variable to create a string formatted the way I need and then Concat() to the rest of the filename.

  • @MaicaLRM
    @MaicaLRM 6 років тому +1

    This is incredible! I just created a new database and this will be something I add in the next version. Will definitely need to spend some time with this one lol!

  • @adequateinfosoft3779
    @adequateinfosoft3779 3 роки тому +2

    that's great, it helped me a lot. can we just let it download directly instead of saving it to one drive.

    • @ShanesCows
      @ShanesCows  3 роки тому

      I think you need to save it somewhere and download form there. Or email it to the user?

  • @mrstevennewmanEDU
    @mrstevennewmanEDU 6 років тому +13

    Hey Shane,
    This was the missing link in a solution I am building for my schools (I help look after a whole district). You sir are awesome!!! You should set up a Patreon Page. I for one would support you.

    • @ShanesCows
      @ShanesCows  6 років тому +1

      That is awesome. I have toyed with patreon but I don’t know. 😀

    • @k1ngydoteth403
      @k1ngydoteth403 4 роки тому

      @@ShanesCows You defo should lol

  • @chrisbartman5125
    @chrisbartman5125 6 років тому +1

    Excellent video content, easy to follow, great concept. I did, however, find what I believe to be a character limit on the expression field. I don't know the exact number, but my initial html code was too long to be valid. I did, eventually, get it to work after tinkering & removing several lines of code. Looking forward to more videos on PowerApps.

    • @ShanesCows
      @ShanesCows  6 років тому

      Interesting. Thanks for sharing. I haven’t ran into that yet but when I dig in on this project I will see what happens.

  • @susanclark1778
    @susanclark1778 13 днів тому +1

    This is a great video thank you, Someone mentioned you had a way to also convert to Word? I need to create a dynamic template document based on Power Apps data/SharePoint. So looking to build a complete formatted word document in html with dynamic tables and then convert to Word. It seems easy enough in theory, but why is there no html to Word option - this seems more useful then pdf. Appreciate you thanks.

    • @ShanesCows
      @ShanesCows  12 днів тому

      We haven't done it much here at PowerApps911 but when we have we have used the flow action Populate a Microsoft Word template and filled in the blanks. I have never went from HTML to Word. Maybe one of the 3rd parties like Encodian or Cloudmersive can do it? Not sure.

  • @celsocisneros3886
    @celsocisneros3886 3 роки тому +1

    Hi Shane! this video was so helpful. I am able to create the HTML but when I convert to PDF and open the file I get a message that it doesn't have a preview and similar message when I download it to view. THANK YOU SO MUCH!

    • @ShanesCows
      @ShanesCows  3 роки тому

      You have a typo in your html most likely. Thaw conversion is very grumpy

  • @julmasson6403
    @julmasson6403 3 роки тому +1

    A.M.A.Z.I.N.G !! saved me hours of endless training, forever grateful ;)

  • @niebieskiYT
    @niebieskiYT 4 роки тому +2

    You are awesome Shane. I love your videos!

  • @davecawthorn2234
    @davecawthorn2234 6 років тому +3

    Just stopped this to add a comment. Letter ‘x’ brilliant!!!!

    • @ShanesCows
      @ShanesCows  6 років тому

      Yeah the first time I saw it I wasn’t sufficiently impressed. Took a while to understand how good that trick was. Vivek showed me. 😻

  • @gabed06
    @gabed06 3 роки тому +1

    That was worth watching, very helpful....

  • @kalliroi6182
    @kalliroi6182 2 роки тому +1

    great video! thanks so much for explaining every step! Great job!

  • @andyl2895
    @andyl2895 2 роки тому

    Hey Shane, your videos are a real life-saver, thank you! I built a Flow just like in your video, but the PDF part of the OneDrive connector is still in Preview state (and probably will be forever) and my IT department wont let me put this into production. I looked into 3rd Party connectors, but we cannot use them because they're mostly American companies who dont comply with GDPR (PDF will contain sensitive company data). I'm now building an Azure Function which does just the same, what a hassle!

  • @georgewinters2066
    @georgewinters2066 6 років тому +1

    Bravo! Fantastic! Clear, concise, and cogent!

  • @donah26
    @donah26 4 роки тому +1

    Thanks, it helps me on one night crash course on power apps.

  • @marcopezzutti6555
    @marcopezzutti6555 4 роки тому +1

    Hi Shane
    My name is Marco and I'm writing from you from Sydney Australia. Firstly I want to thank you for these videos! I watched them all over and over again and I learnt powerapps. I use your techniques in my apps that I am creating. I watched this video many many times and the way that it converts a HTML to PDF using flow. My big dilemma is that my html is Landscape and Onedrive does not convert the landscape HTML to PDF. Would you know what I have to do ?
    Anyway Shane I appreciate everything you have done for me and thank you so much. Ciao Marco!

    • @ShanesCows
      @ShanesCows  4 роки тому +1

      Hi Marco. Best I know there is no way to set landscape. 😑

    • @marcopezzutti6555
      @marcopezzutti6555 4 роки тому +1

      Shane thank you so much to have answered me. Looking forward to other Powerapp videos. God Bless ! Marco

  • @carolevandenberg1474
    @carolevandenberg1474 4 роки тому +1

    Love these videos - fun, and super helpful every time! Can we meet Chewy some day? I mean thru UA-cam, of course.

    • @ShanesCows
      @ShanesCows  4 роки тому +1

      Hi Carole he shows up in some videos. Or you email shane at www.PowerApps911.com and I will send you some pics. He likes the attention 😂😂😁

    • @carolevandenberg1474
      @carolevandenberg1474 4 роки тому

      Shane Young I will keep watching videos - fun incentive to watch more, I might get to see Chewy! I need to teach my dogs how to build in PowerApps now...

  • @HowToExcelBlog
    @HowToExcelBlog 6 років тому +3

    Can you skip the HTML and send your collection into a table in an Excel template, then convert that Excel file to PDF?

    • @ShanesCows
      @ShanesCows  6 років тому

      I don’t know how to convert excel to pdf programmatically.

  • @pkp044
    @pkp044 3 роки тому +1

    This is beautiful!!! Thank you so much for sharing this Shane!!

  • @clemovic
    @clemovic 6 років тому +1

    Sensei Shane,
    Excellent tutorial I had been looking for a formula to create PDF from PowerApps for a long time. Now the question is: How can you send different data to fill the table? Example: Table (Record1 [, RecordA, RecordB]), Table2 (Record2 [, RecordC, ...])

    • @ShanesCows
      @ShanesCows  6 років тому

      My first idea is you would just have to send a variable for every field you want to populate. I think what I will figure out eventually though is you can send a bunch of data maybe comma separated to Flow and have Flow break it up for you. Not really sure yet. Ask again in a month when i finish the customer stuff.

    • @agnuessamuel816
      @agnuessamuel816 6 років тому

      Hello Shane, I want to convert data in my gallery (User Name, Comment and Comment Log Date) into PDF. I have followed the steps in the video above and have achieved it for text input. Any workarounds for this?

  • @LannaSanches
    @LannaSanches 3 роки тому +2

    Great tutorial, thanks! Would you know how to turn left the pdf page?

  • @callfusion2012
    @callfusion2012 5 років тому +1

    Great!!! Now i can produce the invoices from my powerapp til now i did it with Access and ODBC on the database. Im happy! ;-) Thanks!

  • @joeburns8059
    @joeburns8059 5 років тому +1

    Very useful Shane as are all your videos. Thanks so much for sharing.

    • @ShanesCows
      @ShanesCows  5 років тому

      You are welcome. Glad it helped. :)

  • @ericbauwens1642
    @ericbauwens1642 2 роки тому

    Awesome, that is exactly what I need for one of my projects! Thanks Shane!

  • @elizabethbadenhorst3556
    @elizabethbadenhorst3556 2 роки тому +1

    This channel is so helpful!! Thank you.

  • @ignaciosaravia7059
    @ignaciosaravia7059 3 роки тому +1

    Great Job Shane! Excelent videos! Thanks a lot!

  • @amosp.godbyhighschool8054
    @amosp.godbyhighschool8054 2 роки тому +1

    Thank you for the video. Everything works like a charm when I am logged in as the user that created the flow. The base files (logo, HTML, pdf) are all saved in the Share with Everyone OneDrive for Business folder. When I run the app/flow using a different account the flow fails on the getting the image file for the logo - says the resource cannot be found. That would be a permission thing right? But the file is in the Shared with Everyone folder and appears to open to all. Heck, I think they can even edit it. So, what am I missing?

    • @ShanesCows
      @ShanesCows  2 роки тому

      The way I wrote this flow it is looking in the user who is triggering the Flows OneDrive for the file. :( Consider just hard coding the base64 in the flow or app like I talk about here. ua-cam.com/video/bIne3DD3HAg/v-deo.html One day I need to revisit these PDF videos. :)

  • @contactpaulo
    @contactpaulo 3 роки тому +1

    Great content! Congrats Shane!

  • @adriancelis9691
    @adriancelis9691 4 роки тому +1

    That celebration at 23:57 was epic. Lol 😂

  • @tmcpang
    @tmcpang 4 роки тому +1

    This is an awesome video. I think it'll be very useful for in the near future. Thank you so much Shane.

  • @umeshkunvar4439
    @umeshkunvar4439 3 роки тому +1

    Thanks you! Nice video for starters!! In the example we are sending only one field value from PowerApps to flow. What if we want to send multiple field values from PowerApps to flow, how do we refer to those different values in the HTML.

    • @ShanesCows
      @ShanesCows  3 роки тому

      Sorry I am slow. You will need to ask in Power Apps, inside your flow, multiple times.

  • @tonyy4471
    @tonyy4471 4 роки тому +1

    2 silly questions:
    1 - the OneDrive I am using is assigned to me, and only me. In order for this to work, do I have to give public access to one of the folders within my OneDrive to allow other users to run the flow?
    2 - is it possible to execute a 'page break' command on the pdf?

    • @ShanesCows
      @ShanesCows  4 роки тому

      1 it will save to their OneDrive. 2 page breaks are possible but I haven’t covered it yet. Requires fun with Div tags.

  • @PeterPanQuails
    @PeterPanQuails 3 роки тому

    This is super cool. Dynamic PDF generation. Thank you.

  • @clivemorgan2434
    @clivemorgan2434 4 роки тому +1

    Absolutely Awsome Shane, so well explained.

  • @matthewprzybylowski5626
    @matthewprzybylowski5626 5 років тому +4

    Hey Shane. Thanks for the video. I've been using grids for layout in html. When running the code, the html file looks perfect but when converting to pdf, the file loses all the grids I've defined as well as any content within it. I've had similar issues with styling in general. It seems as though the conversion won't let me put in page numbers or align my image the way I want. Any idea why this might be lost in the conversion or know of anyone that might have the answer?

    • @ShanesCows
      @ShanesCows  5 років тому

      Sorry I got nothing Matthew

    • @kattikawn
      @kattikawn 4 роки тому +2

      I’ve just run into this same snag. Did you ever find a solution, Matthew?

  • @djams1845
    @djams1845 3 роки тому

    Shane, buen día. Realmente nos aportas mucha ayuda con tus videos de ejemplos y soluciones. Gracias!

  • @MichaelLocke-wj1qs
    @MichaelLocke-wj1qs 5 місяців тому +1

    I might have just missed something, but when I am creating the first file from HTML, it isn't coming through as a PNG file, and the converter is saying it wont convert. It is having me open it in notepad

    • @ShanesCows
      @ShanesCows  5 місяців тому +1

      Yeah, that shouldn't happen. I would run through the steps again or this video ua-cam.com/video/pFlwYy8ijiA/v-deo.html is a newer version of the same stuff. Might be helpful to hear me say it again, differently.

  • @kathystubbs5183
    @kathystubbs5183 3 роки тому +1

    Hi Shane, I'm having problems with the "get file content" bit for the datauri string to convert my image (from SP) to something that can be inputted into my concat function.
    I have a picture (jpg) in SP library so I use "Get File Contents" action as shown pointing it to my picture. I then initialise "photo" variable and set to string, use expression "dataUri('')" then select the "get file content" from the dynamic list like you suggest. It doesn't paste it in as "body('Get file content'), instead it puts dataUri('outputs('Get_file_content')?['body']'). When I hit "OK", it then says expression isn't valid. Any ideas?
    I've also tried it with a OneDrive image file as well thinking it might have just been pesky SP, but it misbehaves too.
    Any ideas?

    • @ShanesCows
      @ShanesCows  3 роки тому

      Kathy I think you need one more ) at the end of the expression.

  • @jag7051
    @jag7051 2 роки тому +1

    HI Shane, your video is very informative, could you please do a video on how to use this on Model Driven App, Thanks

    • @ShanesCows
      @ShanesCows  2 роки тому

      Hmmm. I haven't thought about that. I will ponder that next time I am playing with Model. Hmmm

  • @carolblay
    @carolblay 4 роки тому +2

    Shane, you are a saviour! Happy new year :)

    • @ShanesCows
      @ShanesCows  4 роки тому

      Thanks Carol and right back at you. 😻

  • @MrJerryaandrew
    @MrJerryaandrew 5 років тому +2

    Hey Shane,
    This is awesome...
    Your videos are really helpful and very straightforward, Thank you so much of making these videos,
    Can you please make a similar video to convert SharePoint List items to PDF
    Thanks in advance. :)

    • @ShanesCows
      @ShanesCows  5 років тому

      You are welcome. I will see what I can do.

  • @austineuba3592
    @austineuba3592 4 роки тому +1

    Nice one. This is very uselful

  • @aaronalbers7280
    @aaronalbers7280 3 місяці тому +1

    Great video once again Shane! I have a use case for this exact process; however, I need to embed the possibility of word, pdf, and jpgs. Any advice for this process with word or pdf docs?

    • @ShanesCows
      @ShanesCows  3 місяці тому

      I got nothing for embedding Word or PDF. Maybe look at the 3rd party PDF tools to see if they make it an option? Not sure.

    • @aaronalbers7280
      @aaronalbers7280 3 місяці тому

      @@ShanesCows I decided to convert all the docs into pngs whenever they are uploaded to the doc library. In your flow however you are utilizing OneDrive for Business (Get file content). I am utilizing the SharePoint (Get file content) when we set that equal to a variable and embed that intot our HTML should be expect those abilities to function the same?

  • @androidgeeking
    @androidgeeking 3 роки тому +1

    For some odd reason my pdf is blank but my html file looks correct.
    For the OneDrive convert file action. When I use the ID for the file in the Convert to pdf action. It create an empty file. When I use the path it says the id of the file is not valid.
    *Edit:
    I figured out my issue. You can't use flexbox or css grid. Have to use tables :(

    • @ShanesCows
      @ShanesCows  3 роки тому

      Glad you got it. You are right the html is very picky what it will convert.

  • @luismmpgoncalves
    @luismmpgoncalves 3 роки тому +1

    Hi Shane
    Help please, I can't get around this. I created the flow in the power automate and when I do the test, everything runs fine, save the html in the onedrive folder and create the pdf file in the sharepoint folder as it is supposed to.
    When I put the instruction on the button in OnSelect "htmlToPDF.Run (htmltext1.HtmlText), it stays underlined in red with the error message" Invalid number of arguments; 1 received, 0 expected ".
    For now I am using the simple html "Table with border" without changing anything.

    What am I doing wrong?
    Thank you very much.

    • @ShanesCows
      @ShanesCows  3 роки тому

      You forgot to Ask in Power Apps inside of you flow.

  • @ousselg1509
    @ousselg1509 Рік тому +1

    Hi Shane, thanks for the video. I have a slightly different scenario and am wondering how to get it to work. If a mail is send, I extract the html body and save it to onedrive. That part works. I then convert it to pdf and the images won't show up. Any idea how I can fix it? As I don't save the images separately each time an email arrives.

    • @ShanesCows
      @ShanesCows  Рік тому

      You are going to have to get the images in base64 format. So downloading the file and such. Not super easy, possible but not easy. Other thing you might check if the 3rd party PDF tools support URLs for images. I don't know if they do or dont.

  • @frodesellevoll
    @frodesellevoll 3 роки тому +1

    How do I get landscape format on PDF file? Is there any programming in Powerapps? Has an html in powerapps with many columns. It creates PDF standing, and then not all columns appear.

    • @ShanesCows
      @ShanesCows  3 роки тому

      Have to use a 3rd party converter to get landscape

  • @toanuk
    @toanuk 5 років тому +1

    Hi Shane. It is the steps missing for doing the HTML in the Flow. I would like to know next Video How to create SharePoint List(database) for PDF using the PowerApps method. Simple and logic which can be followed. thanks

  • @voydesvelado
    @voydesvelado 3 роки тому +1

    Very helpful. Thank you so much.

  • @barbloke1566
    @barbloke1566 4 роки тому +1

    Great Job Shane!

  • @jennylin6015
    @jennylin6015 3 роки тому +1

    Thanks for your wonderful video, I got a lot of knowledge from your video. And for this topic, I have two question . Could I create file in SharePoint at first step when I create HTML context file? But I founded that there is no method to convert file to PDF from SharePoint directly, So if an apps need some people besides me to edit and generate a PDF file in SharePoint, where need to create html file at first? One drive only for personal I think, other people couldn't get access to edit. Could you give me some suggestion? The other problem is when I make a declaration for html file language is Chinese, but after file generated to PDF is mess code. So whether "html text "couldn't support Chinese language in Power Apps?
    Thanks a lot.

    • @ShanesCows
      @ShanesCows  3 роки тому

      OneDrive works. It will create the first file in each user’s own OnesDrive. No issue

    • @jennylin6015
      @jennylin6015 3 роки тому

      @@ShanesCows So I don't need to share my one drive to others? I have tried to shared with my one drive give someone, she could generated a pdf documents but no detailed information only showed" Show HTML text....." .But if I click "export pdf" will be success! So I'm doubt about whether there is something wrong with one drive access.
      Thanks for your kindly help.

  • @tausifjamkhandi1597
    @tausifjamkhandi1597 6 років тому +2

    Awesome as always😊 thank you for this info

  • @androidgeeking
    @androidgeeking 3 роки тому +1

    You mentioned you can do it with SharePoint? I didn't a see a convert to pdf for sp document libraries.

    • @ShanesCows
      @ShanesCows  3 роки тому +1

      The HTML file and the conversion process has to happen on OneDrive. But the Create File step can create the file into SharePoint. Sorry for any confusion.

  • @sheelanikam5443
    @sheelanikam5443 4 роки тому +2

    Thank you for your video. Your videos helped me alot to generate pdf from sharepoint list data. But image part is not working for me. I have stored my image file in one drive and used get content action to get image content , stored those to string variable and then added that to my string variable with html text as variable('Logo') .. steps you explained in this video, but it not showing me image on html as well as on pdf file. can you please guide me what can be wrong?

    • @ShanesCows
      @ShanesCows  4 роки тому

      You must have a bug in your html. Try to simplify and try again.

  • @2hamsi
    @2hamsi 5 років тому +1

    Its all working fine but although i have a little problem. Unfortunately the pdf converter ignores the height an weight settings from my image within the image tag. Is there a way to fix this?

    • @ShanesCows
      @ShanesCows  4 роки тому

      I feel like I have done the size stuff. Maybe try it as a style instead of inline.

  • @franklinarita8347
    @franklinarita8347 4 роки тому +1

    So I have a question: can I merge pdf files without using paid connectors?
    Btw, I really love this video! you make me learn a lot in a very easy way.

    • @ShanesCows
      @ShanesCows  4 роки тому

      I don't think you can. I have always used paid connectors to merge.

  • @susanteng3592
    @susanteng3592 3 роки тому +1

    Awesome tutorial.
    I got error in 'Convert file using path step'. I use Sharepoint instead of OneDrive. In the 'Convert file using path', there is no option for Sharepoint, so I chose OneDrive. Then it shows 'path' (Sharepoint icon). Is this the reason cause error? If yes, what is the alternative way to 'Convert file using path' for Sharepoint?

    • @ShanesCows
      @ShanesCows  3 роки тому

      Susan the file has to be in OneDrive to convert it. Then you can save it to SharePoint after you convert it.

  • @thurstanp
    @thurstanp 4 роки тому +1

    Good video Shane. 1 question regarding the HTML code using the TriggerBody expression: why did u use the 'CreateFile Filename' syntax in the td cell?thx

    • @ShanesCows
      @ShanesCows  4 роки тому

      So I could use the value pulled from Power Apps. Making things more dynamic.

    • @thurstanp
      @thurstanp 4 роки тому

      @@ShanesCows thx. No what I meant by that Q is what if you have multiple text inputs from the user, so how would write/use different expressions to handle the multiple data going into the html rows to create the pdf? Rgds

  • @karatemom3295
    @karatemom3295 5 років тому +1

    Shane & Others, when creating the HTML to generate the pdf, I am struggling with the format for a multi-select box. So I have a box that the user can select 1-7 options. When I write the HTML as follows, I only get 1 value back. How do I write it to get all of them?
    "&ArtifactV.Selected.Value&"
    Thanks

    • @ShanesCows
      @ShanesCows  5 років тому

      .SelectedItems is the key. Check my other pdf video where this is covered.

  • @user-tt3rn9me7w
    @user-tt3rn9me7w 3 роки тому

    It's cool! therefore you can bypass the word premium connector))
    did not understand why the concat function was used

  • @waynel9645
    @waynel9645 2 роки тому +1

    Ok, I am new to PowerApps and have been trying to solve a problem with no results. I am trying to convert html to pdf, but with dynamic pictures. I have everything running and the flow works, but it doesn't show the pictures and is a red X where the pictures are supposed to be. The flow use one drive to export the html file to one drive as you show here, but a dynamic picture doesn't work in my case as I need dynamic. I haven't found one person yet that has addressed this issue. Obviously it has something to do with datauri, but how do you solve this?

    • @ShanesCows
      @ShanesCows  2 роки тому +1

      The key is you have to use the base64 of the image in the img tag. Details here ua-cam.com/video/bIne3DD3HAg/v-deo.html

  • @NOR3MSTI
    @NOR3MSTI Рік тому +1

    awesome, it works, any chance i could get certain parts of the html to pdf to print out instead of the entire portion based on drop down selections inside the app? or is that too much?

    • @ShanesCows
      @ShanesCows  Рік тому

      Basically the conversion process just wants text, it doesn't care how you get there. So if you can create logic to only send part of the HTML you want then you should be fine. There is a newer version of this video that may help ua-cam.com/video/pFlwYy8ijiA/v-deo.html

  • @tokiokuwamura5817
    @tokiokuwamura5817 5 років тому +2

    Thank you very much this is exactly what I wanted! Awesome!!

  • @Viipiin
    @Viipiin 3 роки тому +1

    I'm using this with Power Apps but every time it store pdf to user's one drive account.
    Any work around for centralized location for pdf?

    • @ShanesCows
      @ShanesCows  3 роки тому

      The html file has to be users OneDrive. The pdf file you can create anywhere, like SharePoint

  • @timellis2041
    @timellis2041 3 роки тому +1

    This works great for me but when users other than me try to use it they get an error saying "connection not configured for this service" . Any pointers would be great.

    • @ShanesCows
      @ShanesCows  3 роки тому

      Do they maybe not have OneDrive accounts?

  • @TheAmazeer
    @TheAmazeer 4 роки тому +1

    You have to predefine what will be in the pdf? You export a text input to the pdf , but what if I want to export a gallery or a collection? Would be more interesting I think..

    • @ShanesCows
      @ShanesCows  4 роки тому

      Try this ua-cam.com/video/bfXV_GXc_JM/v-deo.html 😍

  • @EmilyLopez-en5ic
    @EmilyLopez-en5ic 7 місяців тому +1

    when I switch from manuel trigger to Power apps(v2) I don't get the option to ask power apps. What am I doing wrong?

    • @ShanesCows
      @ShanesCows  7 місяців тому

      This video explains it. Sorry they changed things ua-cam.com/video/vpjf5mD-COs/v-deo.html

  • @vk9385
    @vk9385 3 роки тому +1

    Hi Shane - Thanks for the useful videos you have posted. I am able to run the canvas app using the power automate flow to convert the file to PDF as you have shown here but when I share this app this to my orgs users they are getting the following error "code": "InvokerConnectionOverrideFailed" "Failed to parse invoker connections from trigger 'manual' outputs. Exception: Could not find any connection for connection reference name 'shared_onedriveforbusiness' in APIM tokens header:" Any Suggestions Thanks

    • @ShanesCows
      @ShanesCows  3 роки тому

      My guess is they don't have OneDrive of their own. The flow creates the file in the user's onedrive