Get Files/Folder

You can select this activity to retrieve the metadata of a specific file or folder with a known ID and save the metadata for later use. To get the ID of the item, you can use an activity for which the output is OneDriveItem ID. After referencing the item, the activity returns the metadata in a new OneDriveItem object (Item) that you can use in subsequent activities.

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 OneDriveItem Id <String> The OneDriveItem ID of the file or folder.
OneDriveItem URL <String> The OneDriveItem URL of the file or folder.
Misc DisplayName String The name to be displayed for the activity.
Option Account <String> The ID or User Principal Name who owns the OneDrive.
Output Item <OneDriveItem> The file or folder retrieved as 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. If the drive exists within SharePoint, Site Url must be specified.
Site URL <String> The URL of the SharePoint site that must be searched for the indicated files or folders.