Skip to content

Commit 33fc25e

Browse files
committed
More changes and TOC
1 parent 2dfdb5d commit 33fc25e

File tree

8 files changed

+47
-39
lines changed

8 files changed

+47
-39
lines changed

powerapps-docs/maker/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,8 @@
929929
href: ./canvas-apps/sharepoint/scenarios-customize-view-based-on-column-status.md
930930
- name: How to work with permissions in a lookup list from SharePoint site?
931931
href: ./canvas-apps/sharepoint/scenarios-lookup-list-permissions.md
932+
- name: How to create SharePoint integrated canvas app from scratch to view, edit, add, and delete SharePoint list items?
933+
href: ./canvas-apps/sharepoint/scenarios-sharepoint-form-from-scratch.md
932934
- name: Cognitive Services
933935
href: ./canvas-apps/cognitive-services-api.md
934936
- name: Transform your InfoPath forms to Power Apps
1.14 KB
Loading
10.3 KB
Loading
690 KB
Loading
-989 Bytes
Loading
72.9 KB
Loading

powerapps-docs/maker/canvas-apps/sharepoint/scenarios-intro.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: powerapps
66
ms.topic: conceptual
77
ms.custom: canvas
88
ms.reviewer: tapanm
9-
ms.date: 06/17/2020
9+
ms.date: 07/09/2020
1010
ms.author: emcoope
1111
search.audienceType:
1212
- maker
@@ -28,6 +28,7 @@ Articles in this section explain individual and short scenarios when working wit
2828
- [How to use drop down list with choices from lookup column in a SharePoint list?](scenarios-choice-to-lookup.md)
2929
- [How to customize an app screen based on column status inside SharePoint list?](scenarios-customize-view-based-on-column-status.md)
3030
- [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)
3132

3233
## SharePoint integration documentation
3334

powerapps-docs/maker/canvas-apps/sharepoint/scenarios-sharepoint-form-from-scratch.md

Lines changed: 43 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
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
33
description: This article explains how to create an app with SharePoint form functionality from scratch.
44
author: emcoope-msft
55
ms.service: powerapps
66
ms.topic: conceptual
77
ms.custom: canvas
88
ms.reviewer: tapanm
9-
ms.date: 08/07/2020
9+
ms.date: 07/09/2020
1010
ms.author: emcoope
1111
search.audienceType:
1212
- maker
1313
search.app:
1414
- PowerApps
1515
---
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?
1717

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.
1919

2020
> [!NOTE]
2121
> 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
3838

3939
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:
4040

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)
4444

4545
> [!IMPORTANT]
4646
> 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.
4747
4848
## Example
4949

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.
5151

5252
## Step 1 - Create a SharePoint list
5353

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:
5555

5656
![SharePoint list structure](./media/scenarios-sharepoint-form-from-scratch/1-sharepoint-list.png "SharePoint list structure")
5757

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

9595
![Create SharePoint connection](./media/scenarios-sharepoint-form-from-scratch/connect-cloud-sharepoint.png "Create SharePoint connection")
9696

97-
1. Select the SharePoint site where the list you created resides for the purpose of this scenario.
97+
1. Select the SharePoint site having the list you created earlier.
9898

9999
![Select SharePoint site](./media/scenarios-sharepoint-form-from-scratch/select-sharepoint-site.png "Select SharePoint site")
100100

@@ -147,7 +147,7 @@ Create a SharePoint list with columns and list items. For the purpose of this sc
147147
148148
## Step 6 - Add the capability to search and select item
149149

150-
1. Insert a **Text input** control to the canvas, and move it below the drop-dwon.
150+
1. Insert a **Text input** control to the canvas, and move it below the drop-down.
151151

152152
![Insert text input control](./media/scenarios-sharepoint-form-from-scratch/insert-text-input.png "Insert text input control")
153153

