Adds a new column to the specified list.
Input
| Name |
Type
|
Description
|
| List
|
String
|
The name of the list on the SharePoint server.
|
| ColumnName
|
String
|
The name of the column to add.
|
| DisplayName
|
String
|
The display name of the column to add.
|
| DefaultValue
|
String
|
The default value of the column to add.
|
| ColumnType
|
String
|
The data type of the column to add. The valid options are defined by the FieldTypes
available in the SharePoint API:
https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-csom/ee540543(v=office.15).
|
| MaxLength
|
String
|
The values' maximum length of the column to add.
|
| PrimaryKey
|
String
|
Boolean value indicating whether or not the column should be primary key.
|
| ReadOnly
|
String
|
Boolean value indicating whether or not the column is read only.
|
| Required
|
String
|
Boolean value indicating whether or not the column is required.
|
Result Set Columns
| Name |
Type |
Description
|
| Result
|
String
|
Boolean value indicating whether the operation was successful.
|