How to add a date column to your importer through code.
addColumn
function accepts an object as an argument.
internal_key
(String) - required: The internal key used to access a column’s value.label
(String) - required: The user-facing column label that is shown in the interface.column_type
(String) - required: Should be “date”.required
(String) - required: Whether or not the column is required.pattern
(String) - required: Must be one of these patterns.position
(Optional): The position or order of the column.unique
(Optional): Whether values should be unique.validations
(Optional): An array of built-in data validations. See Built-in Date Validations.transformations
(Optional): An array of built-in data transformations. See Built-in Date Transformations.addColumn
accepts an array of validations. Each validation has three properties:
validation_type:
the name of the validationmessage:
the message showed to the end user if the validation failsoptions:
options for the specific validation typevalidation_type
, message
and options
. As the example below:
addColumn
accepts an array of transformations. For the date transformations, you can specify one property:
transformation_type:
the name of the transformationtransformation_type
. As the example below:
pattern
on the column.