Connect to SharePoint from a canvas app
There are different ways to connect to SharePoint in a canvas app:
- Connect to a SharePoint site to generate an app automatically from a list.
- Create a SharePoint connection before you add data to a new or existing app.
Note
When you create or view a list in SharePoint, you're automatically redirected to Microsoft Lists. The list can always be found in both Microsoft Lists and SharePoint. Learn more in What is a list in Microsoft 365?.
Connect SharePoint to an app by creating an app
If you have a SharePoint site with a SharePoint list, you can create an app in Power Apps through the list menu in Microsoft Lists.
The Integrate > Power Apps > Create an app menu in Microsoft Lists takes you to Power Apps and builds an app using your list as a data source.
Learn more in Create a canvas app with data from Microsoft Lists.
Create a SharePoint connection
If you build a new app or have an existing app, you can connect to SharePoint through the Data menu in Power Apps.
Select More > Connections in the left navigation bar.
Select + New connection and choose SharePoint. A popup appears.
Choose either the cloud-services or on-premises option:
To connect to SharePoint Online, select Connect directly (cloud services) and then Create. Provide credentials (if prompted).
The connection is created, and you can add data to an existing app or build an app from scratch.
To connect to an on-premises site, select Connect using on-premises data gateway.
Choose Windows as the authentication type and add your credentials. If your credentials include a domain name, specify it as
domain\alias
.Under Choose a gateway, select the gateway that you want to use, and then select Create.
Note
If you don't have an on-premises data gateway installed, install one, and then select the refresh icon for a list of gateways.
The connection is created. You can add data to an existing app or build an app from scratch.
Add data to an existing app
In Power Apps Studio, open the app that you want to update, select Data on the left-pane.
Select Add data > Connectors > SharePoint.
A side panel opens. Under Connect to a SharePoint site, select an entry in the Recent sites list (or add your own URL), and then select Connect.
Under Choose a list, select the check box for one or more lists, then select Connect:
Note
Power Apps supports lists, not template-based lists. If you don't see your list, type the list name in Enter custom table name box.
You see a confirmation banner that your data source was added to your app.
Related information
- Learn more about working with lists in Power Apps in Integrate SharePoint Online into Power Apps overview
- Move SharePoint Custom Forms with Power Apps (white paper)