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
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/sharepoint/scenarios-intro.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.service: powerapps
6
6
ms.topic: conceptual
7
7
ms.custom: canvas
8
8
ms.reviewer: tapanm
9
-
ms.date: 06/17/2020
9
+
ms.date: 07/09/2020
10
10
ms.author: emcoope
11
11
search.audienceType:
12
12
- maker
@@ -28,6 +28,7 @@ Articles in this section explain individual and short scenarios when working wit
28
28
-[How to use drop down list with choices from lookup column in a SharePoint list?](scenarios-choice-to-lookup.md)
29
29
-[How to customize an app screen based on column status inside SharePoint list?](scenarios-customize-view-based-on-column-status.md)
30
30
-[How to work with permissions in a lookup list from SharePoint site?](scenarios-lookup-list-permissions.md)
31
+
-[How to create SharePoint integrated canvas app from scratch to view, edit, add, and delete SharePoint list items?](scenarios-sharepoint-form-from-scratch.md)
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/sharepoint/scenarios-sharepoint-form-from-scratch.md
+43-38Lines changed: 43 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,21 @@
1
1
---
2
-
title: How to create SharePoint integrated canvas app from scratch to view, edit, add and delete SharePoint list items. | Microsoft Docs
2
+
title: How to create SharePoint integrated canvas app from scratch to view, edit, add, and delete SharePoint list items. | Microsoft Docs
3
3
description: This article explains how to create an app with SharePoint form functionality from scratch.
4
4
author: emcoope-msft
5
5
ms.service: powerapps
6
6
ms.topic: conceptual
7
7
ms.custom: canvas
8
8
ms.reviewer: tapanm
9
-
ms.date: 08/07/2020
9
+
ms.date: 07/09/2020
10
10
ms.author: emcoope
11
11
search.audienceType:
12
12
- maker
13
13
search.app:
14
14
- PowerApps
15
15
---
16
-
# How to create SharePoint integrated canvas app from scratch to view, edit, add and delete SharePoint list items?
16
+
# How to create SharePoint integrated canvas app from scratch to view, edit, add, and delete SharePoint list items?
17
17
18
-
In this scenario article, you'll learn how to create an app with SharePoint form functionality from scratch. The app will demonstrate to you how to view, edit, add and delete SharePoint list items using canvas app without visiting SharePoint site.
18
+
In this scenario article, you'll learn how to create an app with SharePoint form functionality from scratch. The app will demonstrate to you how to view, edit, add, and delete SharePoint list items using canvas app without visiting SharePoint site.
19
19
20
20
> [!NOTE]
21
21
> For more details about different scenarios working with SharePoint forms and additional examples, go to [SharePoint scenarios overview](scenarios-intro.md).
@@ -38,20 +38,20 @@ The purpose of this scenario is to demonstrate how to create a canvas app from s
38
38
39
39
The scenario is a basic illustration of the canvas app capabilities when integrated with SharePoint. To enhance the layout with improved design or additional screens, go to the following relevant articles:
40
40
41
-
-[Add and configure controls](add-configure-controls.md)
42
-
-[Add and configure screen](add-screen-context-variables.md)
43
-
-[Understand forms, layouts and cards](working-with-forms.md)
41
+
-[Add and configure controls](../add-configure-controls.md)
42
+
-[Add and configure screen](../add-screen-context-variables.md)
43
+
-[Understand forms, layouts, and cards](../working-with-forms.md)
44
44
45
45
> [!IMPORTANT]
46
46
> The example in this scenario creates a sample app to view, edit, add and delete SharePoint list items. You can change the approach to customize the app differently based on your choices or business objective. When you customize your app with custom names for controls, ensure to use the correct control names in formula when following steps in this example.
47
47
48
48
## Example
49
49
50
-
This scenario example walks you through the steps to create an app and connect it to a SharePoint list to view, edit, add and delete SharePoint list items.
50
+
This scenario example walks you through the steps to create an app and connect it to a SharePoint list to view, edit, add, and delete SharePoint list items.
51
51
52
52
## Step 1 - Create a SharePoint list
53
53
54
-
Create a SharePoint list with columns and list items. For the purpose of this scenario, we've used a list with the following columns and list items:
54
+
Create a SharePoint list with columns and list items. In this scenario, we've used a list with the following columns and list items:
55
55
56
56

