Power Apps DIRECTLY upload files to SharePoint Document Library | GRAPH API

preview_player
Показать описание
In this Power Apps design tutorial video, I will showcase how to upload multiple files directly from Power Apps to SharePoint document library using the Microsoft Graph API. We will leverage the Office 365 groups connector's (standard connector) "Send an HTTP request" action in PowerApps to call the Graph API to upload files from attachments control.
Video will include a demo of an end-to-end SharePoint document library experience in Power Apps.

Video includes the following:
✅ Uploading files from Power Apps to SharePoint Document Library without Power Automate
✅ Upload files to SharePoint using Graph API in Power Apps
✅ Uploading multiple files from Power Apps to SharePoint Document Library and set metadata (edit document properties)
✅ Use Graph API PUT method to upload the files using Office 365 Groups connector's "Send an HTTP Request" function
✅ Uploading files to document library at root or folder level

All of the above using standard connector actions in Power Apps.

Useful Links 🔗

Microsoft Graph API endpoint to Upload file to SharePoint

Office 365 Groups Connector

Send an HTTP request - Construct a Microsoft Graph REST API request to invoke

Use the Microsoft Graph API

Microsoft Graph Explorer Documentation

Microsoft Graph Explorer

Power Apps SharePoint Document Library Tutorial

PowerApps PDF Viewer SharePoint Document Library without flow (view PDFs and Office files directly in Power Apps)

Download Sample App

#PowerApps #SharePoint #MicrosoftGraph #PowerPlatform

Table of Contents:
00:00 - Introduction to upload files to SharePoint Document Library from Power Apps via Graph API
00:34 - SharePoint Document Library
01:30 - Create a Power App connected to SharePoint Document Library
03:40 - Upload document from Power Apps?
04:12 - Upload files from Power Apps Attachments Control
06:22 - Upload files from PowerApps to SharePoint using Graph API
07:33 - Microsoft Graph Explorer
08:13 - Graph API - Upload files to SharePoint document library
11:30 - Call send an http request from Power Apps to upload files to SharePoint
18:20 - End to end document library SharePoint experience in Power Apps
20:42 - Subscribe to Reza Dorrani channel

🤝 Let’s connect on social:
Рекомендации по теме
Комментарии
Автор

This is so good Rezaa who needs Netflix when you are in Youtube :)

petereriksson
Автор

Reza - you are a genius! Whenever I am trying to do something in Power Apps, I always come back to you. With this video you get a file into Sharepoint (with no Flow). By using the code you made to get files to show in the pdfviewer (another excellent video) and putting that code into the Record.Value here, you can now backup a file to pdf in another library - I have used it as part of a document control to supersede the old version as a pdf

BrianWainman
Автор

Reza, I wanted to say that I got a job as a PowerPlatform Developer, and it's mainly because of you, because from your videos I've learnt so much. I will be forever grateful

zerokhan
Автор

OMG... you're a GENIUS!!! I've been trying to get my app to upload file attachments for the last 3 weeks using power automate. This worked first try! THANK

neorecharge
Автор

Amazing Reza, I wish we can have another channel on Python from you. I know its too much to ask but your content delivery has been soo simple and straight forward to the community.

Deadpool
Автор

Nice video. For who is not see Libraries IDs, dont forget activate Document ID service under Site Collection Features.

michalsubrt
Автор

Thank you reza, it's the 1st time that I discover this with powerapp, ... really it's great👌

youtube_Salim
Автор

This was even better method for uploading files than with flow. And i was able to get it work this time 🙂 But i like to use dynamic variable for upload to target folder, instead of root. I manage to insert variable between http-request, but this make only whole path folders to root.

mattiee
Автор

Awesome. I've had mixed results using PowerAutomate to upload files (often seems slow to trigger), so it's great to learn an alternative.

JasonRoberts-zkns
Автор

We can directly patch it as well using filecontent in library without graph api, but thanks to you I learnt graph api approach as well

Saif_Ali_Khan_
Автор

Amazing stuff!! This opens up new opportunities. Thank you

dineshb
Автор

I could see this being useful to me down the road, Good stuff Reza :)

yttanel
Автор

Great video Reza, you are a game changer in powerapps!

The_US
Автор

Great tutorial on Attachments --> Doc Library

gslvqz
Автор

Awesome as usual, Reza! I run into an issue I managed to solve this way: When quering drives, it won't return any data unless modify permission right there in the "Modify permissions" tab, and concent Sites.Read.All, Files.ReadWrite, Files.ReadWrite.All, Sites.ReadWrite.All in my logged in session from Graph Api Explorer (all delegated permissions so no admin concent requested as Reza states :) ). Cheers!

dquagliano
Автор

Thanks Reza, you know I've been waiting for this 😁

What great idea on his documents are uploaded, I guess the only Downside is the file limitation. Have you tried it with larger files? Are you aware if this limit is likely to increase at all?

Also is that resetting the gallery by a variable reduces the impact then I'll look into putting that into my Apps in future - Might need to do a few tests tho.

Thanks again, keep up the great work 👌

bobleach
Автор

Thank you Reza. Your videos area really amazing!!. Great job!! Even, in the site, there are some lists and libreries, when I make the query, value is empty [ ]

AlbertoAllegueVarela
Автор

Wow! Thanks for informing me a new useful feature with API.

MrRtth
Автор

Thanks and right on time for a solution for my problen. Yo're the best ☺

debernd
Автор

You are the reason why I have a youtube account.

wadihrizk