Duplicates in page list from temp pages

How can we remove duplicates from temporary page list. Function are not working getting null point error

@venkatasahithp6252 To remove duplicates from a temporary page list in Pega, use a loop with conditional checks to manually compare and delete entries. If functions cause errors, ensure proper initialization of the page list.

@venkatasahithp6252

Please check the solutions discussed in the below links.

I hope this helps!

@venkatasahithp6252

Which function are you using, can you share screenshot of usage, error ?

You can use OOTB pyRemoveDuplicatesFromPagelist()

Sample usage: @Utilities.pyRemoveDuplicatesFromPagelist(UserList,“pxResults”,“pyUserIdentifier,DisplayDate”)