Find Files
Description
Use this Activity to search for files in a specified Microsoft 365 SharePoint/OneDrive Library.
note
This Activity works only inside the Microsoft 365 Context activity.
Properties
Location
- Site Url – Specify the absolute site URL containing the library.
- Library Name - Specify the library's name in which to search for the file. If left empty, the site's default library (Shared Documents) is chosen.
- Folder Path – Specify the relative path to the folder to limit the search. To search in the entire library, leave this empty.
Search
- Search Phrase – Specify the keyword for search. It looks for the keyword in the file name, the file contents, and the file metadata. For more details, refer to Microsoft Documentation. If the format of the keyword does not match, then you get error message.
Search Based On | Description | Example Search String | Explanation |
---|---|---|---|
File Name | Searches for the keyword in the file name. | "IntelliBuddies" | Finds files with names like monthly_IntelliBuddies_report.xlsx or IntelliBuddies_report_summary.docx. |
File Content | Searches for the keyword within the file's contents. | "report" | Finds files where the word "report" appears in the content, such as in an Excel cell or a Word document paragraph. |
File metadata | Searches for the keyword in the file metadata (e.g., author, tags, description). | "Json D" | Finds files authored by "Json D" or tagged with "Json D" in the metadata. |
- Limit Results – Specify the number of files to return from the search. To get all matching files from the search, leave this empty or enter 0.
Misc
- DisplayName – Add a display name to your Activity.
- Private – By default, Activity will log the values of your properties inside your workflow. If private is selected, then it stops logging.
Optional
- Continue On Error – It Specifies whether the automation should continue even though this Activity fails. This field only supports Boolean values (True, False). The default value is False.
note
If this activity is inside Try Catch and the value of this property is True, errors will be ignored during the automation execution.
Output
- Files – Returns a list of FileInfo objects containing metadata about the files matching the search phrase.
Example
Download Example