For each Files or Folder

You can select this activity to retrieve a collection of file or folder IDs. You can subsequently use these IDs to perform an activity or a series of activities on each file or folder, that matches the filter criteria, by using For Each.

This table lists the properties for the activity.

Property Type Property Name Data type Description
Common Continue on error Boolean The option to continue the RPA flow even if the activity fails. This check box is selected by default.
Input Return Item dropdown The items to be returned. For example, files,folders or both.
Search Keyword <String> The keywords that must be used to look for in files and folders across several fields. For example, filename and file content.
Account <String> The ID or User Principal Name who owns the OneDrive.
Folder <String> The folder to be searched. The root folder is searched if no value is specified in this field.
Limit Returns <Int32> The maximum number of files and folders to return. If left blank, all files and folders matching the filter criteria are retrieved..
Misc DisplayName <String> The name to be displayed for the activity.
Output Result <String[]> The collection of item ID. You must use the Get Files/Folder activity, after using this activity, to retrieve OneDriveItem.
Response Code Int32 Response code for the activity. Possible values:
  • 200 to 290: Indicates a successful response or valid output.
  • 400 to 499: Indicates client error responses.
  • 500 to 599: Indicates server error responses.
Sharepoint Input Drive Name <String> The name of the drive, within OneDrive and SharePoint, that must be searched for the indicated files or folders.
Site URL <String> The URL of the SharePoint site that must be searched for the indicated files or folders.