Skip to content

Execute workflow

The Execute workflow action allows you to trigger another workflow from within your current workflow. This is useful for:

  • Reusing global workflows across different parts of your application
  • Breaking down complex workflows into smaller, manageable pieces
  • Keeping your workflows organized and maintainable

By breaking down complex logic into reusable global workflows, you can build powerful, scalable features that can be easily reused across your application.

How to Use

Let's say you want to trigger a global workflow from a button's local workflow:

A dashboard button example

  1. Go to the Actions tab
  2. Give your global workflow a name
  3. Pass parameters if needed (optional)

An example on how to create global workflows

For example, to create a global workflow that logs a message to the console:

  1. Add a Log action
  2. Access the Events tab to retrieve your defined workflow parameters

Global workflow body

In your button workflow, add the Execute workflow action and select the workflow you want to execute. You'll then be prompted to provide any required parameters.

The Execute Workflow action being used to execute the global workflow from within the local workflow

When the button is clicked, it will execute the global workflow:

The results of the triggered global workflow being displayed in the Logs tab

TIP

Use Execute workflow whenever you find yourself repeating the same series of actions in different places, or when a workflow becomes too complex to manage.