Skip to main content
Roberty Studio
RPASharePoint

List available sites

List available sites

Lists the sites available in the Microsoft SharePoint account.


Options​

SharePoint account​

Select the SharePoint Login or Connection action set up in the flow.

Returns​

Javascript code​

js
actions["action-id"].sites // the available sites (List)

Field selection​

  • sites — the available sites (List)

Rules and Conditions​

  • The SharePoint account field is required.
  • Each item of sites has id, name, webUrl and, when available, displayName, description, createdDateTime and lastModifiedDateTime.
  • If Microsoft Graph rejects the operation (item not found, insufficient permission, etc.), the action fails with the error message returned by the API.