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: docs/business-apps/power-automate/guidance/working-with-get-items-and-get-files.md
+22-24Lines changed: 22 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1,55 +1,53 @@
1
1
---
2
-
title: Deep dive into 'Get items' and 'Get files' SharePoint actions in Power Automate
2
+
title: In-depth analysis into 'Get items' and 'Get files' SharePoint actions for flows in Power Automate
3
3
ms.date: 03/11/2020
4
4
---
5
5
6
-
# Deep dive into 'Get items' and 'Get files' SharePoint actions in Power Automate
6
+
# In-depth analysis into **Get items** and **Get files** SharePoint actions for flows in Power Automate
7
7
8
-
The Get items and Get files SharePoint actions in Microsoft Flow help you get items from a list and a library respectively. Though they are different actions, the capabilities for both the actions are same. In this post, let me take you a deep dive on how to work with these actions.
8
+
The **Get items** and **Get files** SharePoint actions for flows in Power Automate let you get items from a list and a library, respectively. Though they are different actions, the capabilities for both the actions are same. This article describes how to work with these actions.
9
9
10
10
## Decide if you are working with lists or libraries
11
11
12
-
To start with, Get items action only works with lists while Get files action only works with libraries. I wanted to reiterate this because I have been misled by this many times wondering why I can't see my libraries in the Get items action and lists in the Get files action.
12
+
**IMPORTANT:** First, and of primary consideration, the **Get items** action only works with lists, whereas the **Get files** action only works with libraries.
13
13
14
14
## Item limits
15
15
16
16
The default item limit is 100.
17
17
18
-
If you are using the default options and just specifying the site address and list/library name, the flow will return 100 items from the list/library.
18
+
If you are using the default options, and simply specifying the site address and list or library name, Power Automate returns 100 items from the list or library.
19
19
20
-
If you are working with large lists, you can increase this limit up to the list view threshold limit which is 5,000.
20
+
If you are working with large lists, you can increase this limit up to the list view threshold limit of 5,000.
21
21
22
-
To specify the number of items to be returned, expand the advanced options and specify the number in the Top Count action property.
22
+
To specify the number of items to be returned, expand the **Advanced options**, and specify the number in the **Top Count** action property.
23
23
24
-
And if you go beyond 5,000 item limit, the flow will fail with the relevant error message.
24
+
If you go beyond 5,000 item limit, Power Automate fails and generates an error dialog.
25
25
26
-
The items will be paginated as well when you use Apply to each action to the returned item collection if you are wondering about that.
26
+
When you select **Apply** to each action to the returned item collection, the items are paginated as well.
27
27
28
28
## Limit columns by view
29
29
30
-
List views are a useful configuration where you can customize what columns to show along with any other conditions or grouping of list items. This is not only useful for users but also for any other computation you want to do over that view data.
30
+
List views are a useful configuration where you can customize what columns to show along with any other conditions or groupings of list items. This is not only useful for users, but also for any other computation you want to do using that view data.
31
31
32
-
With the _Get items_ and _Get files_ actions, you can retrieve the list items along with their columns. However, retrieving the columns would retrieve all the columns. While this is pretty useful, it might be an overkill when you really want to work with a specific set of columns configured in a specific view.
32
+
To retrieve the list items along with their columns, select the **Get items** and **Get files** actions. However, retrieving the columns retrieves all the columns. While this is useful, it could be excessive when you only need to work with a specific set of columns configured in a specific view.
33
33
34
-
The 'Limit columns by view' option, available in the _Get items_ and _Get files actions_ will allow you to do exactly that. While retrieving list items, you can now limit the columns by view.
34
+
To limit your column retrieval, in the **Get items** and **Get files** actions, expand **Advanced options**, select the **Limit columns by view** option. While retrieving list items, you can now limit the columns by view.
35
35
36
-
Just expand the advanced options in the action and you should see this option. You can select a view of your choice.
37
-
38
-
This option is useful in cases where you want to perform set of operations on specific data, like in the example above in my flow where I have a view for different events. In the case, where I am working with food events, I might as well limit the columns by the Food Events.
36
+
This option is useful in cases where you want to perform a set of operations on specific data, like in the previous example where you want a view for different events. In this case, working with food events, it would be optimal to limit the columns by the *Food Events*.
39
37
40
38
## Filter queries
41
39
42
-
The action also supports specifying filter queries so you can filter items on the server. Using filter queries are performant than filtering the returned results in your flow.
40
+
This action also supports specifying filter queries so you can filter items on the server. Using filter queries are as functional as filtering the returned results in your flow in Power Automate.
43
41
44
-
So, what filter queries can you use? Below are the supported OData filter queries in SharePoint that you can use:
42
+
We support the following OData filter queries in SharePoint that you can use:
45
43
46
44
Filter by column name:
47
45
48
46
```
49
47
Location eq 'Midwest'
50
48
```
51
49
52
-
Location is the column name used with the operator equals and 'Midwest' is the value of the column.
50
+
*Location* is the column name used with the operator equals (eq), and *Midwest* is the value of the column.
53
51
54
52
Other examples:
55
53
@@ -58,7 +56,7 @@ Other examples:
58
56
* startswith(Title, 'A') and Due_x0020_Date gt 'formatDateTime(utcNow(),'yyyy-MM-dd')'
59
57
* formatDateTime(utcNow(),'yyyy-MM-dd') is an expression
60
58
61
-
Supported query methods and operators include the following:
59
+
We support the following query methods and operators.
62
60
63
61
### Numeric comparisons
64
62
@@ -93,17 +91,17 @@ Supported query methods and operators include the following:
93
91
94
92
## Order by query
95
93
96
-
You can also specify an order by query so you can order items based off of a column either in ascending or descending order. The query is really simple, for example:
94
+
You can also specify an order by query to order items based off of a column either in ascending or descending order. For example:
97
95
98
96
* Due_x0020_Date desc
99
97
* Title asc
100
98
101
-
Note that spaces in the column name are replaced with `_x0020_` (0 is numeral zero).
99
+
Spaces in the column name are replaced with `_x0020_` (0 is numeral zero).
102
100
103
-
The format is column name followed by asc or desc depending on ascending or descending order respectively.
101
+
The format is the column name followed by asc or desc depending on ascending or descending order, respectively.
104
102
105
103
## Lookup columns support
106
104
107
-
If your list/library has lookup columns, Get items and Get files actions support returning items with a maximum of 12 lookup columns, excluding the out of thebox Created by and Modified by fields. If your list/library exceeds this threshold, the flow will error out.
105
+
If your list/library has lookup columns, **Get items** and **Get files** actions support returning items with a maximum of 12 lookup columns, excluding the out-of-the-box **Created by** and **Modified by** fields. If your list or library exceeds this threshold, the flow in Power Automate fails.
108
106
109
-
Lookup columns are also not supported today in both filter by and order by queries in the action. These will include fields such as person fields, lookup columns to another list, taxonomy fields etc.,
107
+
We do not support lookup columns in both **filter by** and **order by** queries in the action. These include fields such as person fields, lookup columns to another list, taxonomy fields, and so on.
0 commit comments