Skip to main content

Switch Sheet

Switches the active sheet in a Google Spreadsheet.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Spreadsheet Id - The ID of the Google Spreadsheet containing the sheet to switch to.
  • Sheet Name - The name of the sheet to switch to.

Options

No additional options available for this node.

Output

No output variables for this node.

How It Works

The Switch Sheet node changes the active sheet within a Google Spreadsheet context. When executed, the node:

  1. Validates all input parameters
  2. Connects to the Google Spreadsheet using the provided ID
  3. Verifies that the specified sheet exists in the spreadsheet
  4. Gets the sheet ID for the target sheet
  5. Updates the spreadsheet context to use the specified sheet as active
  6. Returns any errors encountered during the process

Requirements

  • A valid Google Spreadsheet ID
  • A valid sheet name that exists in the spreadsheet
  • Proper Google Sheets API authentication and permissions

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid Spreadsheet Id
  • Empty or invalid Sheet Name
  • Sheet with the specified name does not exist
  • Google Sheets API authentication or permission errors
  • Network or connectivity issues with Google Sheets API

Usage Notes

  • The Spreadsheet Id can be obtained from the URL of your Google Spreadsheet or from the Open Spreadsheet node
  • The Sheet Name must exactly match an existing sheet in the spreadsheet
  • This node does not modify the spreadsheet structure or data
  • Subsequent Google Sheets nodes in the workflow will operate on the switched-to sheet
  • Ensure your Google account has proper permissions to access the target spreadsheet