List Lists

sharepoint.list_lists
ActionFiles & storageconnection required

Calls the SharePoint API with the connection's credentials.

List the lists and libraries on a site, following Graph paging.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
SharePoint
Secret shape
{"client_id": "…", "client_secret": "…", "refresh_token": "…"} with the Sites.ReadWrite.All delegated scope
Config it needs
tenant, site_id
Resolved by
config.connection_id, else node.connection_id

Configuration

4 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
site_id
The site id, as 'hostname,siteCollectionId,siteId'. Leave blank to use hostname + site_path, or neither for the tenant root site.
stringNo———
hostname
The SharePoint hostname, used with site_path when site_id is blank.
stringNo———
site_path
Server-relative path of the site, e.g. 'sites/marketing'.
stringNo———
max_results
How many lists to return at most; Graph pages are followed until this many.
numberNo501–1000—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "max_results": 50
}

Output

One shape.

result

FieldTypeExample
items
The lists found.
array—
count
How many lists were returned.
number—
{
  "count": 0,
  "items": []
}

See List Lists run in a workflow.

In a technical demo we add the SharePoint connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.