Skip to main content

Find Files

Description

Use this activity to search for files in a specified Microsoft 365 SharePoint/OneDrive Library.

note

This activity works only inside 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 default library (Shared Documents) in the site 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 Phrase – Specify the keyword for search. It looks for the keyword in the file name, the file contents, and the file 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 present inside Try Catch and the value of this property is True, it will ignore errors during the automation execution.

Output

  • Files – Returns list of FileInfo objects containing metadata information about the files matching the search phrase.

Example

Download Example

Find Files