All Content
Timespan
explore our new search
​
Power Apps DIRECTLY upload files to SharePoint Document Library | GRAPH API
Power Apps
Jan 16, 2023 1:30 PM

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

by HubSite 365 about Reza Dorrani

Principal Program Manager at Microsoft Power CAT Team | Power Platform Content Creator

Citizen DeveloperPower SelectionPower AppsM365 Hot News

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 Microso

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.

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

Microsoft Graph API endpoint to Upload file to SharePoint

[https://learn.microsoft.com/en-us/graph/api/driveitem-put-content?view=graph-rest-1.0&tabs=http]

Office 365 Groups Connector

[https://learn.microsoft.com/en-us/connectors/office365groups/]

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

[https://learn.microsoft.com/en-us/connectors/office365groups/#send-an-http-request]

Use the Microsoft Graph API

[https://learn.microsoft.com/en-us/graph/use-the-api]

Microsoft Graph Explorer Documentation

[https://learn.microsoft.com/en-us/graph/graph-explorer/graph-explorer-overview]

Microsoft Graph Explorer

[https://developer.microsoft.com/en-us/graph/graph-explorer]

Download Sample App

[https://github.com/rdorrani/PowerApps/blob/master/DocumentLibraryPowerApps_20230116000444.zip]