@@ -190,7 +190,7 @@ Create a SharePoint list with columns and list items. For the purpose of this sc
190190
191191
![Add shape and color fields](./media/scenarios-sharepoint-form-from-scratch/add-fields-edit-form.png "Add shape and color fields")
192192
193-
1. Re-arrange the screen layout to ensure the **Edit form** control is visible and doesn't overlay with other controls.
193+
1. Rearrange the screen layout to ensure the **Edit form** control is visible and doesn't overlay with other controls.
194194
195195
![Re-arranged screen](./media/scenarios-sharepoint-form-from-scratch/edit-form-arranged.png "Re-arranged screen")
196196
@@ -202,7 +202,7 @@ Create a SharePoint list with columns and list items. For the purpose of this sc
202202
203203
![OnSelect for list box](./media/scenarios-sharepoint-form-from-scratch/listbox-onselect.png "OnSelect for list box")
204204
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.
206206
207207
1. Set the **Item** property of the edit form control to the following formula:
208208
@@ -236,24 +236,6 @@ Create a SharePoint list with columns and list items. For the purpose of this sc
236236
- [SubmitForm()](../functions/function-form.md) - Used in this formula to submit the edit form and save the values to SharePoint list.
237237
- [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.
238238
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.
244-
245-
![Clear button](./media/scenarios-sharepoint-form-from-scratch/add-clear-button.png "Clear button")
246-
247-
1. Set the **OnSelect** property of the **Clear** button to the following formula:
248-
249-
```powerapps-dot
250-
Set(TextSelected,0)
251-
```
252-
253-
![OnSelect property for Clear button](./media/scenarios-sharepoint-form-from-scratch/clear-button.png "OnSelect property for Clear button")
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.
256-
257239
1. Insert **Text label** control.
258240
259241
![Text label](./media/scenarios-sharepoint-form-from-scratch/add-text-label.png "Text label")
@@ -262,7 +244,7 @@ Create a SharePoint list with columns and list items. For the purpose of this sc
262244
263245
![Label text updated](./media/scenarios-sharepoint-form-from-scratch/label-text.png "Label text updated")
264246
265-
1. Re-arrange the controls on the screen to order the edit controls.
247+
1. Rearrange the controls on the screen to order the edit controls.
266248
267249
![Re-arrange edit controls](./media/scenarios-sharepoint-form-from-scratch/rearrange-controls-edit.png "Re-arrange edit controls")
268250
@@ -293,7 +275,8 @@ Create a SharePoint list with columns and list items. For the purpose of this sc
293275
1. Set the **OnSelect** property of the **Delete** button to the following formula:
294276
295277
```powerapps-dot
296-
Remove([@Shapes], Switch(TextSelected,1,ListBox1.Selected,Dropdown1.Selected))
278+
Remove([@Shapes], Switch(TextSelected,1,ListBox1.Selected,Dropdown1.Selected));
279+
Set(TextSelected,0)
297280
```
298281
299282
![OnSelect property for Delete button](./media/scenarios-sharepoint-form-from-scratch/onselect-delete-button.png "OnSelect property for Delete button")
@@ -302,14 +285,27 @@ Create a SharePoint list with columns and list items. For the purpose of this sc
302285
303286
- [Remove()](../functions/function-remove-removeif.md) - Used in this formula to delete the selected SharePoint list item.
304287
- [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+
![App after all components added](./media/scenarios-sharepoint-form-from-scratch/app-completion-screen.png "App after all components added")
293+
294+
## Step 10 - Save the app
305295
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).
307297
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.
309299
310-
## Use the sample app
300+
1. Select **Save**.
311301
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+
![Save the app](./media/scenarios-sharepoint-form-from-scratch/save-app.png "Save the app")
305+
306+
1. Close the canvas app Studio.
307+
308+
## Step 11 - Test the app
313309
314310
1. Go to [Power Apps](https://make.powerapps.com).
315311
@@ -319,11 +315,20 @@ To play the app:
319315
320316
![Play the app](./media/scenarios-sharepoint-form-from-scratch/play-app.png "Play the app")
321317
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+
![Play the app animation](./media/scenarios-sharepoint-form-from-scratch/play-the-app.gif "Play the app animation")
321+
322+
## Next steps
323323
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.
324325
326+
Once the app is ready to use, [share the app](../share-app.md) with others.
325327
326328
### See also
327329
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)
328333
- [Formula reference](../formula-reference.md) for Power Apps
329334
- [Control reference](../reference-properties.md) for Power Apps

0 commit comments

Comments
 (0)