Code Assist MCP for Microsoft SharePoint

Build 25.0.9540

AddListColumn

SharePoint リストに新しい列を追加します。リスト構造を動的に変更するのに便利です。

Stored Procedure-Specific Information

The AddListColumn stored procedure adds a new column to an existing SharePoint list. You can configure various column properties such as the column type, display name, default value, and validation settings.

To add a text column to a list, enter:

EXEC AddListColumn List = 'Test List', ColumnName = 'NewColumn', DisplayName = 'New Column', ColumnType = 'Text', MaxLength = '255';

To add a column with additional properties, enter:

EXEC AddListColumn List = 'Test List', ColumnName = 'Column_4', DisplayName = 'Column 4', DefaultValue = 'Default Value', ColumnType = 'Text', MaxLength = '2000', PrimaryKey = 'false', ReadOnly = 'false', Required = 'false';

Input

Name Type Required Description
List String True 列が追加されるSharePoint リストの名前。
ColumnName String True SharePoint リスト内に作成される列の内部名。
DisplayName String False SharePoint UI に表示される列の表示名。
DefaultValue String False 値が指定されていない場合に列に割り当てられるデフォルト値。
ColumnType String True 作成する列のデータ型。有効なオプションはSharePoint API FieldTypes で定義されています。許可される値は、Integer、Text、Note、DateTime、Counter、Choice、Lookup、Boolean、Number、Currency、URL、Computed、Threading、Guid、MultiChoice、GridChoice、Calculated、File、Attachments、User、Recurrence、CrossProjectLink、ModStat、Error、ContentTypeId、PageSeparator、ThreadIndex、WorkflowStatus、AllDayEvent、WorkflowEventType、Geolocation、OutcomeChoice です。

デフォルト値はTextです。

MaxLength Integer False テキストベースの列タイプに適用される列値の最大長。
PrimaryKey Boolean False 列をリストの主キーとして使用するかどうかを示すBoolean 値。
ReadOnly Boolean False 列が読み取り専用で、ユーザーが変更できないかどうかを示すBoolean 値。.
Required Boolean False 各リストアイテムで列が必須かどうかを示すBoolean 値。

Result Set Columns

Name Type Description
Success Boolean 列の作成操作が成功したかどうかを示します。成功した場合は'true' を、失敗した場合は'false' を返します。

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 25.0.9540