Reference teams and teams in some Salesforce Spiff functions.
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 |
Teams
A team object in Salesforce Spiff includes the entire team and its data such as name, managers, and members. For example, the direct_manager_of() function returns the objects for the teams that a user manages. To return an attribute of the team, such as the team name, add the transform_list() function or dot syntax.
These functions return team objects.
direct_manager_of()direct_member_of()manager_of()member_of()team()
The team() function accepts a team name and returns a team object.
These functions require a team object as input.
managers()members()users_in_team()
Combine these functions other functions that return a team object.
members(team("AE - Team"))
Users
Reference the user keyword when you create a calculated field on the User object. The rep keyword also references the User object but for a specific rep in context.
To reference the internal ID that Spiff uses for a user, use user.id or rep.id.
If you sync data with Salesforce, reference the Salesforce User object with user.Id or rep.Id.