Question

ING
PH
Last activity: 9 Jun 2025 9:35 EDT
How to remove index in a page list inside a page list with a duplicate
I have an example page list of:
.Documents(1).Signatories(1).pyEmail = "abc"
.Documents(1).Signatories(2).pyEmail = "xyz"
.Documents(1).Signatories(3).pyEmail = "abc"
.Documents(1).Signatories(4).pyEmail = "jkl"
Since .Documents(1).Signatories(1).pyEmail and .Documents(1).Signatories(3).pyEmail have the same value,
I only need to retain .Documents(1).Signatories(1).pyEmail and remove the index .Signatories(3) from .Documents(1)
However, when I do: @Utilities.pyRemoveDuplicatesFromPagelist(pyWorkPage,".Documents(Param.Index).Signatories",".pyEmail")
I'm getting an error:
Test compilation failed: ---------- 1. ERROR in /Rule_Obj_Model_REDACTED.java (at line 440) pzSourceVar38 = pega.<Void>resolveMethodCall("pyRemoveDuplicatesFromPagelist--(ClipboardPage,String,String)", "pyRemoveDuplicatesFromPagelist", null, "Utilities", new Object[] { pega.findPage("pyWorkPage", "REDACTED-CLASS"), ".Documents(Param.Index).Signatories", ".pyEmail" });
Is there a better way to approach this? Thanks!