Discussion
Instellars
SG
Last activity: 5 Jul 2023 3:18 EDT
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