Code Execution

Execute Function step enables the execution of custom code scripts within Automations and can be used for more advanced logic in Automations. E.g. insert lightweight server-side logic (calculations, transformations) without external services, clean up payloads or shape data before passing it to subsequent steps and reduce reliance on separate servers or middleware by handling logic directly within Planhat automations.

The code editor within Execute Function has auto-complete for easy code writing, and takes replacement codes for dynamic input. E.g. <<Step 1.result>> to reference properties on specific steps, <<object.property>> to reference properties on trigger object.

Execution Environment

The code execution uses JavaScript (Node.js) with the following specifications,

  • Environment: Node.js 12.x

  • Memory: 128 MB

  • Timeout: 10 seconds

  • Async support: Yes, async/await + fetch for HTTP calls


Execute Function step enables the execution of custom code scripts within Automations and can be used for more advanced logic in Automations. E.g. insert lightweight server-side logic (calculations, transformations) without external services, clean up payloads or shape data before passing it to subsequent steps and reduce reliance on separate servers or middleware by handling logic directly within Planhat automations.

The code editor within Execute Function has auto-complete for easy code writing, and takes replacement codes for dynamic input. E.g. <<Step 1.result>> to reference properties on specific steps, <<object.property>> to reference properties on trigger object.

Execution Environment

The code execution uses JavaScript (Node.js) with the following specifications,

  • Environment: Node.js 12.x

  • Memory: 128 MB

  • Timeout: 10 seconds

  • Async support: Yes, async/await + fetch for HTTP calls


Execute Function step enables the execution of custom code scripts within Automations and can be used for more advanced logic in Automations. E.g. insert lightweight server-side logic (calculations, transformations) without external services, clean up payloads or shape data before passing it to subsequent steps and reduce reliance on separate servers or middleware by handling logic directly within Planhat automations.

The code editor within Execute Function has auto-complete for easy code writing, and takes replacement codes for dynamic input. E.g. <<Step 1.result>> to reference properties on specific steps, <<object.property>> to reference properties on trigger object.

Execution Environment

The code execution uses JavaScript (Node.js) with the following specifications,

  • Environment: Node.js 12.x

  • Memory: 128 MB

  • Timeout: 10 seconds

  • Async support: Yes, async/await + fetch for HTTP calls