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: api-reference/beta/api/listitem-list.md
+78-41Lines changed: 78 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,14 @@
1
1
---
2
2
author: spgraph-docs-team
3
3
description: "Get the collection of items in a list."
4
-
title: Retrieve items from a SharePoint list
4
+
title: "List items"
5
5
ms.localizationpriority: medium
6
6
ms.subservice: "sharepoint"
7
7
doc_type: apiPageType
8
8
ms.date: 04/05/2024
9
9
---
10
-
# Enumerate items in a list
10
+
11
+
# List items
11
12
12
13
Namespace: microsoft.graph
13
14
@@ -35,6 +36,19 @@ GET /sites/{site-id}/lists/{list-id}/items?expand=fields
35
36
GET /sites/{site-id}/lists/{list-id}/items?expand=fields(select=Column1,Column2)
36
37
```
37
38
39
+
## Optional query parameters
40
+
41
+
This method supports the `$filter` and `$expand` of the [OData query parameters](/graph/query-parameters) to help customize the response.
42
+
43
+
### Using the $filter query parameter
44
+
45
+
You can apply the `$filter` (`eq`, `ne`, `lt`, `gt`, `le`, `ge`, and `startswith`) query parameter to get a subset of the [listItem](../resources/listitem.md) collection. Both **listItem** properties and fields can be filtered. When filtering on indexed fields, the service can only filter one indexed field at a time.
46
+
47
+
> [!NOTE]
48
+
> Filtering works best on indexed columns.
49
+
50
+
Depending on the number of items that match the filtering condition, the results are either be returned all at once or in multiple pages. For more information, see [Paging Microsoft Graph data in your app](/graph/paging).
51
+
38
52
## Request headers
39
53
40
54
| Name |Description|
@@ -49,54 +63,85 @@ Don't supply a request body for this method.
49
63
50
64
If successful, this method returns a `200 OK` response code and a collection of [listItem][item] objects in the response body.
51
65
52
-
## Example
66
+
## Examples
53
67
54
-
### Request
68
+
### Example 1: Get list items with specific fields
69
+
70
+
The following example shows how to get a **listItem** collection with specific fields using the `$expand` query parameter.
GET https://graph.microsoft.com/beta/sites/{site-id}/lists/{list-id}/items?expand=fields(select=Name,Color,Quantity)
83
+
GET https://graph.microsoft.com/beta/sites/contoso.sharepoint.com,2C712604-1370-44E7-A1F5-426573FDA80A,2D2244C3-251A-49EA-93A8-39E1C3A060FE/lists/243bca4b-4e5e-45af-b37d-25f6135a740d/items?expand=fields(select=Name,Color,Quantity)
The following example shows how to get a **listItem** collection filtered by the **Quantity** field with specific fields using the `$expand` query parameter.
GET https://graph.microsoft.com/beta/sites/contoso.sharepoint.com,2C712604-1370-44E7-A1F5-426573FDA80A,2D2244C3-251A-49EA-93A8-39E1C3A060FE/lists/243bca4b-4e5e-45af-b37d-25f6135a740d/items?expand=fields(select=Name,Color,Quantity)&$filter=fields/Quantity lt 600
Copy file name to clipboardExpand all lines: api-reference/beta/api/security-ediscoveryholdpolicy-list-usersources.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Get a list of the [userSource](../resources/security-usersource.md) objects asso
21
21
## Permissions
22
22
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions [only if your app requires it](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference).
Copy file name to clipboardExpand all lines: api-reference/beta/resources/signinactivity.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Effective December 1, 2023, the **lastSuccessfulSignInDateTime** property is ava
26
26
|lastNonInteractiveSignInRequestId|String|Request identifier of the last non-interactive sign-in performed by this user.|
27
27
|lastSignInDateTime|DateTimeOffset|The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user attempted (either successfully or unsuccessfully) to sign in to the directory the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is `2014-01-01T00:00:00Z`. Microsoft Entra ID maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see [Manage inactive user accounts in Microsoft Entra ID](/azure/active-directory/reports-monitoring/howto-manage-inactive-user-accounts).|
28
28
|lastSignInRequestId|String|Request identifier of the last interactive sign-in performed by this user.|
29
-
|lastSuccessfulSignInDateTime|DateTimeOffset|The date and time of the user's most recent successful sign-in activity. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is `2014-01-01T00:00:00Z`.|
29
+
|lastSuccessfulSignInDateTime|DateTimeOffset|The date and time of the user's most recent successful interactive or non-interactive sign-in. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is `2014-01-01T00:00:00Z`.|
30
30
|lastSuccessfulSignInRequestId|String|The request ID of the last successful sign-in.|
0 commit comments