Download File

Download a file by its ID from OneDrive.

Options

Field Definition Type Required
Source

Choose a source:

  • My Drive: authenticated user's OneDrive.
  • Drive ID: a specified drive by the drive's unique ID.
  • Group ID: a specified group's document library for a group by the group's unique ID.
  • User ID: a specified user by the user's unique ID.
  • Shared Link: add one or more shared items from another drive to their own OneDrive.
Dropdown TRUE

Input

Field Definition Type Required
Drive      
Drive ID

Unique ID for the drive requested.

Appears when Drive ID is selected from the Source option.

String TRUE
Group      
Group ID

Unique ID for the group which owns the document library.

Appears when Group ID is selected from the Source option.

String TRUE
User      
User ID

Unique ID for the user object who owns the drive item.

Appears when User ID is selected from the Source option.

String TRUE
Link      
Shared Link Shared link of a file in OneDrive.

Appears when Shared Link is selected from the Source option.

String TRUE
File      
File ID Unique ID of the file.

Appears when Drive ID, Group ID or User ID is selected from the Source option.

String FALSE
Caution

A file must be at least 1 byte in size, but cannot be larger than 2 GB. See Workflows system limits.

Output

Field Definition Type
File Content Unique ID associated with the file content that was downloaded. String

Additional information

  • To obtain User ID, Group ID, Drive ID or User ID information in the flow, use another Workflows Office 365 Mail connector card such as Read User or Search User.
  • Admins can download files in another user's drive.
  • Users must be part of the group from which they are downloading a file.

Related topics

OneDrive connector

About the elements of Okta Workflows

Guidance for OneDrive connector

Microsoft Graph API documentation