Skip to main content
Roberty Studio
RPASharePoint

List drives of a site

List drives of a site

Lists the drives available in a specific SharePoint site.


Options​

SharePoint site​

Select the Get site by path action set up in the flow.

Returns​

Javascript code​

js
actions["action-id"].drives // the drives of the site (List)

Field selection​

  • drives — the drives of the site (List)

Rules and Conditions​

  • The SharePoint site field is required.
  • Each drive has id, name, description, webUrl, driveType, createdDateTime, lastModifiedDateTime, createdBy, owner, lastModifiedBy and quota.
  • To use a drive from the list in other actions, use the Get a drive from the list action.
  • If Microsoft Graph rejects the operation (item not found, insufficient permission, etc.), the action fails with the error message returned by the API.