Use the Get column name action to retrieve the name of a column from a Data Table by specifying the corresponding column index. The action returns the column name as a String output. If the column has no name, the action returns an empty string.

Considerations

Review the following considerations before using the Get column name action:
  • A valid Data Table variable was created or populated earlier in the task.

    For example, from Read CSV, Create Data Table, Insert/Update Row, or other actions

  • The specified column index is available in the Data Table during runtime.

Settings

  • Click the Data Table name drop-down menu and select an existing data table.

    If there is no existing data table, click the Create variable icon to create one.

  • In the Column index field, enter or specify the position of a column you want to reference.
    The column index is a numeric value that identifies the position of a specific column in a table or data set. You typically use this field to read, write, update, or extract data from a specific column.
    Note: The index count starts from 0.
  • Click the Assign column name to variable drop-down menu to select an existing string variable that you want to assign the name of the column for a later use in your automation.

    If there is no existing data table, click the Create variable icon to create one.