How to query the id of waiting workflows

I can get the running workflows through a function.

With “execution.workflowId”

How would it be possible to search for the workflows that are waiting to be executed?

Hi @Rodrigo_Barbosa, I am afraid there currently is no supported way of querying waiting executions.

A hacky approach could be to query the execution list by using the REST API used by the n8n UI, you can find a few examples on the forum on how this can be done, however, especially for waiting workflow executions we currently have an open bug unfortunately: Bug report - Filter for "waiting" in executions not working. So before hacking your way through this you would want to wait for this to be fixed.