Salesforce Fact #633 | Flow: Check of target collection is empty after filter

While using collection filters in flow, if we need to check whether the target collection after the filter is empty, isNull operator does not work. Because an empty target collection after the filter has the value as [].

So, we can create a dummy blank collection filter. 

In this example, we have a collection filter on a list of account records. Now, in order to check the target collection is empty or not we are comparing it with a dummy blank collection filter.

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