MS Teams – Team – Get All Team From Team Items
MS Teams – Team – Get All Team From Team Items
Get a Teams team from a collection of all teams by id.
Action details
| Property | Value |
|---|---|
| Action label | MS Teams – Team – Get All Team From Team Items |
| Category | CloudTools |
| Apex class and method | GetAllMSTeamsTeamById.getTeamById |
| Input type | GetAllMSTeamsTeamById.GetAllMSTeamsTeamByIdInput |
| Output type | List<MSTeamsTeam> |
| Authorization | No connection required. |
Prerequisites and permissions
Supply a previously retrieved collection of the documented model type. This helper performs no callout and needs no Microsoft connector or permissions of its own.
Inputs
| Input | Apex field | Type | Required | Description |
|---|---|---|---|---|
| Id | id | String | Yes | Team id to find |
| Items | items | List<MSTeamsTeam> | Yes | Teams to search |
Outputs
Returns one item per request, preserving request order. A null request, blank ID, null collection, or missing match yields null. An empty or null request list returns a single null element. The first matching non-null item is returned.
| Output | Apex field | Type | Description |
|---|---|---|---|
| Id | id | String | Unique identifier of the team |
| Display Name | displayName | String | Display name of the team |
| Description | description | String | Description of the team |
| Created Date Time | createdDateTime | String | Created timestamp for the team |
| Internal Id | internalId | String | Internal identifier for the team |
| Classification | classification | String | Classification label for the team |
| Specialization | specialization | String | Specialization for the team |
| Visibility | visibility | String | Visibility of the team |
| Web URL | webUrl | String | Link to the team in Teams |
| Is Archived | isArchived | Boolean | Whether the team is archived |
| Tenant Id | tenantId | String | Tenant identifier for the team |
| OData Type | odataType | String | OData type for the team |
| Additional Properties | additionalProperties | List<DynamicObject> | Additional properties from user-defined query |
Use in Flow
Add MS Teams – Team – Get All Team From Team Items where supported. Pass a previously retrieved collection and an ID; check the returned item for null.
Use in custom Apex
This subscriber-org example uses the Apptigent namespace. Replace example identifiers and values before use. No callout context is required.
Apptigent.GetAllMSTeamsTeamById.GetAllMSTeamsTeamByIdInput request =
new Apptigent.GetAllMSTeamsTeamById.GetAllMSTeamsTeamByIdInput();
request.id = 'REPLACE_WITH_ID';
request.items = new List<Apptigent.MSTeamsTeam>{ /* previously retrieved items */ };
List<Apptigent.MSTeamsTeam> results =
Apptigent.GetAllMSTeamsTeamById.getTeamById(
new List<Apptigent.GetAllMSTeamsTeamById.GetAllMSTeamsTeamByIdInput>{ request }
);
System.debug(results);
Use in a Lightning Web Component
This helper is not exported by msTeamsConnectorLib. Search an existing JavaScript collection with items.find(item => item && item.id === id) || null; this performs no callout.
Error handling and troubleshooting
| Symptom | What to check |
|---|---|
| Null match | Check the collection type and ID. A missing match is returned as null. |