AddListColumn
Adds a new column to the specified list.
Input
Name | Type | Required | Description |
ListName | String | True | The display name of the list on SharePoint. |
ColumnDisplayName | String | True | The display name of the column to add. |
ColumnType | String | True | 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). |
ColumnInternalName | String | False | The name of the column to add. |
IsRequired | Boolean | False | A Boolean value indicating whether the column is required. |
EnforceUniqueValues | Boolean | False | A Boolean value indicating whether to enforce unique values for the column. |
DisplayAfterCreation | Boolean | False | A Boolean value indicating whether to display the added field on the SharePoint UI. The default value is true. |
LookupListId | String | False | The list Id of the location of the field that you want to look up. |
LookupFieldName | String | False | The display name of the field that you want to look up. |
Result Set Columns
Name | Type | Description |
Success | Boolean | Indicates whether the operation executed successfully. |
ErrorCode | Integer | The error code in case the procedure did not execute successfully. |
ErrorMessage | String | The error message in case the procedure did not execute successfully. |