Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to get current activity count of workflow

Tadz
Kilo Sage

Hi, I have a workflow and I have set the max activity count to 200.

And I want to know the current activity count for a specific request.

Is it possible to get the current activity count for a specific workflow so that

I can tell the user that the max activity count is about to be reached. (Through script)

Thanks,

Tadz

1 ACCEPTED SOLUTION

dawidkubiak
Kilo Expert

Hi Cris,



There is a table 'wf_history' which contains all activities which were running on specific workflow. It have reference to workflow context which can be found by getContexts(record)


View solution in original post

2 REPLIES 2

dawidkubiak
Kilo Expert

Hi Cris,



There is a table 'wf_history' which contains all activities which were running on specific workflow. It have reference to workflow context which can be found by getContexts(record)


Thanks Dawid!, it worked