Skip to main content

Hi All, 

I need a way to remove duplicates from a Collection Variable without writing code. 

 

My Flow processing gets me to a point where I have a Collection Variable that contains ContactIDs for Contacts that I will send an email to. Here is what the contents of the Collection Variable looks like. 

 

ContactID Collection Variable: ContactID1, ContactID2, ContactID3, ContactID4, ContactID4, ContactID4

 

 

My challenge is ContactID4 is replicated 3 times within my Collection Variable. If I send an email to the Contacts in my Collection Variable then ContactID4 will get 3 emails. 

 

How can I de-dupe my Collection Variable so ContactID4 only occurs once? 

 

Thanks!

Chris Hoffart

Mobile Loaves & Fishes

#Flow #Salesforce Flow

7 answers
  1. Davis Johnson (SolomonEdwards) Forum Ambassador
    Nov 13, 2023, 3:00 PM

    @Chris Hoffart,

    Yea I think I glanced over that from the original use case.. the remove uncommon operator likely won't be of much help here. Either doing what Eric recommended or unpacking the collection after the insertion (loop it, decision element checking its presence in a new collection, if found=>skip to next, if not found=>insert into new collection) would likely both work just fine.

0/9000