CData Python Connector for Microsoft SharePoint

Build 25.0.9440

AddListColumn

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

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) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9440