Add SharePoint list column
Add a column to a SharePoint list: text, several lines, number, currency, yes/no, date, choice, person, link, picture or a lookup to another list (Microsoft 365).
Command in the Microsoft 365 toolkit · id ooa.microsoft365/add_list_column · 11 inputs (3 required), 1 output
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. | |
| Site | String | Yes | SharePoint site: site id, or hostname:/sites/path such as contoso.sharepoint.com:/sites/Finance. | |
| List | String | Yes | List id or display name. | |
| Column name | String | Yes | The column's internal name (no spaces is safest). | |
| Type | String | No | text | What the column holds. |
| Choices | List | No | The choices of a choice column. | |
| Required | Boolean | No | false | Every item must fill it in. |
| Display name | String | No | The name people see; column_name when empty. | |
| Lookup list | String | No | Id of the list a lookup column reads from. | |
| Lookup column | String | No | Column of that list to show, e.g. Title. | |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |
Outputs
| Output | Type | What it is |
|---|---|---|
| column_id | String | The new column's id. |