Can you run another workflow with JS code instead of the workflow block?

  1. My goal: Run another workflow from my current workflow using JS code instead of the Retool workflow block
  2. Issue: Don't know the syntax
  3. Steps I've taken to troubleshoot: Could not find anything in documentation or forums
  4. Additional info: Self-hosted
1 Like

Hey there @Nathan_Wong and welcome to the forum!,

You can create a function in your workflow (which you would call from your JS code) and in that function select the workflow you want to run (you can also make it multistep)

Thank you @MiguelOrtiz for the warm welcome and rapid response. That should work!

1 Like