Get Size of Collections in Salesforce Flow

by Rijwan Mohmmed
1 comment
get-size-of-collections-in-salesforce-flow-techdicer

Hello friends, today we are going to discuss how to Get Size of Collections in Salesforce Flow. In Salesforce Flow, collections are an important tool for managing and manipulating large amounts of data. However, it’s equally important to know the size of your collections, both for performance reasons and to ensure that your data remains within the limits of the platform.

Also, check this: Set & Map in LWC Salesforce

Key Highlights :

  1. Can get the list size.
  2. Also counts the records.

Process:

Step 1: Create a resource for store recordId(Account Id)

Step 2: Create a resource for store counts of contacts.

Step 3: Create elements for getting Account contact records.

Step 4: Create an Assignment element to assign contact counts to resources.

Step 5: Show the total contact on screen.

Conclusion

Knowing the size of collections in Salesforce Flow is a crucial step in optimizing flow performance and ensuring that your data remains within platform limits. Whether using the Size function or a loop, it’s important to understand how to determine the size of collections in your flows.

Output :

Reference :

  1. Salesforce Flow
What’s your Reaction?
+1
2
+1
0
+1
0
+1
0
+1
0
+1
1

You may also like

1 comment

Grégory May 30, 2023 - 1:36 pm

Works for me ! Thanks

Reply

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.