FlowmageDocs

Get drive item

BetaReads data

Reads the details of one file or folder in OneDrive or SharePoint.

Settings

SettingWhat it is
ConnectionRequiredThe Microsoft Graph connection the step signs in with.
Drive of"user" or "group" or "site" or "drive"
OwnerRequiredThe person's id or sign-in address, the group's id, the site's id or the drive's id — whichever Drive of names.
File or folderRequiredIts id, or its path from the drive's root starting with / — / alone is the root.
FieldsComma-separated property names. Empty answers Microsoft 365's default set.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `microsoft-graph`)
driveOf"user" or "group" or "site" or "drive", by default "user"
ownertext
itemtext
selecttext

Output

FieldType
itemFile or folderobject
item.idstring
item.namestring
item.webUrlLink in Microsoft 365string
Sample output, and the expression for each field
  • item
    • id"01ABC"
    • name"q1.pdf"
    • webUrl"https://contoso.sharepoint.com/q1.pdf"

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "connection": "<connection id>",
    "driveOf": "user",
    "item": "<file or folder>",
    "owner": "<owner>",
    "select": ""
  },
  "label": "Get drive item",
  "type": "graph.getDriveItem",
  "version": 1
}