57
57
@@ -94,7 +94,7 @@ Create a SharePoint list with columns and list items. For the purpose of this sc
@@ -202,7 +202,7 @@ Create a SharePoint list with columns and list items. For the purpose of this sc
202
202
203
203

204
204
205
-
The [Set()](../functions/function-set.md) function sets a new variable named *TextSelected* to the value of *1* when a value in the list box is selected. The *TextSelected* variable is used in this scenario as a flag to control the actions and behavior of add, edit and delete capabilities as you'll see in the following sections.
205
+
The [Set()](../functions/function-set.md) function sets a new variable named *TextSelected* to the value of *1* when a value in the list box is selected. The *TextSelected* variable is used in this scenario as a flag to control the actions and behavior of add, edit, and delete capabilities as you'll see in the following sections.
206
206
207
207
1. Set the **Item** property of the edit form control to the following formula:
208
208
@@ -236,24 +236,6 @@ Create a SharePoint list with columns and list items. For the purpose of this sc
236
236
- [SubmitForm()](../functions/function-form.md) - Used in this formula to submit the edit form and save the values to SharePoint list.
237
237
- [Set()](../functions/function-set.md) function resets the *TextSelected* variable back to *o* so that a new item can be selected from the list box.
238
238
239
-
1. Insert a button.
240
-
241
-
1. Update **Text** property of the button added in the previous step to **Clear**.
242
-
243
-
1. Re-arrange the screen to add the **Clear** button above the list box.
1. Set the **OnSelect** property of the **Clear** button to the following formula:
248
-
249
-
```powerapps-dot
250
-
Set(TextSelected,0)
251
-
```
252
-
253
-

254
-
255
-
The [Set()](../functions/function-set.md) function resets the *TextSelected* variable back to *o* so that a new item can be selected from the list box.

@@ -302,14 +285,27 @@ Create a SharePoint list with columns and list items. For the purpose of this sc
302
285
303
286
- [Remove()](../functions/function-remove-removeif.md) - Used in this formula to delete the selected SharePoint list item.
304
287
- [Switch()](../functions/function-if.md) function checks first if the value of the variable *TextSelected* is *1* or not. If it is, the **Delete** button deletes the item selected from the list box. If not, the **Delete** button deletes the item selected from the drop-down control.
288
+
- The [Set()](../functions/function-set.md) function resets the *TextSelected* variable back to *o* so that a new item can be selected from the list box.
289
+
290
+
Now that you have all the app components configured, ensure the screen looks like the following example:
291
+
292
+

293
+
294
+
## Step 10 - Save the app
305
295
306
-
## Step 10 - Save, publish and share the app
296
+
Now that the app has view, edit, add, and delete capability added, [save the app](../save-publish-app.md#save-changes-to-an-app).
307
297
308
-
Now that the app has view, edit, add and delete capability added, [save and publish the app](../save-publish-app.md). You can also [share the app](../share-app.md) with others.
298
+
1. Select **File** menu.
309
299
310
-
## Use the sample app
300
+
1. Select **Save**.
311
301
312
-
To play the app:
302
+
1. When saving for the first time, the **Save** option takes you to **Save as**. Select **Save** to save the app to cloud.
303
+
304
+

305
+
306
+
1. Close the canvas app Studio.
307
+
308
+
## Step 11 - Test the app
313
309
314
310
1. Go to [Power Apps](https://make.powerapps.com).
315
311
@@ -319,11 +315,20 @@ To play the app:
319
315
320
316

321
317
322
-
If you're not the creator of the app, you can also use the link from the email notification received when the app is shared with you.
318
+
1. Test the app components.
319
+
320
+

321
+
322
+
## Next steps
323
323
324
+
If you edit the app with any changes, you must [publish](../save-publish-app.md#publish-an-app) the changes for others to see the changes.
324
325
326
+
Once the app is ready to use, [share the app](../share-app.md) with others.
325
327
326
328
### See also
327
329
330
+
- [Add and configure controls](../add-configure-controls.md)
331
+
- [Add and configure screen](../add-screen-context-variables.md)
332
+
- [Understand forms, layouts, and cards](../working-with-forms.md)
328
333
- [Formula reference](../formula-reference.md) for Power Apps
329
334
- [Control reference](../reference-properties.md) for Power Apps
0 commit comments