Add column action in the Record package
- Updated: 2023/08/04
Use the Add column action to add a new column to an existing record variable at a specific index position, and store the output within a destination record variable. You can then insert this destination record variable into a Data table or Dictionary object.
Settings
- In the Actions palette, double-click or drag the Add column action from the Record package.
- Click the Source record
variable drop-down and select an existing source record
variable.
If there are no existing record variables, create one.
- (Optional) Enter a name for the column you want to add in the Column name field.Note: The column name is case sensitive. An error message is displayed if you try to add an existing column name. However, you can add a duplicate entry of an empty column name.
- Click the Column type
drop-down and select one of the following options as the type for the column
that you are adding:
- Use the Insert column at field to
select one of the following options to specify the index:
- first index: to insert the column at the first position (0 index) in a record variable.
- last index: to insert the column at the last position of the record variable.
- specific index:
to insert a column at a specific position in the record variable.
For example, to insert a column at index position 1, enter 0. The index number starts from 0. The first item in the record variable is at position 0, the second item at 1, and so on.
- Click the Destination record
variable drop-down to select an existing destination record
variable.
(Optional) Click the Create variable icon to create a record variable. For more information, see Record variable.