---
schema_version: "1"
id: 06fdbe13958bced2e654579a7ab33f8bfe3a31b9d09f95a44c36756d97ac8c86
title: team
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/spiff_function_ref_team.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.spiff_function_ref_team.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: eb1ea4575208f1fda76c47a36a50bdf7f2c1f98d6b97a9d938917eab4832c440
description: 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.
products:
  - Sales Cloud
  - Sales Enablement
release: "264"
---
# team

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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available for an additional cost in: <strong>Professional</strong> Edition with Web Services API Enabled</td></tr></tbody></table>

## 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))
```

#### See Also

- [count](https://help.salesforce.com/s/articleView?id=sales.spiff_function_ref_count.htm&release=264.0.0&type=5 "Returns the total number of items in a list or data filter in Salesforce Spiff.")
- [users\_in\_team](https://help.salesforce.com/s/articleView?id=sales.spiff_function_ref_users_in_team.htm&release=264.0.0&type=5 "Returns a list of user IDs from a team in Salesforce Spiff. Combine other functions to count the number of reps on a team or sum team member quotas. For a rollup of team members, use a Guided Rollup instead.")
- [Team and User Objects in Salesforce Spiff Functions](https://help.salesforce.com/s/articleView?id=sales.spiff_functions_team.htm&release=264.0.0&type=5 "Reference teams and teams in some Salesforce Spiff functions.")