Question 3 Replies 3214 Views × Close popover Venkata Krishna Battu (Krishna Battu) Infosys Limited Infosys Limited IN View Profile Send Message Krishna Battu Member since 2018 17 posts Infosys Limited Posted: January 21, 2019 Last activity: January 22, 2019 Posted: 21 Jan 2019 10:20 EST Last activity: 22 Jan 2019 10:21 EST Closed Solved How to Set property values as comma separated values when pagelist contains duplicates Hi When my PageList(1) Property contains duplicate values, have to set property of that pagelist values to another pagelist(2) by comma seperated. Sample.pxResults(1): A="xyz",B="123" etc.. Sample.pxResults(2).A="xyz" ,B="abc" etc.. Have to set above two pages as 1 page values like CSV: Final Output Required as: Test.pxResults(1): A="xyz",B="123,abc" Reporting × Close popover Facebook Twitter Linkedin Email Copy Link Copied! Moderation Team has archived post, learn more × Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 2 years ago Posted: 22 Jan 2019 3:43 EST × Close popover Santanu Bhattacherjee (Santanu) PEGA Manager CRM - Field Service Pegasystems Inc. IN View Profile Send Message Santanu PEGA replied to Krishna Battu Hello Have you checked this post : https://community1.pega.com/community/pega-support/question/check-duplicate-pagelist-based-two-properties Accepted Solution Posted: 2 years ago Posted: 22 Jan 2019 6:05 EST × Close popover L Vinay Kumar (VinayReddy7) Serendebyte Serendebyte IN View Profile Send Message VinayReddy7 Serendebyte replied to Krishna Battu Hi Krishna, Please follow below steps : 1.Copy Sample.pxResults to Test.pxResults 2.Use following function to remove duplicates from Test.pxResults "@pyRemoveDuplicatesFromPagelist(Test,"pxResults","A")" 3.Loop Test.pxResults and in property set take A value in a parameter(Param.Val=Test.pxResults(<CURENT>).A) and Param.Val2="") 3.1 Inside Test.pxResults loop Sample.pxResults and in when condition check Sample.pxResults(<CURENT>).A==Param.Val If it is true then continue and set Param.Val1=Param.Val2+","+Sample.pxResults(<CURENT>).B else exit iteration. 3.2 Test.pxResults(<CURRENT>).B = @whatComesAfterFirst(Param.Val2,',') (to remove first comma) For more details refer attached screenshot Regards, Vinay Reddy Posted: 2 years ago Posted: 22 Jan 2019 10:21 EST × Close popover Venkata Krishna Battu (Krishna Battu) Infosys Limited Infosys Limited IN View Profile Send Message Krishna Battu Infosys Limited replied to VinayReddy7 Thanks Vinay for your time, outcome is working as expected.