Question3Replies2615Views Krishna Battu Member since 2018 16 posts Infosys Limited Posted: 1 year agoLast activity: 1 year 8 months ago Closed Solved How to Set property values as comma separated values when pagelist contains duplicatesHiWhen 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 popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post 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: 1 year agoSantanu PEGA replied to Krishna BattuHello Have you checked this post : https://community1.pega.com/community/pega-support/question/check-dupli… Accepted Solution Posted: 1 year agoVinayReddy7 Serendebyte replied to Krishna BattuHi 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.1Inside 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: 1 year agoKrishna Battu Infosys Limited replied to VinayReddy7Thanks Vinay for your time, outcome is working as expected.