Fetch Rule Count from versions in Ruleset

Hi All,

I have been working on code migration from Pega 7 to Pega 8.

I want to fetch the number of rules present in each version for a particular ruleset.

I used pxGetRulesetVersions report definition, passed params for ruleset name, ruleset versions, and included another filter for pyAllRules>0. This has to fetch all versions having rule count more than zero but it’s not fetching the correct results

Is there any other approach to fetch the rule count?

Thanks!

Pooja

Hi @PoojaPalla: Can you try to use “pzgetTotalRuleCount” from “Data-Rule-Summary” class. You need to update it to add ruleset name (pyRuleSet) to get based on ruleset and version.

Thanks.

Hi @ArulDevan,

Thanks for your time and response, your suggested approach worked.