Salesforce Fact #166 | Duplicate removal in flow without sort

Suppose we have a use case where we have to fetch some account records and find out the count of unique account names inside flow. We can get the count without using any collection sort element. We can simply get this by doing exists check using the loop, decision & assignment elements. We can also develop this as a subflow to make it reusable.

Attached are the screenshots.









Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow