List SharePoint lists
BetaReads data
Lists the lists and document libraries of one SharePoint site.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Microsoft Graph connection the step signs in with. |
| Site idRequired | The id Get SharePoint site answered — host name, site GUID and web GUID. |
| Fields | Comma-separated property names. Add system to include the lists SharePoint hides. |
| Lists per call | 1 to 999. |
| Fetch every page | Follows Graph's own next-page link. |
| Stop after | Pages — at most 50. |
| Cursor | Paste a previous run's Next cursor to read the page after it. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `microsoft-graph`) |
siteId | text |
select | text, by default "id,displayName,name,webUrl,list" |
top | number, by default 100 |
returnAll | true/false, by default false |
maxPages | number, by default 10 |
cursor | text |
Output
| Field | Type |
|---|---|
lists | array |
countLists in this answer | number |
hasMoreMore lists are waiting behind this page | boolean |
nextCursorCursor for the next page | string |
Sample output, and the expression for each field
- count0
- hasMorefalse
- lists[]
- nextCursor""
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>",
"cursor": "",
"maxPages": 10,
"returnAll": false,
"select": "id,displayName,name,webUrl,list",
"siteId": "<site id>",
"top": 100
},
"label": "List SharePoint lists",
"type": "graph.listLists",
"version": 1
}