Returns the total number of items in a list or data filter in Salesforce Spiff.
Required Editions
| Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions |
| Available for an additional cost in: Professional Edition with Web Services API Enabled |
Syntax
count(list)
Arguments
| Argument | Required? | Description |
|---|---|---|
| list | Required | The list or data filter that contains the items you want to count. |
Considerations
This function can't count a number or a string, such as count(3) or count("widget").
Example
Count the total number of items in a MeetingsInPeriodBDR data filter, which returns meetings booked in a period by rep.
=count(MeetingsInPeriodBDR)