Workflows · 1 min read
Custom Code Workflow Action
The Custom Code action lets you write JavaScript to handle logic that isn't available as a built-in action.
How it works
- Add the Custom Code action to your workflow.
- Add input properties. These pass data from the contact or earlier steps into your code.
- Write your code. Use the input properties to do things like format text, do math, or combine values.
- Return a result from your code.
- Click Test to run it and check the output.
- Save. The output can be used in later steps.
Tips
- Keep code short and focused on one job.
- Test with real sample data before publishing.
- If your code calls an outside service, handle errors so the workflow keeps going.