Skip to main content

Syntax

setNextNode(nodeId, flowId)

Description

Sets a custom Node with the given nodeId to be executed immediately after the current one.
This function is used by If and Lookup Nodes to select child Nodes based on their configuration.
Call setNextNode(childNodeId) before returning to continue execution at that child Node. The target Node must be available as an Entrypoint in the Flow. Parameters:
  • nodeId: string — the Node ID.
  • flowId: string — the ID of the Flow containing the target Node. This parameter is optional and required if the target Node is in a different Flow.
Returns: void

Example

Last modified on April 21, 2026