Create SharePoint list
Create a list or library on a SharePoint site from one of 16 templates.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/create_list · 7 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | No | Microsoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. Not needed with a SharePoint site session. | |
| Site | String | No | SharePoint site: site id, or hostname:/sites/path such as contoso.sharepoint.com:/sites/Finance. | |
| Name | String | Yes | The list's name. | |
| Template | String | No | genericList | What kind of list: genericList (a plain list), documentLibrary, tasks, events, contacts, issueTracking and others SharePoint offers. |
| Description | String | No | A description shown on the list. | |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |
| Session | String | No | A SharePoint site signed in to with Sign in to SharePoint site (also on premises); when given, access_token and site are not used (G3). |
Outputs
| Output | Type | What it is |
|---|---|---|
| list_id | String | The new list's id. |
| web_url | String | The new list's address. |