I want to use the function numprocessesforprocessmodelforstatus(id, status, includeSubProcessData), but I don't understand how to get the ID of the process model I want to reference. The documentation doesn't give an example that incorporates fetching the ID of a model, the example just says "numprocessesforprocessmodelforstatus(processModelId,"completed")" but doesn't explain how to get the id. The documentation has been giving me a headache since day one. If I look up "process model id" I get zero results in the documentation search.
numprocessesforprocessmodelforstatus(processModelId,"completed")
Discussion posts and replies are publicly visible
I do realise I can reference the current process model with "pm!id" but I want to reference a different one.