FlowmageDocs

Search files

BetaReads data

Finds files and folders in OneDrive or SharePoint that match a text.

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.
Search forRequiredMatched against names, contents and other fields across the whole drive, as Microsoft 365's own search does.
FieldsComma-separated property names. Empty answers Microsoft 365's default set.
Items per call1 to 999.
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
querytext
selecttext
topnumber, by default 100
returnAlltrue/false, by default false
maxPagesnumber, by default 10
cursortext

Output

FieldType
itemsFiles and folders foundarray
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",
    "maxPages": 10,
    "owner": "<owner>",
    "query": "<search for>",
    "returnAll": false,
    "select": "",
    "top": 100
  },
  "label": "Search files",
  "type": "graph.searchFiles",
  "version": 1
}