Remove Duplicates from Pagelist using Java Code

Hi Everyone,

If you wants to remove duplicates from Temporary Pagelist. you can use below code in Java method in the activity.

pega_rules_utilities.pyRemoveDuplicatesFromPagelist(myStepPage,“.pxResults”,“pxReferenceID”);

Here myStepPage is need to pass Pagelist property.

And checking duplicate values on pxReferenceID property.

And If you wants to remove duplicates from embedded Pagelist (Pagelist under pyWorkPage), use below code in the Java method.

pega_rules_utilities.pyRemoveDuplicatesFromPagelist(myStepPage,“.TaxContacts”,“UserIdentifier”);

Here TaxContacts is the PageList Property under pyWorkPage and checking duplicate values on UserIdentifier property.

Thanks,

Prasad Rangu

@PrasadRangu Above mentioned method available as a function. Please try to use OOTB functions instead of Java method.