FlowmageDocs

List folder items

BetaReads data

Lists the files and folders inside a OneDrive or SharePoint folder.

Settings

SettingWhat it is
ConnectionRequiredThe Microsoft Graph connection the step signs in with.
Drive of"user" or "group" or "site" or "drive"
OwnerRequiredThe person's id or sign-in address, the group's id, the site's id or the drive's id — whichever Drive of names.
FolderThe folder's id, or its path from the drive's root starting with /. Leave empty for the root.
FieldsComma-separated property names. Empty answers Microsoft 365's default set.
Sort bytext
Items per call1 to 999. Microsoft 365's own page is 200 items.
Fetch every pageFollows Graph's own next-page link.
Stop afterPages — at most 50.
CursorPaste a previous run's Next cursor to read the page after it.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `microsoft-graph`)
driveOf"user" or "group" or "site" or "drive", by default "user"
ownertext
foldertext
selecttext
orderbytext
topnumber, by default 100
returnAlltrue/false, by default false
maxPagesnumber, by default 10
cursortext

Output

FieldType
itemsFiles and foldersarray
countItems in this answernumber
hasMoreMore items are waiting behind this pageboolean
nextCursorCursor for the next pagestring
Sample output, and the expression for each field
  • count0
  • hasMorefalse
  • items[]
  • nextCursor""

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "connection": "<connection id>",
    "cursor": "",
    "driveOf": "user",
    "folder": "",
    "maxPages": 10,
    "orderby": "",
    "owner": "<owner>",
    "returnAll": false,
    "select": "",
    "top": 100
  },
  "label": "List folder items",
  "type": "graph.listFolderItems",
  "version": 1
}