younifyd
Menu

Execute Code

Execute JavaScript or TypeScript code in a secure isolated environment with access to lodash, date-fns, and uuid libraries

Use it in a workflow

  1. Add a step and choose the Code Executor connector.
  2. Pick the Execute Code action (under logic).
  3. Fill in the fields below, then reference the result from later steps as {{executeCode.response.data}}.

Fields

languagestring

Programming language (javascript or typescript)

One ofjavascripttypescriptDefault "javascript"

codestringrequired

JavaScript/TypeScript code to execute. Import allowed libraries: lodash, date-fns, uuid, zod, validator, jsonpath, jsonata, slugify, axios, jsonwebtoken. Use 'context' to access workflow data. Define main() as entry point or use direct return. Press F1 for commands, Ctrl+Space for autocomplete.

timeoutnumber

Maximum execution time in milliseconds (default: 5000)

Default 5000

memoryLimitnumber

Maximum memory usage in megabytes (default: 128)

Default 128

Need more? See the Code Executor guide for connection setup and behaviour shared by every action.

Was this page helpful?