Download file
Download a file from a OneDrive or SharePoint path to a local file.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/download_file · 6 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | No | Microsoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Remote path | String | Yes | Path of the file in the drive. | |
| Local path | File | No | Where to save it: a file, or a folder (the drive's file name); the run's temporary folder when empty (G3). | |
| Overwrite | Boolean | No | true | Replace an existing local file; when false a number such as (2) is added to the name. |
| Drive | String | No | me/drive | Whose files: me/drive (your OneDrive), a person (ann@acme.com), a SharePoint site (contoso.sharepoint.com:/sites/Finance), a library of a site by name (contoso.sharepoint.com:/sites/Finance:/Invoices), or sites/{site-id}/drive or drives/{drive-id}. With an app sign-in, name a person or site. |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |
Outputs
| Output | Type | What it is |
|---|---|---|
| path | File | Saved local path. |