> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Items

List items for a drive in SharePoint site.

* **Least privileged** Microsoft Graph permission to access the action via **application**: `Files.Read.All`.
* Higher privileged Microsoft Graph permissions to access the action via **application**: `Sites.ReadWrite.All`, `Files.ReadWrite.All`, `Sites.Read.All`.

<Note>
  External Documentation

  To learn more, visit the [SharePoint documentation](https://learn.microsoft.com/en-us/graph/api/driveitem-list-children?view=graph-rest-1.0\&tabs=http).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                      |
  | --------- | ---------------------------------------------------------------------------------------------------------------- |
  | Drive ID  | The ID of the drive. Can be obtained via the `List Drives For Site` action.                                      |
  | Item ID   | The ID of an item inside the chosen entity for which to list contained items. Leave as 'root' to list all items. |
</div>

## Example Output

```json theme={"dark"}
{
	"@odata.context": "<string>",
	"value": [
		{
			"createdBy": {
				"application": {
					"id": "5c66e46d-c184-4016-b66c-52c8890cb4ef",
					"displayName": "Blink OneDrive OAuth"
				},
				"user": {
					"displayName": "SharePoint App"
				}
			},
			"createdDateTime": "2023-05-15T10:46:26Z",
			"eTag": "\"{AE38CE9D-E9FD-4C28-98D2-C243AF2FC4D5},1\"",
			"id": "01HJM2YBM5ZY4K57PJFBGJRUWCIOXS7RGV",
			"lastModifiedBy": {
				"application": {
					"id": "5c66e46d-fdsgdfg-fgfg-b66c-12345367",
					"displayName": "Blink OneDrive OAuth"
				},
				"user": {
					"displayName": "SharePoint App"
				}
			},
			"lastModifiedDateTime": "2023-05-15T10:46:26Z",
			"name": "home",
			"parentReference": {
				"driveType": "documentLibrary",
				"driveId": "b!5a6qd1mkQ0-_89GgMvkvmCZOCjLGjARAju0qVfbr5Wv7WwAqJEc3QJe42Go8UodV",
				"id": "01HJM2YBN6Y2GOVW7725BZO354PWSELRRZ",
				"name": "<string>",
				"path": "/drives/b!5a6qd1mkQ0-_89GgMvkvmCZOCjLGjARAju0qVfbr5Wv7WwAqJEc3QJe42Go8UodV/root:",
				"siteId": "77aaaee5-a459-4f43-bff3-d1a032f92f98"
			},
			"webUrl": "https://test.sharepoint.com/test/home",
			"cTag": "\"c:{AE38CE9D-E9FD-4C28-98D2-C243AF2FC4D5},0\"",
			"fileSystemInfo": {
				"createdDateTime": "2023-05-15T10:46:26Z",
				"lastModifiedDateTime": "2023-05-15T10:46:26Z"
			},
			"folder": {
				"childCount": 1
			},
			"shared": {
				"scope": "users"
			},
			"size": 42
		}
	]
}
```

## Workflow Library Example

[List Items with Sharepoint and Send Results Via Email](https://library.blinkops.com/workflows/list-items-with-sharepoint-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-items-with-sharepoint-and-send-results-via-email/canvas" />
</div>
