Find files and folders action

The Find files and folders action in the Microsoft 365 OneDrive package returns a table of files and folders in a specific directory in your OneDrive.

Settings

  • Enter the user session that you provided in the Connect action.
  • Provide directory details in the Folder to search field: enter the folder name and path, or folder link.

    To obtain the folder link, copy the link generated from Share OneDrive files and folders

    For example, to perform this action on a folder named Q1, located in the Survey Results folder, enter /Survey Results/Q1.

  • Specify whether to search for All items in folder or a Specific file (or folder).
    Note: The Drive Item Name field accepts wildcard characters in the file name and extension. For example, to search for all documents with extension docx, enter *.docx in the Specific file (or folder) field.
  • Assign the output to a table variable.

    The variable will hold the following file or folder details: Name, ID, CreatedBy, CreationDate, LastModifiedBy, LastModificationDate, and ParentFolderPath.