# Get List Items

> `UiPath.MicrosoftOffice365.Activities.Sharepoint.GetListItems`

`UiPath.MicrosoftOffice365.Activities.Sharepoint.GetListItems`

## Description

Uses the Microsoft Graph [Enumerate items in a list](https://learn.microsoft.com/en-us/graph/api/listitem-list?view=graph-rest-1.0&tabs=http) API to retrieve the list items from the specified SharePoint list.

### Scopes

This activity requires the following scopes:

* Sites.Read.All

OR

* Sites.ReadWrite.All

## Project compatibility

Windows - Legacy | Windows

## **Configuration**

**Properties**

#### Common

* **DisplayName** - The display name of the activity. This property supports `String` variables and string formatted values.

#### Input

* **List** - The SharePoint list. This property supports `Office365SharepointList` variables.
* **Filter** - An optional OData filter.
* **ColumnsToRetrieve** - The display name of the columns to retrieve. This property supports `IEnumerable&lt;String&gt;` input (e.g., `{"a"}` or `{"a", "b"}`).

#### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level. This field supports Boolean values.

#### Output

* **List Items** - The list items retrieved by the activity.
