Skip to main content

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.
External Documentation

To learn more, visit the SharePoint documentation.

Parameters

ParameterDescription
Drive IDThe ID of the drive. Can be obtained via the List Drives For Site action.
Item IDThe ID of an item inside the chosen entity for which to list contained items. Leave as 'root' to list all items.

Example Output

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

Workflow Library Example

List Items with Sharepoint and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop