Code Assist MCP for Microsoft SharePoint

Build 25.0.9540

UpdateListColumn

SharePoint リスト内の既存の列のプロパティを更新します。構造を再作成せずに列属性を変更するのに役立ちます。

Stored Procedure-Specific Information

The UpdateListColumn stored procedure modifies an existing column in a SharePoint list. You can update various column properties such as the display name, default value, column type, and validation settings.

To update a column's display name and default value, enter:

EXEC UpdateListColumn List = 'Test List', ColumnName = 'Column 1', DisplayName = 'Updated Column 1', DefaultValue = 'New Default Value';

To update multiple column properties, enter:

EXEC UpdateListColumn List = 'Test List', ColumnName = 'Column 1', DisplayName = 'Test Column 1', DefaultValue = 'Test Value', ColumnType = 'Text', MaxLength = '2000', PrimaryKey = 'false', ReadOnly = 'false', Required = 'false';

Input

Name Type Required Description
List String True 更新する列が含まれているSharePoint リストの名前またはグローバル一意識別子(GUID)。
ColumnName String True 更新したい列の内部名。
DisplayName String False SharePoint インターフェースに表示される、列の新しい表示名。
DefaultValue String False 他の値が指定されていない場合に列に割り当てられる新しいデフォルト値。
ColumnType String False 列の新しいデータ型。有効なオプションは、SharePoint API で利用可能なFieldTypes で定義されています(https://learn.microsoft.com/en-us/previous-versions/office/sharepoint-csom/ee540543(v=office.15))。許可される値は、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 です。
MaxLength Integer False 列に許可される新しい最大文字数(テキストベースのフィールドに適用されます)。
PrimaryKey Boolean False この列をリストの主キーとして指定する場合は'true' に設定します。
ReadOnly Boolean False 列を読み取り専用に設定し、新規作成または編集フォームでユーザーがその値を編集できないようにするには、'true' に設定します。
Required Boolean False アイテムを保存する前に列に値が必要な場合は、'true' に設定します。

Result Set Columns

Name Type Description
Success Boolean 列の更新が成功したかどうかを示します。操作が成功した場合は'true' を返し、それ以外の場合は'false' を返します。

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