GET /workflows incorrectly reporting 0 executions

I have a Workflow in my production environment that shows over 2000 Successful Runs and an Error Rate of 0.84%. When I make a GET call to the List Workflows endpoint ({{baseUrl}}/workflows), it says it’s run 0 times.

    "enabled": true,
    "executionCount": 0,
    "failureCount": 0,

When I try to call the List Workflow Executions endpoint for that workflow, it gives me an empty array (which makes sense given that the List Workflows endpoint reports 0 executions, but doesn’t make sense in a world where there’s actually 2000+ executions).

Anyone else? Just me?

Thanks!
-Mark

1 Like

Hi @mcorsillo_bose ,

You can try below API -

GET  'https://{{baseURL}}/beta/workflows/:<workflowid>/executions' 
--header 'Accept: application/json' 
--header 'Authorization: Bearer <token>'
1 Like

Hello @mcorsillo_bose ,

Just to chime in, I tested this in a partner tenant and am seeing the same results as you. However when I get a workflow by ID, I do see executionCount and failureCount populated.
GET ‘{{baseURL}}workflows/{id}’

Thanks for reporting this @mcorsillo_bose . I have reproduced the issue and opened an engineering ticket. (PLTWRKFLW-4193)

1 Like