Download File

Downloads a specified file from OneDrive or SharePoint Site.

This activity downloads a user-specified file from the user's OneDrive or SharePoint site to a given location in the local system using the Microsoft Graph Download file API. Only files can be downloaded using this activity.

Input

  • Connection Id: GraphServiceClient Variable Required Specifies the office 365 connection id.

  • Drive Item: Object Argument Required Specifies the DriveItem of the file or folder that is to be deleted. We can also specify the output variable of the Find Files And Folders activity (which is First or Results) directly as input in this property. If we are using the Results property of the Find Files And Folders activity then we can directly specify the element in the array. For example : Results[1].

  • Local File Path:FilePathEditorData Argument Specifies the local path to which the file is to be downloaded. If the property field is left empty, the file will be downloaded to the project directory by default. The selected file will be saved in the same name in the user-specified location and if a file with the same name exists in the given location it will be overwritten.

To download and save the file with a different name append the new file name to the end of the local file path (ex: "C:\Documents\newExcelFile.xlsx")

Last updated