Skip to content

Commit 4a14d30

Browse files
committed
Added 2 scenarios
1 parent 53bc1d7 commit 4a14d30

File tree

12 files changed

+117
-24
lines changed

12 files changed

+117
-24
lines changed

powerapps-docs/maker/TOC.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,16 @@
907907
href: ./canvas-apps/sharepoint-scenario-alerts-flow.md
908908
- name: Walk through the completed scenario
909909
href: ./canvas-apps/sharepoint-scenario-summary.md
910+
- name: SharePoint integration scenarios
911+
items:
912+
- name: Overview
913+
href: ./canvas-apps/sharepoint-scenarios-intro.md
914+
- name: How to use lookup columns?
915+
href: ./canvas-apps/sharepoint-scenarios-choice-to-lookup.md
916+
- name: How to filter records using search box?
917+
href: ./canvas-apps/sharepoint-scenarios-filter-search-list.md
918+
- name: How to work with list permissions when using lookup columns?
919+
href: ./canvas-apps/sharepoint-scenarios-lookup-list-permissions.md
910920
- name: Cognitive Services
911921
href: ./canvas-apps/cognitive-services-api.md
912922
- name: Transform your InfoPath forms to Power Apps
13.2 KB
Loading
4.57 KB
Loading
15.6 KB
Loading
8.32 KB
Loading
19.2 KB
Loading
15.5 KB
Loading
19.1 KB
Loading

powerapps-docs/maker/canvas-apps/sharepoint-scenarios-choice-to-lookup.md

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,56 @@ ms.service: powerapps
66
ms.topic: conceptual
77
ms.custom: canvas
88
ms.reviewer: tapanm
9-
ms.date: 26/05/2020
9+
ms.date: 05/29/2020
1010
ms.author: emcoope
1111
search.audienceType:
1212
- maker
1313
search.app:
1414
- PowerApps
1515
---
16-
# Title
16+
# How to use drop down list with choices from lookup column in a SharePoint list?
1717

18-
Intro text
18+
In this scenario article, you'll learn how to use a drop down list with choices from a lookup column in a SharePoint list.
1919

20-
## Heading
20+
## Prerequisites
2121

22+
- You must have created an app using SharePoint connector that connects to a SharePoint list.
23+
- The SharePoint list should consist of a lookup column with values from another column.
2224

23-
## Next steps
25+
## Scenario details
2426

25-
Next scenario
27+
You can use lookup columns in SharePoint that consume values from other lists or libraries. When using such column as a field in a canvas app, you can use drop down list with choices.
2628

29+
To use the choices in a drop down list, you have to use the function [choices](../functions/function-choices.md). For example, `Choices([@'Vehicle registration'].Vehicle_x0020_type)` uses the SharePoint list **Vehicle Registration** and the column **Vehicle type** for the lookup of the type of the vehicle.
30+
31+
## Example
32+
33+
1. Sign in to [Power Apps](https://make.powerapps.com).
34+
35+
1. [Create](app-from-sharepoint.md) a new app, or [edit](edit-app.md) an existing app.
36+
37+
> [!TIP]
38+
> Ensure the app uses SharePoint connection and connects to a SharePoint list as described in the prerequisites.
39+
40+
1. Select **+** (Insert) from the left pane.
41+
42+
1. Select **Drop down**.
43+
44+
![Insert drop down](./media/sharepoint-scenarios-choice-to-lookup/insert-drop-down.png "Insert drop down")
45+
46+
1. Update the **Items** property with the following formula:
47+
48+
`Choices([@'Vehicle registration'].Vehicle_x0020_type)`
49+
50+
Replace **Vehicle registration** with the name of your SharePoint list and **Vehicle type** with the name of lookup column in the list.
51+
52+
![Choices formula](./media/sharepoint-scenarios-choice-to-lookup/choices-formula.png "Choices formula")
53+
54+
1. Play the app, or press the **Alt** key on the keyboard and select the drop down.
55+
56+
![Drop down choices](./media/sharepoint-scenarios-choice-to-lookup/drop-down-choices.png "Drop down choices")
57+
58+
### See also
59+
60+
- [Formula reference](formula-reference.md) for Power Apps
61+
- [Control reference](reference-properties.md) for Power Apps

powerapps-docs/maker/canvas-apps/sharepoint-scenarios-filter-search-list.md

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,62 @@ ms.service: powerapps
66
ms.topic: conceptual
77
ms.custom: canvas
88
ms.reviewer: tapanm
9-
ms.date: 26/05/2020
9+
ms.date: 05/29/2020
1010
ms.author: emcoope
1111
search.audienceType:
1212
- maker
1313
search.app:
1414
- PowerApps
1515
---
16-
# Title
16+
# How to filter a search list in an app?
1717

18-
Intro text
18+
In this scenario article, you'll learn how to filter a search list in a canvas app.
1919

20-
## Heading
20+
## Prerequisites
2121

22+
- You must have created an app using SharePoint connector that connects to a SharePoint list.
23+
- The SharePoint list should consist of several list items to filter data inside canvas app.
2224

23-
## Next steps
25+
## Scenario details
2426

25-
Next scenario
27+
You can use text input control in a canvas app to input text and filter the list such as a data table to filter list items from the connected SharePoint list.
2628

29+
To use the ability to search using a text input and filter the records, you have to use the function [filter](../functions/functions/function-filter-lookup.md). For example, `Filter([@Colors], StartsWith(Title, TextInput1.Text))` uses the SharePoint list connection **Colors** and the column **Title** to filter the records.
30+
31+
## Example
32+
33+
1. Sign in to [Power Apps](https://make.powerapps.com).
34+
35+
1. [Create](app-from-sharepoint.md) a new app, or [edit](edit-app.md) an existing app.
36+
37+
> [!TIP]
38+
> Ensure the app uses SharePoint connection and connects to a SharePoint list as described in the prerequisites.
39+
40+
1. Select **+** (Insert) from the left pane.
41+
42+
1. Select **Text Input**.
43+
44+
![Insert text input](./media/sharepoint-scenarios-filter-search-list/insert-text-input.png "Insert text input")
45+
46+
1. Likewise, insert a **Data table**.
47+
48+
![Insert data table](./media/sharepoint-scenarios-filter-search-list/insert-data-table.png "Insert data table")
49+
50+
1. Update the **Items** property of the data table with the following formula:
51+
52+
`Filter([@Colors], StartsWith(Title, TextInput1.Text))`
53+
54+
Replace **Colors** with the name of your SharePoint list, **Title** with the name of column in the list, and **TextInput1** with your text input control name.
55+
56+
![Filter formula](./media/sharepoint-scenarios-filter-search-list/filter-formula.png "Filter formula")
57+
58+
1. Play the app.
59+
60+
1. Enter text, such as 'B' to filter items starting with 'B'.
61+
62+
![Colors](./media/sharepoint-scenarios-filter-search-list/colors.png "Colors")
63+
64+
### See also
65+
66+
- [Formula reference](formula-reference.md) for Power Apps
67+
- [Control reference](reference-properties.md) for Power Apps

0 commit comments

Comments
 (0)