You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connect to a SharePoint site to generate an app automatically from a custom list, or create a connection before you add data to an existing app or build an app from scratch.
22
22
@@ -37,39 +37,39 @@ If you want to manage data in a custom list, Power Apps can [generate a three-sc
37
37
1.[Sign in to Power Apps](https://make.powerapps.com?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc), select **Data** > **Connections** in the left navigation bar, and then select **New connection** near the upper-left corner.
38
38
39
39
> [!div class="mx-imgBorder"]
40
-
> 
40
+
> 
41
41
42
42
1. In the search box near the upper-right corner, type or paste **SharePoint**, and then select **SharePoint**.
43
43
44
44
> [!div class="mx-imgBorder"]
45
-
> 
45
+
> 
46
46
47
47
1. Perform either of these sets of steps:
48
48
49
49
- To connect to SharePoint Online, select **Connect directly (cloud services)**, select **Create**, and then provide credentials (if prompted).
> 
53
53
54
54
The connection is created, and you can add a data to an existing app or build an app from scratch.
55
55
56
56
- To connect to an on-premises site, select **Connect using on-premises data gateway**.
57
57
58
58
> [!div class="mx-imgBorder"]
59
-
> 
59
+
> 
60
60
61
61
Specify **Windows** as the authentication type, and then specify 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**.
67
67
68
68
> [!NOTE]
69
69
> If you don't have an on-premises data gateway installed, [install one](../gateway-reference.md), and then select the icon to refresh the list of gateways.
The connection is created, and you can add a data to an existing app or build an app from scratch.
75
75
@@ -78,24 +78,24 @@ If you want to manage data in a custom list, Power Apps can [generate a three-sc
78
78
1. In Power Apps Studio, open the app that you want to update, select the **View** tab, and then select **Data sources**.
79
79
80
80
> [!div class="mx-imgBorder"]
81
-
> 
81
+
> 
82
82
83
83
1. In the **Data** pane, select **Add data source** > **SharePoint**.
84
84
85
85
1. Under **Connect to a SharePoint site**, select an entry in the **Recent sites** list (or type or paste the URL for the site that you want to use), and then select **Connect**.
1. Under **Choose a list**, select the check box for **Documents** or one or more lists that you want to use, and then select **Connect**:
91
91
92
92
> [!div class="mx-imgBorder"]
93
-
> 
93
+
> 
94
94
95
95
Not all types of lists appear by default. Power Apps supports custom lists, not template-based lists. If the name of the list that you want to use doesn't appear, scroll to the bottom, and then type the name of the list in the box that contains **Enter custom table name**.
96
96
97
97
> [!div class="mx-imgBorder"]
98
-
> 
98
+
> 
99
99
100
100
The data source or sources are added to your app.
101
101
@@ -139,7 +139,7 @@ If you have several images in a SharePoint library, you can add a **Drop down**
139
139
The file names of the images in your library appear in **ImageList**.
140
140
141
141
> [!div class="mx-imgBorder"]
142
-
> 
142
+
> 
143
143
144
144
1. Add an **Image** control, and set its **Image** property to this expression:
145
145
@@ -150,7 +150,7 @@ If you have several images in a SharePoint library, you can add a **Drop down**
You can [download a sample app](https://pwrappssamples.blob.core.windows.net/samples/spdoclib_blogapp.msapp) that demonstrates a more complex approach to showing data from a SharePoint library.
156
156
@@ -168,7 +168,7 @@ In this one-screen app, the list in the lower-left corner shows all files in you
168
168
When you find the file that you want, select it to show it in the **Video**, **Image**, or **Audio** control along the right-hand side.
SharePoint lists with links to images stored in SharePoint document libraries may fail to render inside Power Apps with authentication errors.
212
+
213
+
Power Apps connections to SharePoint are made to an explicitly identified list, and not to a SharePoint site in general. Power Apps will try to resolve an external link to an external source. Rendering such images succeeds if there's no authentication required, or if the user has previously authenticated to the referenced SharePoint site. However, it's common that the Power Apps users on mobile devices may not have previously authenticated to the referenced SharePoint site for images. Using links to refer to images from SharePoint document libraries in this scenario may not succeed. This behavior applies even if a separate connection exists for the document library inside the app.
214
+
215
+
As a solution for such scenarios, store images on a CORS-enabled source such as [Azure Storage](https://docs.microsoft.com/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services), or a CDN service such as [Azure CDN](https://docs.microsoft.com/azure/cdn/cdn-cors) that allows anonymous access.
216
+
209
217
## Next steps
210
218
211
219
- Learn how to [show data from a data source](../add-gallery.md).
0 commit comments