Removing duplicate from list

I need to remove the duplicate from my list …But if I did this below , it doesn’t remove the duplicate just showing same list !!!

  value = ["1,2,1,5,1,2,1,5"]
  => VAR @kk

  list = @kk
  => VAR @removeDuplicatesOutput

Well you have a list with a single element, and that element is a string with the content 1,2,1,5,1,2,1,5 so obviously it doesn’t work. You need multiple elements

Split the string to a list using a Split block first, then pass that list to the remove duplicates block and it will work

1 Like

Yep it works but I got output of 1,2,1,5 …Why 1 getting 2times after even execute the remove duplicate fun ??

I have no clue, maybe the first one has an extra space in it? Use the trim block before splitting

1 Like