List Items
Lists the items in a drive.
- 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 OneDrive documentation.
Parameters
Parameter | Description |
---|---|
Item ID | The ID of an item inside the chosen entity, for which to list contained items. Leave as 'root' to list all items. |
Parent Entity ID | User, group or site ID depending on the chosen Entity Type. |
Parent Entity Type | The type of target for which to list items. |
Example Output
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('48d31887-5fad-4d73-a9f5-3c356e68a038')/drive/items('root')/children",
"value": [
{
"createdDateTime": "2017-07-31T18:56:29Z",
"eTag": "\"{60F36ED0-85CE-4771-B349-E671C691EFCA},1\"",
"id": "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36K",
"lastModifiedDateTime": "2017-07-31T18:56:29Z",
"name": "Attachments",
"webUrl": "https://m365x214355-my.sharepoint.com/personal/meganb_m365x214355_onmicrosoft_com/Documents/Attachments",
"cTag": "\"c:{60F36ED0-85CE-4771-B349-E671C691EFCA},0\"",
"size": 0,
"createdBy": {
"user": {
"email": "MeganB@M365x214355.onmicrosoft.com",
"id": "48d31887-5fad-4d73-a9f5-3c356e68a038",
"displayName": "Megan Bowen"
}
},
"lastModifiedBy": {
"user": {
"email": "MeganB@M365x214355.onmicrosoft.com",
"id": "48d31887-5fad-4d73-a9f5-3c356e68a038",
"displayName": "Megan Bowen"
}
},
"parentReference": {
"driveType": "business",
"driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
"id": "01BYE5RZ56Y2GOVW7725BZO354PWSELRRZ",
"path": "/drive/root:"
},
"fileSystemInfo": {
"createdDateTime": "2017-07-31T18:56:29Z",
"lastModifiedDateTime": "2017-07-31T18:56:29Z"
},
"folder": {
"childCount": 0
},
"specialFolder": {
"name": "attachments"
}
},
{
"createdDateTime": "2017-08-07T16:16:30Z",
"eTag": "\"{A9D9C2AC-FF32-42EE-87C3-283CFCE061E1},1\"",
"id": "01BYE5RZ5MYLM2SMX75ZBIPQZIHT6OAYPB",
"lastModifiedDateTime": "2017-08-07T16:16:30Z",
"name": "Business Data",
"webUrl": "https://m365x214355-my.sharepoint.com/personal/meganb_m365x214355_onmicrosoft_com/Documents/Business%20Data",
"cTag": "\"c:{A9D9C2AC-FF32-42EE-87C3-283CFCE061E1},0\"",
"size": 39566226,
"createdBy": {
"user": {
"email": "MeganB@M365x214355.onmicrosoft.com",
"id": "48d31887-5fad-4d73-a9f5-3c356e68a038",
"displayName": "Megan Bowen"
}
},
"lastModifiedBy": {
"user": {
"email": "MeganB@M365x214355.onmicrosoft.com",
"id": "48d31887-5fad-4d73-a9f5-3c356e68a038",
"displayName": "Megan Bowen"
}
},
"parentReference": {
"driveType": "business",
"driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
"id": "01BYE5RZ56Y2GOVW7725BZO354PWSELRRZ",
"path": "/drive/root:"
},
"fileSystemInfo": {
"createdDateTime": "2017-08-07T16:16:30Z",
"lastModifiedDateTime": "2017-08-07T16:16:30Z"
},
"folder": {
"childCount": 6
}
}
]
}
Workflow Library Example
List Items with Onedrive and Send Results Via Email
Preview this Workflow on desktop