The GET_TEAMS action is used by the Teams connector and retrieves all of the visible teams of the organization.
Use this action to obtain information about available teams before creating channels, sending messages, or performing other Microsoft Teams operations. The returned team information can be mapped to process variables and used by subsequent workflow activities.
The action uses Microsoft Graph API to retrieve team information from Microsoft Teams. When a team name is specified, the action attempts to locate matching teams. If no team name is provided, all teams visible to the configured connector account are returned. The resulting team information can then be used by other Teams connector actions, such as creating channels or sending messages.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| teamName | String | Optional | The name of the team to retrieve. If no value is provided, all visible teams are returned. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| result | JSON | Optional | The response returned by Microsoft Teams, including team names and identifiers. |
An example output is:
{
"result": [
{
"id": "3f90b2d4-5c1e-4f5b-9f4f-123456789abc",
"displayName": "Project Phoenix"
},
{
"id": "8a37c851-0f77-4cb6-a8db-987654321def",
"displayName": "Customer Success"
}
]
}
In this example, the action returned two Microsoft Teams teams that are available to the connector account.