You are here:
Dot Syntax in Salesforce Spiff Formulas
Functions and formulas in Salesforce Spiff use dot syntax for efficiently referencing fields, relationships, Team object details, and data from multiple records.

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
Functions and formulas in Salesforce Spiff use dot syntax for efficiently referencing fields, relationships, Team object details, and data from multiple records.
| 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 |
For example, a worksheet calculation named LargestDealInPeriod has this formula for returning the largest deal record within a specific period.
=choose(1, sort(ClosedInPeriod, DealAmount, -1))
The ClosedInPeriod data filter returns all deals closed in the period, and the sort() function arranges the list of deals by DealAmount, from highest to lowest. The choose() function selects the first record.
This calculation doesn't show anything in the worksheet because it returns a record, not a value. The referenced record contains multiple fields with different values. Reference a specific field's value with dot syntax.
=HighestDealInPeriod.CloseDate.=HighestDealInPeriod.DealAmount.=HighestDealInPeriod.OwnerName.
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.