Actions13
File → Download
AI-generatedSummary
Download a file from OneDrive Business (user drive or SharePoint site) by file ID or path.
Inputs
- driveType (required) — Type of drive to access: 'user' for OneDrive, 'site' for SharePoint document library
- userId (required) — User principal name or ID (required when driveType is 'user')
- siteId (required) — SharePoint site ID in format 'contoso.sharepoint.com,site-id,web-id' (required when driveType is 'site')
- fileId (required) — File item ID or path from drive root (e.g., '/Documents/file.pdf')
Output shape
json: File metadata from Microsoft Graph API; binary: File content as base64-encoded string accessible via $binary.data.data, with MIME type at $binary.data.mimeType and file name at $binary.data.fileName
Returns an array of results when processing multiple input items; each result includes pairedItem for input tracking
Examples
Example 1: Download a file from a user's OneDrive by path
Resource: File, Operation: Download, Drive Type: User Drive, User ID: user@contoso.com, File ID or Path: /Documents/report.pdf
Example 2: Download a file from a SharePoint site by item ID
Resource: File, Operation: Download, Drive Type: Site Drive, Site ID: contoso.sharepoint.com,site-id,web-id, File ID or Path: abc123def456