Show PDF files from SharePoint in PowerApps

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • In this video, I have created a PowerApp to Show PDF files from SharePoint with the help of PowerAutomate and ensured the data is rendering without any issues irrespective of the content in the file. This is the best video for Power App beginners to implement without any technical challenges.
    You will learn:
    1. How to use JSON function in Power Apps
    2. Calling a Power Automate from Power Apps
    3. Sending the data from Power Automate to Power Apps
    4. Using Gallery in Power Apps
    Substitute Function :
    • Search & Find Function...

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

  • @bexjuice
    @bexjuice 3 года назад

    works like charm

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

    Very Helpful Khrishna and just what I am looking for on my project at the moment.

  • @abdonasser4054
    @abdonasser4054 3 года назад +1

    Thanks you very much sir its really helpful 🙏🏼 do u have any idea how to en large(fullscreen) the pdf with button ?

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  3 года назад

      So If I get you right you want to make the PDF viewer window large is that right? if so do this:
      Add a button with the title as Large: onSelect property of the button use the below code:
      UpdateContext({varWidth:App.Width,varHeight:App.Height});
      this will make the PDF viewer
      Add another button with the title Small:
      UpdateContext({varWidth:400,varHeight:150});
      Assign these variables on the width and height of the PDF viewer control

  • @wagnerjimenez1968
    @wagnerjimenez1968 3 года назад +1

    Hello excellent. Keep going !! I was looking for this long time ago and your solution is quite clever and useful.

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

    How can I create a variable in the flow from the power app to send a mail with the pdf file attachment, to the user who types in the text box?

  • @AssassinUK
    @AssassinUK 3 года назад +1

    Great video! I wanted to do it this way as then I don't have to deal with PDF permission problems

  • @orlandoramireztorres9449
    @orlandoramireztorres9449 3 года назад +1

    Hi! just a quick question, Where did you get the varPDF ? im not getting this to work.

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

    Hi Krishna, thank for you video. I am getting the error of "invalid number of arguments: received 2, expected 3", and it looks like my function is asking for an "InitializeVariable_Value" in addition to VarSiteAddress_Value and VarFilePath_Value. Do you know what might be the issue?
    UpdateContext({varPDF:RenderPDFFileData.Run(Substitute(Substitute(BrowseGallery2.Selected.SDS,"%20"," "),BrowseGallery2.Selected.'Full Path',Blank()),BrowseGallery2.Selected.'Full Path')})

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  2 года назад

      Not sure what is the issue, I need to check the app and code.
      Please submit a ticket for a specific / your project related questions in powerusers.Microsoft.com for instant help. I am currently fully occupied with some personal and office work. I also come and help people in community as and when I get time. All the best!!

  • @alvinallu7188
    @alvinallu7188 3 года назад +1

    Now this flow method is not working...plz tell any other method

  • @manjulanaidu6819
    @manjulanaidu6819 3 года назад

    Hi krishna garu, in my requirement I have to show all type document they can attach any type of file, if it is doc file means how could I show.Pdf viewer show only pdf file. Could you help in this, thank you ,thank's for great video

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  3 года назад

      You can always validate the file type before you send the file stream to PDF viewer. Hope that answered your question.

  • @amirulfaiz9860
    @amirulfaiz9860 3 года назад

    Hi Krisha, I need your helps at the minutes of 11:03. At my end, I’m having an issue when trying to add the formula of varPDF.pdfcontent . It showing a red line. Any idea to solve it?

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  3 года назад

      varPDF is a variable I am creating to hold the return value of the flow. So, ensure that it is created on your side. Watch the video one more time and ensure all the steps are followed as advised in the video.

  • @christos1950
    @christos1950 3 года назад

    When performing the lookup within the input box, 'Link to item' is not appearing. 'Link' is the only option that displays the full https url. I got it working, however do you have any ideas on why Link to item isnt showing up?

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  3 года назад

      Not sure what you mean by Link to item, could you point me to the time I have explained in the video to help you better.

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

    Hi Krishna, I am creating an app using this to show pdf's but I want to use it for multiple pages for different data sources, when I type in the formula for the selection icon on the vertical gallery its coming up with an error the second time i have tried to use it. The first page and vertical gallery it worked fine. See 2 codes below: first one worked, second one didnt.
    UpdateContext({varPDF:RenderPDFFileData.Run(Substitute(Substitute(gal_AdvantEDGE.Selected.'Link to item',"%20"," "),gal_AdvantEDGE.Selected.'Full Path',Blank()),gal_AdvantEDGE.Selected.'Full Path')})
    UpdateContext({varPDF:RenderPDFFileDataEpitaph.Run(Substitute(Substitute(gal_Epitaph.Selected.'Link to item',"%20"," "),gal_Epitaph.Selected.'Full Path',Blank()),gal_Epitaph.Selected.'Full Path')})

  • @buzzbaz
    @buzzbaz 3 года назад

    Nice video, thanks. I don't see the "DocType" option when I go to filter the Document Library to show just pdf... Do you know is there something I'm missing?

  • @VamsiKrishnaManikantaBatchu
    @VamsiKrishnaManikantaBatchu 3 года назад

    HI Krishna, Great Video.
    I implemented the same in my application and working fine. But need small requirement like when ever you are selecting one file to another file in the gallary and size of the file is large it is taking sometime to load. So, I want to hide the PDF viewer control while the other document is loading or clear the content of pdf viewer till the other selected document is loaded.
    Thanks.

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  3 года назад +1

      You can certainly do it by adding the below line in NextArrow onselect property before you call the Flow
      Set(ViewPDF,Blank())
      this will clear the PDF vairable and on PDF control Visible property write the below formula:
      !IsBlank(ViewPDF)
      this will hide the PDF viewer control hide, hope this helps

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

    Hi Krishna.... Got the chance to watch the video and it is truly great, thanks. Now I have a small query for you, can we edit the pdf file which is opened in pdf viewer and if so how can it be saved to a specific path?

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

    Great Video to share with us Krishna! I am unable to find "DocType" function at the 2:00 mark, has it been discontinued?

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  2 года назад +1

      In that Filter Doctype is not a function it is a column in my library. Hope this helps

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

    my flow in the automate runs successfully, but the screen is gray instead of displaying the PDF

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  2 года назад

      Watch the video one more time implement step by step this is a proven solution by many many people so it should work!

  • @mohammadnazeer7270
    @mohammadnazeer7270 3 года назад

    Hello Khrishna,
    This video is amazing. How to convert SharePoint list item attachments into one pdf.

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  3 года назад

      Yes create a gallery for the list you want and send the ThisItem.Attachment to the flow that will also work

  • @wilsonespinoza473
    @wilsonespinoza473 3 года назад

    Hi Krishna, really well explained your video, but even when I followed step by step the flow creation, it doesn't work for me. I suspect about the use of accent in vowels (spanish language). Do You think it could be the problem the flow has? if so, Could You help me with this topic, please. Thank you for your knowledge!

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  3 года назад

      May I know what is the issue you see? I was able to get all the non English text.

  • @shingomcleod
    @shingomcleod 3 года назад

    Great video Krishna, thank-you for putting this together. I've had this working in a solution I built since March, but in the last few days it's stopped working, no errors, the pdf just doesn't render 🙁. I'll DM you on Twitter to see if we can hook up.

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  3 года назад

      Thank you for your update yes this is the issue with new maker portal version: here is the community thread on the same
      powerusers.microsoft.com/t5/Building-Power-Apps/PDF-viewer-stop-working/td-p/1250034

  • @galinagolant
    @galinagolant 3 года назад

    Thank you!! For me it works in chrome, but not in Explorer. Any ideas on how I can fix it?

    • @galinagolant
      @galinagolant 3 года назад

      Sorry, I typed Explorer, I meant Edge. It doesn't work in Edge for me.

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  2 года назад

      It should irrespective of browser May I know what is the issue you are experiencing?

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

    thank you very much!

  • @junelbuitizon3378
    @junelbuitizon3378 3 года назад +1

    This is master piece. Thanks!

  • @siyabongachili6905
    @siyabongachili6905 3 года назад

    Hi Krishna, nice video. I did not get it to work on my side as yet, the flow fails in the 4th step, and returns response is not in JSON format

  • @dannybaquer
    @dannybaquer 3 года назад

    Hello Krishna, nice video!
    I followed all your steps but and the end, in the OnSelected of the NextArrow, I put my variables but I got an Error saying "Invalid number of arguments: 2 received but 3 expected"

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  3 года назад +1

      Hi Danny I am not quite sure…. Where you see this issue ? Share some more details

    • @dannybaquer
      @dannybaquer 3 года назад

      @@krishnavandanapu-mvp9302 No worries man, I found a solution. You can check it on my profile.
      I learned watching your videos, thank you.

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

      Please I have same issue. The next arrow is bringing up the error “Invalid number of arguments: received 2, expected 3” after inputting the formula

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  2 года назад

      Please submit a ticket for a specific / your project related questions in powerusers.Microsoft.com for instant help. I am currently fully occupied with some personal and office work. I also come and help people in community as and when I get time. All the best!!

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

    You save my life

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

    This worked great thank you. A little slow to load but it works ;)

  • @shakirmohammed6160
    @shakirmohammed6160 3 года назад

    Is there a way to see pdf with multiple pages by storing in Dataverse ?

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  3 года назад +1

      this approach shows all the pages in the PDF irrespective of the data source.

    • @shakirmohammed6160
      @shakirmohammed6160 3 года назад

      @@krishnavandanapu-mvp9302 thank you will try this approach, is there a way we can upload multiple documents from Power Automate desktop to Data Verse ?

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  3 года назад

      Not quite sure please post this question on community
      HTTPS://powerusers.Microsoft.com

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

    How to do this for power portal?

  • @erickramos8760
    @erickramos8760 3 года назад

    Thank you very much!

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

    Can we use onedrive instead of share point?

  • @frehust
    @frehust 3 года назад

    Did this just stop work last friday?

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  3 года назад +1

      Nope it is still good what went wrong on your side ? Let me know the error I can help you!

    • @jeroenh2037
      @jeroenh2037 3 года назад

      @@krishnavandanapu-mvp9302 Hi Krishna, same issue here. Just stopped working all of a sudden. Flow runs successfully, no errors in the app itself. After selecting the PDF, the PDF viewer just stays blank.

    • @dennisrivera1114
      @dennisrivera1114 3 года назад

      If I edit or put a new version it will stop working,
      now its showing a grey screen in the PDF control

    • @krishnavandanapu-mvp9302
      @krishnavandanapu-mvp9302  3 года назад

      This is because of new version of maker portal, Check this post friends:
      powerusers.microsoft.com/t5/Building-Power-Apps/PDF-viewer-stop-working/td-p/1250034

  • @Gamers-yv2dn
    @Gamers-yv2dn 3 года назад

    Super work