How to Instantly Count Your Salesforce Records with Flow!
ฝัง
- เผยแพร่เมื่อ 7 ม.ค. 2025
- In this flow tutorial, we'll go over how to count records inside a flow. We happen to use a screen flow here, but this process will work with all flow types! All you need is a record collection and a number variable!
🏆 Join the Salesforce Saturday Email for weekly tips from me (Free):
www.nickfrates...
💰 Learn how to build flows in the Salesforce Flow course over 15,000 Salesforce professionals like you have taken:
www.nickfrates...
📜 Get the 10 Ways to Boost Your Salesforce Career Guide (Free):
www.nickfrates...
#salesforceflow #salesforce
You don't need a loop for this. You can:
- create a variable of type number, for example "collection_size", default value 0;
- assignment element, using the variable "collection_size" on the left, operator "Equals Count" and the Get element name on the right;
- use the variable name on the screen;
Loop is not needed in this scenario and if you have a lot of records it will take time to go over each and every record :)
I really like your channel and have been an admin for 6 years. You should know that you can get a sum now with the assign element and you dont need to loop through all the records anymore!
That's so cool I didn't even realize! Thanks :D
I just saw this comment. How would you go about doing that?? That's awesome
NumberVariable EQUALS COUNT CollectionVariable. Done!
How would you go about taking a certain action when the count hits x number in a specific timeframe (ie 3 cases created on an account in the last 180 days)?
Using the Today () variable doesn't work on the new version of Flow.