Skip to content

Commit e419031

Browse files
authored
Merge pull request SharePoint#5514 from jackwi-alt/patch-7
Update 'In-depth analysis into 'Get items' and 'Get files' SharePoint…
2 parents 541de49 + 50ab9c8 commit e419031

File tree

1 file changed

+22
-24
lines changed

1 file changed

+22
-24
lines changed

docs/business-apps/power-automate/guidance/working-with-get-items-and-get-files.md

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,53 @@
11
---
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
33
ms.date: 03/11/2020
44
---
55

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
77

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

1010
## Decide if you are working with lists or libraries
1111

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

1414
## Item limits
1515

1616
The default item limit is 100.
1717

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

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

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

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

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

2828
## Limit columns by view
2929

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

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

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

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*.
3937

4038
## Filter queries
4139

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

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

4644
Filter by column name:
4745

4846
```
4947
Location eq 'Midwest'
5048
```
5149

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

5452
Other examples:
5553

@@ -58,7 +56,7 @@ Other examples:
5856
* startswith(Title, 'A') and Due_x0020_Date gt 'formatDateTime(utcNow(),'yyyy-MM-dd')'
5957
* formatDateTime(utcNow(),'yyyy-MM-dd') is an expression
6058

61-
Supported query methods and operators include the following:
59+
We support the following query methods and operators.
6260

6361
### Numeric comparisons
6462

@@ -93,17 +91,17 @@ Supported query methods and operators include the following:
9391

9492
## Order by query
9593

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

9896
* Due_x0020_Date desc
9997
* Title asc
10098

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).
102100

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

105103
## Lookup columns support
106104

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 the box 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.
108106

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

Comments
 (0)