Discussion

Remove Duplicates from a pagelist

Hi,

can any one suggest ways to remove duplicates from a pagelist.

We Found a the function "pega_rules_utilities.removeDuplicatesFromList".. Can any one guide how to use it..

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

January 6, 2014 - 1:30am

subscribing.

January 6, 2014 - 12:26pm

Hi,

  Use the function IsInPageList which will eliminates the duplicate value from pagelist. 

January 7, 2014 - 12:37am

How to use isinpagelist can you show me steps :)

September 10, 2015 - 11:27am

Hi,

I need to remove duplicates from a page list. I'm unable to use isinpagelist because, in my page list results i have somw entries with special characters (Eg: (manager)). It is throwing error as below.

 

The reference AssignmentGatekeeper(Manager)toAdjuster is not valid. Reason: unexpected character 't' at position 29, expected dot.

 

Could you please let me know what can i do for this.

September 10, 2015 - 5:10pm

You can use below Rule-Utility-Function-

pega_rules_utilities.removeDuplicatesFromList(<PageListName> , <KeyProperty>, <ClassOfEntriesInThePageList>);

Call it from a Java step in a activity.