MS Teams – Team – Get All Team From Team Items

Estimated reading: 2 minutes

MS Teams – Team – Get All Team From Team Items

Get a Teams team from a collection of all teams by id.

Action details

PropertyValue
Action labelMS Teams – Team – Get All Team From Team Items
CategoryCloudTools
Apex class and methodGetAllMSTeamsTeamById.getTeamById
Input typeGetAllMSTeamsTeamById.GetAllMSTeamsTeamByIdInput
Output typeList<MSTeamsTeam>
AuthorizationNo 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

InputApex fieldTypeRequiredDescription
IdidStringYesTeam id to find
ItemsitemsList<MSTeamsTeam>YesTeams 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.

OutputApex fieldTypeDescription
IdidStringUnique identifier of the team
Display NamedisplayNameStringDisplay name of the team
DescriptiondescriptionStringDescription of the team
Created Date TimecreatedDateTimeStringCreated timestamp for the team
Internal IdinternalIdStringInternal identifier for the team
ClassificationclassificationStringClassification label for the team
SpecializationspecializationStringSpecialization for the team
VisibilityvisibilityStringVisibility of the team
Web URLwebUrlStringLink to the team in Teams
Is ArchivedisArchivedBooleanWhether the team is archived
Tenant IdtenantIdStringTenant identifier for the team
OData TypeodataTypeStringOData type for the team
Additional PropertiesadditionalPropertiesList<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

SymptomWhat to check
Null matchCheck the collection type and ID. A missing match is returned as null.

See Teams connector introduction.

Share this Doc

MS Teams – Team – Get All Team From Team Items

Or copy link

CONTENTS

Free eBook: The Ultimate Guide to Power Platform Custom Connectors

Antimanual

Ask our AI support assistant your questions about our platform, features, and services.

You are offline
Chatbot avatar
What can I help you with?

Subscribe

×
Cancel