You are here:
all?
Checks whether every record in a data filter or datasheet in Salesforce Spiff satisfies one or more conditions. This function returns true when the condition is satisfied. This function is the opposite of the any? function.

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
Checks whether every record in a data filter or datasheet in Salesforce Spiff satisfies one or more conditions. This function returns true when the condition is satisfied. This function is the opposite of the any? function.
| 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 |
all?(datasheet_or_filter, condition)| Argument | Required? | Description |
|---|---|---|
| datasheet_or_filter | Required | The datasheet or filter that specifies the list of records to test. |
| condition | Optional | The condition to test. Use any expression or formula that results in true or false. To compare values, specify comparison operators or logical functions such as AND or OR. For example, to test whether the ARR field is greater than $100,000, enter ARR > 100000. |
Test whether all rows for the ARR field in the BigDealsSheet datasheet have a value greater than $100,000.
=all?(BigDealsSheet, ARR > 100000)
Because all the values exceed $100,000, this function returns true. If you change the condition to test for $50,000, this function returns false.
If the datasheet or filter contains no rows or records, this function returns true. To test whether the datasheet or filter includes at least one record first, add an any() function before the all?() function.
=any?(BigDealsSheet, true) AND all?(BigDealsSheet, ARR > 100000)
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.