Check if a specific workflow is running

i’m trying to check a workflow is running but even running it returns the value as “isActive”: false

Did I do some wrong configuration?

thank you for your help

If you just want to check the current workflow is running, then change the isActive: executions.length > 1 to isActive: executions.length > 0.

You can also use $workflow.id for the comparison instead of a static value: execution.workflowId === $workflow.id.

2 Likes

this is exactly what i was looking for, thank you very much

1 Like

Hello,
Thanks for these answers.

Could someone details what is the final code?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.