Тёмный

Super easy method to Display PDF Files Stored in SharePoint in Power Apps PDF Viewer 

Paul Murana
Подписаться 6 тыс.
Просмотров 44 тыс.
50% 1

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 149   
@carrsgroup3659
@carrsgroup3659 2 года назад
This is incredible. I started looking for a solution for this over a year and a half ago, and revisited it a few times. This works wonderfully. Great work again
@edjk6278
@edjk6278 7 месяцев назад
This is brilliant. I too have seen Reza’s method and battled a bit..not easy for long term support. This is far more straightforward. I’m a big fan of your work and continue to learn from videos. Don’t Stop…. Thanks mate!
@PaulieM
@PaulieM 7 месяцев назад
Thank you! I will keep going!
@JackCastro
@JackCastro Год назад
Best solution yet! While I adore @RezaDorrani, this one simplifies, err, updates PDF viewer capabilities. Y'all are awesome! Thanks so much! ♥
@PaulieM
@PaulieM Год назад
Thank you Jack, appreciate it.
@isvisvisvisv
@isvisvisvisv 6 месяцев назад
Thank you Paul, your solution was really helpful even when I am starting with Power Automate and Power Apps. Appreciate it!
@PaulieM
@PaulieM 6 месяцев назад
Thanks for feedback, glad it helped.
@ConnorMcLarnon
@ConnorMcLarnon 2 года назад
Thanks a lot, I was also on Rezas vid but was having a lot of difficulty with PDF, I now have used a combination of both methods :)
@PaulieM
@PaulieM 2 года назад
It’s a nice method. I have a new method I need to implement actually
@Ironhead80
@Ironhead80 2 месяца назад
Most elegant method I've seen. Thank you sir!
@PaulieM
@PaulieM 2 месяца назад
I’m glad you like it - it is very neat.
@MattAdams-r3j
@MattAdams-r3j 25 дней назад
Just what i needed, great job.
@krystiank9583
@krystiank9583 2 года назад
Thank you! I had a big problem with download file content from sharepoint, your video help me a lot!
@myriaadamidou9136
@myriaadamidou9136 2 года назад
Thank you, thank you, thank you, your solution is the only thing that worked for me, I tried everything! Well done!
@monicalindin1392
@monicalindin1392 Год назад
Fantastic tutorial, thank you. I've been working on this issue for months and your solutions works beautifully, thank you for sharing your knowledge.
@PaulieM
@PaulieM Год назад
Thank you for the kind feedback 👍🏻
@Sophie-fh3lh
@Sophie-fh3lh Месяц назад
I love this video and how you demonstrated an alternative to Reza's! I too am storing documents in sharepoint but I have data about each document in dataverse and an entry in the table contains a sharepoint link to the document relevant to that entry. I was wondering if I could use this hyperlink from dataverse instead of a flow directly connected to the sharepoint folder?
@PaulieM
@PaulieM Месяц назад
That is exactly what I do, when the document is created I store the ID of the document from the SharePoiint library in dataverse and then show it based on the selected Dataverse record.
@janurbanek1127
@janurbanek1127 Год назад
best solution, no buttons calling flows etc. Love it
@MynoroKaneco
@MynoroKaneco 2 года назад
Muito bom Parabéns, vi vários vídeo e esse foi o melhor para gerar pdf.
@emma6596
@emma6596 2 года назад
It works perfectly, thank you very much for sharing!
@PaulieM
@PaulieM 2 года назад
Happy to hear! I love using this method.
@brendanv666
@brendanv666 Год назад
Hi Paulie, Thank you so much for that. A very simple way of producing the PDF.
@PaulieM
@PaulieM Год назад
You're very welcome!
@amirulfaiz9860
@amirulfaiz9860 3 года назад
Hi Paulie, Superb! thanks for the video its work at my end. However, i have encountered 1 issue when I tried to upload more documents in that SharePoint (roughly around 9 documents) and looks like the sharepoint is jammed. Is there anyway that can solve this issue?
@PaulieM
@PaulieM 3 года назад
Just change the view not to show the column containing the encoded document.
@amirulfaiz9860
@amirulfaiz9860 3 года назад
Hi @@PaulieM thanks! it works at SharePoint. However, when I try to access the powerapps using a mobile phone it is still slow for the gallery that shows all the list of pdf to appear (around 20-30 seconds). Any idea to solve it?
@PaulieM
@PaulieM 3 года назад
@@amirulfaiz9860 Are you storing the PDF in the same list that you are creating the gallery from? This is what makes it slow. In my example the list containing the PDF data contains only the PDF data. The gallery is loaded from a separate list which contains only the ID of the PDF list item. So that means when a record is selected the PDF library is always filtered to just one record.
@rodelski5514
@rodelski5514 2 года назад
@@PaulieM hi, really appreciate if you can explain this workflow a little more detailed. I'm pretty newbie to this powerapps and it would be great to see how you did this. thanks
@evandrodossantosYou
@evandrodossantosYou 8 месяцев назад
Hi. congratulations! It´s an amazing flow. I tried to apply it into a Sharepoint list, but it didn´t work yet. In my case, when a file is created in Sharepoint, I create a item in sharepoint list. This sharepoint list is the source for powerapp. Any clue to link PDF viewer from sharepoint list?
@BalajiMuralikrishnan
@BalajiMuralikrishnan 3 года назад
Amazing idea and super implementation. Thank you Will the same approach work for other file formats?
@PaulieM
@PaulieM 3 года назад
Yes, for images etc this will work (but obviously not in the PDF viewer control)
@fanzfanzilla
@fanzfanzilla Год назад
Thank you for the video. How big file can be stored in the sharepoint field? Is there a file size limitation?
@VictorIrikefe
@VictorIrikefe 11 месяцев назад
This is a great tutorial... very smart way to execute this. Thanks so much.
@PaulieM
@PaulieM 11 месяцев назад
Thanks - glad it helped you out
@ahmadzabidi4497
@ahmadzabidi4497 2 года назад
Great video Paulie! i have a question if i can make the loading time for my gallery any faster because i have around 30 diffrent pdf in my sharepoint document list.
@jiazjun3069
@jiazjun3069 2 года назад
Great sharing, Paulie! Thank you for bringing up this amazing solution! Alternatively, if let say I want to put up the PDF in Power BI, instead of Power Apps, can we do that?
@gregoirepesenti
@gregoirepesenti 7 месяцев назад
Hello, amazing solution. now, what if I need to filter the gallery based on a label text ou combox box selected value ?
@kf2280
@kf2280 2 года назад
Thanks for this video I created a power app for user to attach PDF file and data will save all combined files to share point but I want to save PDF files in separate folders for each factory. How can this be done? Thank you very much.
@thegame4988
@thegame4988 3 года назад
Thank you for this amazing solution. It will come extremely useful for me in a project I have been working on.
@PaulieM
@PaulieM 3 года назад
Really pleased to hear that. It works so well, I’m using it for a project I am building right now.
@rodelski5514
@rodelski5514 2 года назад
great share and video. Just wondering since the flow trigger is "when a new file is added...", what if I have existing pdfs already uploaded to different subfolders in the Shared Documents. will this workflow still work? thanks in advance
@rodelski5514
@rodelski5514 2 года назад
also, Im very new with flow, any ideas on how to filter that this dataURI can only be applies to PDFs only? thanks in advance
@applecartdigital55
@applecartdigital55 2 года назад
Nice work paul, works a treat
@SethBrauning
@SethBrauning Год назад
Hello Paulie, thank you very much for the great video! Really appreciate it. Is there a way to implement this without using the PowerApps gallery? In otherwards, have the PDF viewer open the file directly from the sharepoint Library by filename or ID and then use the dataURI for displaying the file contents?
@PaulieM
@PaulieM Год назад
Yes, but you would need a collection of IDs from SharePoint, I don't remember what is in the video content but in my PDF viewer I used code like: LookUp(ERPDocs,ID = galMeta.Selected.SharePointID).dataURI) ERPDocs is the SP List, where ID is being used to lookup the record where it is equal to the ID in the selected gallery. So you would only need to replace: galMeta.Selected.SharePointID With your SharePoint ID and you'd be set.
@SethBrauning
@SethBrauning Год назад
@@PaulieM Thanks for the great answers. I think I found a way to make it work.
@meshmut
@meshmut 7 месяцев назад
Saved the day my Friend
@csmtiltm5910
@csmtiltm5910 6 месяцев назад
So good, this is the easest I've found!! Thanks x 1000...0000
@PaulieM
@PaulieM 6 месяцев назад
Thanks for the feedback, it really is an easy method. Glad it helped.
@DeShonClark
@DeShonClark 3 года назад
Still chiseling away trying to embedded images in a Word doc...this may be the missing piece for signatures...I think this solution may get us closer if we can get Word to render binary
@PaulieM
@PaulieM 3 года назад
Hey DeShon, please remind me why this isn’t possible? Can you not just use an image control in word to loads a signature in?
@DeShonClark
@DeShonClark 3 года назад
Hey Paul, does the image control require premium connector?
@PaulieM
@PaulieM 3 года назад
@@DeShonClark Yes - I will have another play this week and see if I can force something in! :D
@DeShonClark
@DeShonClark 3 года назад
I'm getting a lot of comments on my side for this. I'm think the easiest may be to use a premium connector but design it in a way you only need premium for a service account and not all users. Just keep me posted Paul! Thank you.
@PaulieM
@PaulieM 3 года назад
I’ve done it - will be posting info this week.
@nooralkhawam4161
@nooralkhawam4161 3 года назад
Amazing as usual. Can you please advise how to apply digital signature in the viewed pdf ?
@17blackshadow17
@17blackshadow17 Год назад
Hello, thanks for the very explanatory video but I still have a problem. I followed all the steps but in the end, although there are no errors, the pdf viewer remains black...
@viettuan174
@viettuan174 Год назад
Hi Paulie, thanks so much for your video. I followed your instructions and made an app to upload and review pdf documents. However, when more files upload (21 files now with average 4mb each file), the app starts very low to load gallery of documents and then pdf viewer (4minutes). So does the size of the document library be the cause of the problem and how can I improve it? Thanks.
@Addek
@Addek 2 года назад
Hey Paulie, thank you for this really helpful Video. I wonder if you know, how to send these PDFs per email. And if you do so, could you show this in another Video?
@JoaoSilva-so7xz
@JoaoSilva-so7xz 5 месяцев назад
What about if I wanna use a sharepoint folder inside Documents, instead of a proper List?
@jesseveentjer2075
@jesseveentjer2075 2 года назад
Cool solution, thanks for sharing
@jainabhinav2780
@jainabhinav2780 5 месяцев назад
any way we can merge the pdf's without any third party connector. or any way we can convert pdf to html without any connector?
@danishislam692
@danishislam692 2 года назад
Thank you for sharing this but my pdfs are loading very slow (30-40 seconds). I am getting dataURI value on screen visible property (as i am showing pdf on different screen than the gallery). any suggestions ?
@manid2530
@manid2530 2 года назад
Hi, did you figure this out ?
@danishislam692
@danishislam692 2 года назад
@@manid2530 actually it seems to be the internet issue and also I saved my datauri values in a seperate list than library, so now it seems to be fine
@rodelski5514
@rodelski5514 2 года назад
@@danishislam692 hi...im having the same issue. Can you help explain this a little further? Like saving datauri to a seperate list? Also, can you filter that only pdfs can generate datauri? Thanks a lot
@itcommander709
@itcommander709 2 года назад
Great and thank you for showing solution
@victoralbertodurangutierre5451
@victoralbertodurangutierre5451 7 месяцев назад
I'm not able to select dataURI any longer, any suggestion?
@zc8347
@zc8347 Год назад
Wow! Works great 🎉🎉🎉
@mumialpi
@mumialpi 2 года назад
Hello, we keep some 10-500 mb of pdf portfolios on our sharepoint library. Due government network limitation, we have to download each file to review and digitally sign, then upload again. Can you think of a work around for pdf portfolio to open directly in browser to be reviewed and digitally signed by PKI cert? My researched showed that there is an add-on by Adobe for SharePoint but Air force Sharepoint does not allow this add on to be added. Looking for workarounds. Thank you
@vinisz
@vinisz Год назад
I have data:application/pdf when doing "get file content" (so different then the JSON output shown in the movie) , can I convert data:application/pdf to data/octetstream ?
@kartikagarwal9339
@kartikagarwal9339 2 месяца назад
Is it possible for us to store this pdf file in dataverse table and load it from there instead of getting it from share point.
@PaulieM
@PaulieM 2 месяца назад
Yes, you can store it in a string column just like I did in SharePoint, just beware that base64 is very inefficient so you will use a lot of space storing PDFs in a short time.
@pranaykumar7623
@pranaykumar7623 2 года назад
What is the scenario for the files already existing on the library? please let me know the solution for this.
@carrsgroup3659
@carrsgroup3659 2 года назад
You can still run the flow on existing files to populate that URI field. You would use a combination of get files then get file content.
@DarrenCarlson-zv6ec
@DarrenCarlson-zv6ec 6 месяцев назад
When I attempt this, PowerAutomate doesn't show the encoded string value in the Inputs and Outputs parameters of the Compose step. I'm sure I'm making some rookie PowerAutomate error but can't figure out how to fix it. What it is showing is a link which leads to an azure address that actually displays the content of the PDF I'm testing with.
@DarrenCarlson-zv6ec
@DarrenCarlson-zv6ec 6 месяцев назад
I proceeded because that step wasn't really necesary anyway. But although the flow seems to do exactly what your flow did/does, when I put the value from the URI into a PDFViewer.Document property, it displays a message saying it can't open the file and shows a link to open in a browser.
@DesOwen
@DesOwen 2 года назад
Nice one Paul.
@Makaveli198
@Makaveli198 3 года назад
Awesome video, ia m facing challenges with error " action in this flow may result in an infinite trigger loop" if you can help
@PaulieM
@PaulieM 3 года назад
Are you creating a file in the document library from within the trigger?
@aramayomurrayjoaquin2094
@aramayomurrayjoaquin2094 Год назад
I have a doubt plz, i wanted to know if its posible to do zoom the pdf, no matter what the way of uploading the pdf to powerapps, i only want to be able to make a zoom on my pdf viewer on powerapps, this is because i have a pdf that contents images intead of text, if someone knows or has an idea to make it possible ill be glad to you, tnx!
@PaulieM
@PaulieM Год назад
The PDF Viewer has the zoom function built right into it.
@pmd7530
@pmd7530 2 года назад
Hi Paulie. I've followed your guidance but the flow always fails with error message "File not found" which doesn't seem possible given that adding a file is what triggers the flow. Any ideas for how to resolve this please? I've tried a variety of tweaks all with the same result.
@diraneserges6076
@diraneserges6076 2 года назад
Great tutorial please it is possible to implemant the deleting ooperation
@adriaanaylsworth263
@adriaanaylsworth263 3 месяца назад
I tried following your steps. But the input for the Compose action is only the file, unlike yours.
@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?
@frodesellevoll
@frodesellevoll Месяц назад
I have used this method for a while and it worked well. but then it stopped showing the pdf in powerapps. After a lot of troubleshooting, it turned out that the amount of data was too large to get into powerapps, so I got an error message. The limit I have is 17 files. The problem is that every week there is a new pdf in sp.
@PaulieM
@PaulieM Месяц назад
I have used this method with over 300,000 files. The trick is to only load the data for the selected PDF.
@johnnytao7588
@johnnytao7588 3 года назад
Another great learning video. :-)
@PFnism
@PFnism Год назад
How do you do it with 2 screens? 1 screen for the gallery of files and another screen for the pdf viewer?
@PaulieM
@PaulieM Год назад
One is a gallery, one is the PDF viewer control.
@riccol1972
@riccol1972 3 года назад
Odd, when I view the content in the compose, I get the actual PDF displayed as output - not the content. I have the following in the dataURI field dataUri(base64ToBinary(base64(body('Get_file_content')))) and this works ?
@PaulieM
@PaulieM 3 года назад
Strange, what browser is that in?
@riccol1972
@riccol1972 3 года назад
@@PaulieM Chrome. Its working fine, have converted many PDFs
@rodelski5514
@rodelski5514 2 года назад
@@riccol1972hi im having the same issue. What was your solution/workaround? Thanks
@riccol1972
@riccol1972 2 года назад
@@rodelski5514 It's been a while but I've just checked the flow and it still works as above. Move PDF into Temp doc lib and then convert to base64 in another list to display PDF directly in powerapp.
@rodelski5514
@rodelski5514 2 года назад
@@riccol1972 glad that your flow is still working. I'm sorry still don't understand this. any chance we can be on a zoom call or something? thanks
@itforeveryone5426
@itforeveryone5426 2 года назад
How to push notification for user? and user click push notification after view file pdf in gallery or deep link or navigate sub screen? thanks. help me
@vw3538
@vw3538 2 года назад
My inputs/outputs are not displayed under my compose. How do I get them to display.
@julien8979
@julien8979 Год назад
Hello Paulie, thanks for sharing. Is this option available with Azure Blob instead of SharePoint and will make it work to display different types of documents using the PDF Viewer?
@jeffscott9335
@jeffscott9335 2 года назад
Great idea, but I can't get it to work. The Update File Properties step returns "'datauri(base64ToBinary(outputs('Get_file_content')['$content']))' cannot be evaluated because property '$content' doesn't exist, available properties are 'statusCode, headers, body'."
@janelouise369
@janelouise369 2 года назад
Hi Paulie I have implemented this successfully but when I load the selected gallery item into a collection and try to reference the URI from the collection it no longer works. any ideas?
@PaulieM
@PaulieM 2 года назад
Hi Jane, it has been a while since I looked at this. I will try it again this evening and see if I can spot any potential pitfalls.
@mamacassi
@mamacassi 3 года назад
This is a super easy way to do this - however my pdf's still dont show - is that because the library is shared to members of my environment/team ? I need to keep my documents secure and still have them viewable but Ive tried so many ways and it never works.
@greciamunoz600
@greciamunoz600 2 года назад
Hi, i have the same issue... did you get a solution?
@mamacassi
@mamacassi 2 года назад
@@greciamunoz600 I had to rollback to an earlier verison on power app. Tbey said it was a bug but would be getting fixed so dont know if its fixed yet. Perhaps try rolling back. I had to roll back 2 or 3 versions and that was 2 months ago.
@SAULSM17
@SAULSM17 3 года назад
Gracias!
@XeniaD
@XeniaD 8 месяцев назад
hi paul , hope you can see this message , this works but my team cannot see the documents bacause of JSON format
@PaulieM
@PaulieM 8 месяцев назад
Why not? Just hide the json column from the view and your team will see the documents normally in the library or directly in the power app using the json.
@XeniaD
@XeniaD 8 месяцев назад
Paulie , sorry . It says “ You cannot retrieve document , the response is not in JSON format “
@PaulieM
@PaulieM 8 месяцев назад
@@XeniaD I’m not sure where you have gone wrong. You can get in touch with me via my blog and I can help you out.
@XeniaD
@XeniaD 8 месяцев назад
@@PaulieM Thank you so much! it worked amazingly , QQ can i upload many documents at once or gradually? also i assume this method would work for any other type such as Word,PPT and excel right?
@PaulieM
@PaulieM 8 месяцев назад
@@XeniaD it will only work with a PDF I’m afraid.
@itforeveryone5426
@itforeveryone5426 2 года назад
so good
@gerardoramirez8252
@gerardoramirez8252 3 года назад
Funciona perfectamente 18/10/2021, muchas gracias muy
@gerardoramirez8252
@gerardoramirez8252 3 года назад
Hasta esta fecha es el mejor tutorial que he encontrado para poder visualizar los PDF
@greciamunoz600
@greciamunoz600 2 года назад
@@gerardoramirez8252 ¿En tu caso la lista en donde se guardan los pdfs... tuviste que brindar alguna clase de permisos a los usuarios de la app para que pudieran visualizarlos?.... Saludos!
@tmalocalcontent
@tmalocalcontent Месяц назад
Not sure what happend. It works for me for a long period of time but a few weeks a ago it did not work. I mean for my PowerApp pdf viewer cannot show pdf file from sharepoint.
@PaulieM
@PaulieM Месяц назад
That’s interesting - still working for me but I’m interested to know if it has stopped working due to an update that hasn’t hit me yet.
@tmalocalcontent
@tmalocalcontent Месяц назад
@@PaulieM I just found that if I change authoring version to the olderone and published. Problem went away and every worked just fine.
@PaulieM
@PaulieM Месяц назад
@@tmalocalcontent that is interesting, perhaps this technique may not work into the future.
@dixitjoshi3947
@dixitjoshi3947 10 месяцев назад
but why large number of pdf's are not loading in gallery
@AlQuLa
@AlQuLa 3 года назад
Could it be that since yesterday this is no longer supported by the pdf viewer?
@PaulieM
@PaulieM 3 года назад
It’s the studio update today causing the problem. The PDF viewer does not work at all in the environments I’ve checked. But if you change the studio version it comes back to life.
@AlQuLa
@AlQuLa 3 года назад
@@PaulieM thanks for the answer! What do you mean with studio version?
@PaulieM
@PaulieM 3 года назад
@@AlQuLa check this out: powermaverick.dev/2020/08/03/authoring-version-in-canvas-apps/
@AlQuLa
@AlQuLa 3 года назад
@@PaulieM Wow man, I've been figuring out why it didn't work for about 8 hours today... You are a lifesaver! I have only been working with powerapps for a few months but it's people like you who keep me going! Big thumbs up for you man, have the best weekend!!!
@PaulieM
@PaulieM 3 года назад
@@AlQuLa Thank you 🙏
@TheAljwal100
@TheAljwal100 Год назад
Thank you for this video tutorial, but I do not recommend this method, I have many pdf files and this causes a very slowdown in the application and the SharePoint library
@PaulieM
@PaulieM 8 месяцев назад
It doesn’t slow the library at all if you hide the column.
@arjungoud3450
@arjungoud3450 2 года назад
Somehow my page has crashed,
@Sunilprakashsabbithi
@Sunilprakashsabbithi Год назад
I followed your steps but i am always getting this error please let me know if there any solution. Invalid or corrupted PDF file. More Information Close ..PDF.js v2.14.305 (build: eaaa8b4ad) Message: Invalid PDF structure.
Далее
SharePoint Document Library Tutorial
20:22
Просмотров 675 тыс.
РЫБКА С ПИВОМ
00:39
Просмотров 387 тыс.
Use Document Libraries not Attachments with SharePoint
26:21
Power Apps SharePoint Document Library Tutorial
28:41