Search Drive

onedrive.search
ActionFiles & storageconnection required

Calls the OneDrive API with the connection's credentials.

Search the whole drive for items whose name or content matches a free text query.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
OneDrive
Secret shape
{"client_id": "…", "client_secret": "…", "refresh_token": "…"} with the Files.ReadWrite delegated scope
Config it needs
tenant, drive_id
Resolved by
config.connection_id, else node.connection_id

Configuration

3 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
drive_id
The drive to act on. Leave blank for the connected user's own OneDrive (/me/drive). A SharePoint document library's drive id also works here.
stringNo———
query
Free-text search terms, matched against file names and content.
stringYes———
max_results
How many matches to return at most; Graph pages are followed until this many.
numberNo501–1000—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "max_results": 50
}

Output

One shape.

result

FieldTypeExample
items
The driveItems returned.
array—
count
How many items were returned.
number—
{
  "count": 0,
  "items": []
}

See Search Drive run in a workflow.

In a technical demo we add the OneDrive connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.