Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft 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.
SiteStringNoSharePoint site: site id, or hostname:/sites/path such as contoso.sharepoint.com:/sites/Finance.
NameStringYesThe list's name.
TemplateStringNogenericListWhat kind of list: genericList (a plain list), documentLibrary, tasks, events, contacts, issueTracking and others SharePoint offers.
DescriptionStringNoA description shown on the list.
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.
SessionStringNoA 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​

OutputTypeWhat it is
list_idStringThe new list's id.
web_urlStringThe new list's address.