Skip to main content

Find files

Search a drive for files and folders whose name or content matches the text.

Command in the Microsoft 365 toolkit · id ooa.microsoft365/find_items · 8 inputs (1 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
TextStringYesText to look for.
Maximum resultsNumberNo100Maximum items.
Item typeStringNoanyFiles, folders or both.
In folderStringNoSearch only inside this folder (path or id:{item-id}); the whole drive when empty.
Exact nameBooleanNofalseKeep only items whose name equals the text (not case-sensitive).
DriveStringNome/driveWhose files: me/drive (your OneDrive), a person (ann@acme.com), a SharePoint site (contoso.sharepoint.com:/sites/Finance), a library of a site by name (contoso.sharepoint.com:/sites/Finance:/Invoices), or sites/{site-id}/drive or drives/{drive-id}. With an app sign-in, name a person or site.
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.

Outputs​

OutputTypeWhat it is
tableTableColumns: id, name, type, size, modified, web_url.
countNumberNumber of items found.