MS OneDrive Business icon

MS OneDrive Business

Access MS OneDrive for Business and SharePoint

File → Get

AI-generated

Summary

Get files or file metadata from OneDrive or SharePoint

Inputs

  • driveType — Type of drive to access
  • sharedLinkUrl (required) — Paste the sharing link of the shared folder (right-click → Share → Copy link in OneDrive/SharePoint)
  • userId — User email or ID. If empty, uses the authenticated user.
  • siteId (required) — The SharePoint site to access
  • fileSelection — How to specify the file
  • fileSharingUrl (required) — Paste the sharing link copied from OneDrive or SharePoint ("Share → Copy link")
  • browseFolder1 (required) — Choose from the list, or specify an ID using an expression
  • browseFolder2 — Select a 📁 folder to go deeper, or a 📄 file to finish. Only shown if Level 1 is a folder. Choose from the list, or specify an ID using an expression.
  • browseFolder3 — Select a 📁 folder to go deeper, or a 📄 file to finish. Only shown if Level 2 is a folder. Choose from the list, or specify an ID using an expression.
  • browseFolder4 — Select a 📁 folder to go deeper, or a 📄 file to finish. Only shown if Level 3 is a folder. Choose from the list, or specify an ID using an expression.
  • browseFolder5 — Select a 📄 file to finish. Only shown if Level 4 is a folder. Choose from the list, or specify an ID using an expression.
  • filePath (required) — The file to operate on
  • fileId (required) — The unique ID of the file

Output shape

a list of objects representing the file metadata (one per input item)

The node returns the full Microsoft Graph metadata for each requested file; the shape matches the response payload and may contain many fields. Errors are thrown unless continueOnFail is enabled.

Examples

Example 1: Retrieve metadata for a file specified by path

driveType=user, fileSelection=path, filePath=/Documents/example.pdf

Example 2: Get metadata of a file via its sharing link

driveType=sharedLink, fileSelection=link, fileSharingUrl=https://1drv.ms/l/abc123

Example 3: Get metadata of a file using its ID

driveType=user, fileSelection=id, fileId=01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36K

Links

Discussion