Skip to main content
Columns

Rename column

Rename column

Renames a column of a table.


Options

Google Sheets connection

Select the Connection action set up in the flow.

Spreadsheet ID

Enter the ID of the spreadsheet the table is in. The ID can be found in the spreadsheet URL: docs.google.com/spreadsheets/d/{spreadsheetId}/edit.

Table name

Enter the name of the table that holds the column to rename, for example Clientes. Use the List tables action to discover the names of the existing tables.

Current column name

The exact column name, as it appears in the table header.

New column name

Enter the new name the column will have.

Returns

Javascript code

js
actions["action-id"].name // The column's new name (Text)

Field selection

  • name — The column's new name (Text)

Rules and Conditions

  • The Google Sheets connection, Spreadsheet ID, Table name, Current column name and New column name fields are required.
  • If the table given in Table name is not found, the robot stops with an error.
  • If the column given in Current column name does not exist in the table header, the robot stops with an error.
  • The action only updates the column header text in the spreadsheet; the data already in the column is not changed.