Skip to main content
Execute custom code step

Run a custom code program if the execution conditions match.

Updated over a month ago

What is Execute Custom Code Step

The Execute Custom Code step in Yeeflow allows you to integrate JavaScript code directly into workflows, enabling custom functionality and more complex logic. By writing custom code, you can perform tasks that go beyond the standard workflow steps, such as advanced calculations, data manipulations, API requests, or integrations with external systems.


When to Use Execute Custom Code Step

Use the Execute Custom Code step when you need to:

  • Implement functionality that is not available in the default workflow options

  • Perform custom data manipulation, calculations, or validations

  • Integrate with external systems or APIs

  • Create advanced workflow logic to streamline unique processes

Use Cases

The Execute Custom Code step is helpful in a range of scenarios, such as:

  1. Data Processing: Use custom code to calculate complex metrics, manipulate form data, or filter large datasets before they proceed to the next step.

  2. API Integration: Trigger API requests to retrieve or send data to external systems, such as customer databases or CRM software.

  3. Advanced Workflow Logic: Add sophisticated decision-making conditions, create loops, or build other customized control structures to enhance workflow flexibility.


How to Use Execute Custom Code Step

1. Execution Condition

  • Execution Condition specifies the criteria that determine when this step will execute.

  • Check Continue next step when condition is not met if you want the workflow to proceed to the next step even if the conditions aren’t met.

  • Learn more about the Execution Condition of actions.

2. Paste Your Code Script Here

  • In this section, enter your JavaScript code to implement the specific functions required for your workflow.

  • The custom code block supports JavaScript, allowing you to create various functions tailored to your needs.

For guidance on writing custom scripts and integrating with Yeeflow workflows, refer to the Yeeflow Custom Code Guide on GitHub.

Using custom code in Yeeflow opens up advanced possibilities, ensuring you can build precisely the logic and functionality your workflow requires.

Did this answer your question?