OneDrive icon

OneDrive

Search files and folders in OneDrive

Actions4

File → Search in Folder

AI-generated

Summary

Search for files within a specified folder in OneDrive.

Inputs

  • folderSelectionMethod (required) — Method to specify the folder: either select from a list of available folders or enter the folder ID manually.
  • folderId (required) — Select the folder to search in if using the 'Select from List' method.
  • folderIdManual (required) — Enter the folder ID to search in if using the 'Enter ID Manually' method.
  • query (required) — The search query to find files in the specified folder.
  • additionalFields — Optional fields for additional configuration of the search.

Output shape

a list of file records that match the search query in the specified folder

Includes options to limit results, select specific fields, and specify the order and direction of the results.

Examples

Example 1: Search for PDF files in a specific folder by selecting from a list of folders and entering 'pdf' as the search query.

Set folderSelectionMethod to 'list', use the folderId input to select a folder, set query to 'pdf'.

Example 2: Search for image files using a folder ID directly by entering the ID and 'image' as the search query.

Set folderSelectionMethod to 'manual', provide the folderIdManual input with the folder ID, and set query to 'image'.

Discussion