Skip to main content

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​

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.
SiteStringYesSharePoint site: site id, or hostname:/sites/path such as contoso.sharepoint.com:/sites/Finance.
ListStringYesList id or display name.
Column nameStringYesThe column's internal name (no spaces is safest).
TypeStringNotextWhat the column holds.
ChoicesListNoThe choices of a choice column.
RequiredBooleanNofalseEvery item must fill it in.
Display nameStringNoThe name people see; column_name when empty.
Lookup listStringNoId of the list a lookup column reads from.
Lookup columnStringNoColumn of that list to show, e.g. Title.
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.

Outputs​

OutputTypeWhat it is
column_idStringThe new column's id.