Returns a Team object in Salesforce Spiff and includes all fields such as the team name, leads, and effective dates. Use this function with other functions that require a reference to a Team object.
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
team(team_name_or_id)
Arguments
| Argument |
Required? |
Description |
| team_name_or_id |
Required |
The name of a team that's defined on the Teams page in Spiff. Enclose the name in double quotes. |
Example
Combine the team() function with the count() and users_in_team() functions to return the number of team members on the Corporate VP team.
=count(users_in_team(team("Corporate VP Team"), statement_period.start_date, statement_period.end_date))