> For the complete documentation index, see [llms.txt](https://docs.visualyze.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visualyze.ai/rpa-studio/data/datatable/datacolumn/add-data-column.md).

# Add Data Column

Add a data column into a data table.

Create a data column with the specified column name and add it to the data table. If the data column is specified then add it directly to the specified data table.

### Input

* **Input** : [`DataTable Variable`](/getting-started/rpa-studio/variables.md#datatable)![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-20e90e25afa096ee0833e242a7763776d12b4591%2Fimage.png?alt=media)\
  The `DataTable` variable to add columns.
* **Column Name** : [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments) `Optional`\
  The name of the new column.
* **Data Column** : [`Object Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments) `Optional`\
  The data column object to be added to the data table.

{% hint style="info" %}
If this property is set, all properties under the Options category are ignored.
{% endhint %}

### Options

* **Allow Null** :\
  Specifies whether the field in the new column is allowed to be empty.
  * `True` - The field of the new column will be empty.
  * `False` - The field of the new column will not be empty.
* **Auto Increment** :\
  Specifies whether the value of the column automatically increments when adding new rows.
  * `True` - The value of the column will be automatically incremented when adding new rows.
  * `False` - The value of the column will not be automatically incremented when adding new rows.
* **Column Type**:\
  Specifies the type of the data column to be added to the data table. By default, the value is **String**.
* **Default Value** : [`Object Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)\
  The default value for the new column when creating new rows.

{% hint style="info" %}
It cannot set a default value on an auto increment column.
{% endhint %}

* **Maximum Length** : [`Integer Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)\
  The maximum length of the value for the new column.

{% hint style="info" %}
Maximum Length applies string data type only.
{% endhint %}

* **Unique** :
  * `True` - The value will be unique for each row that specifies the new column.
  * `False` - The value will not be unique for each row that specifies the new column.
