You are here:
Traverse Multiple One-to-Many Relationships in Salesforce Spiff
Return data for an object that's separated by multiple layers of a relationship in Salesforce Spiff.

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
Return data for an object that's separated by multiple layers of a relationship in Salesforce Spiff.
| 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 |
| User Permissions Needed | |
|---|---|
| To create a data relationship: | A Spiff user role with this permission turned on. Designer Configuration: Manage |
For example, maybe you want to sum all opportunity products per account, which requires traversing an one-to-many relationship from account to opportunities and a one-to-many relationship from opportunity to opportunity products. We recommend that you start in the middle.
OpportunityProductTotal = sum(OpportunityToProducts, ProductPrice)
AccountTotal = sum(AccountToOpportunities, OpportunityProductTotal)
You can apply this same approach for any data type or field.

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.