MS Teams – Team – Get Team App From App Items

Estimated reading: 2 minutes

MS Teams – Team – Get Team App From App Items

Get a Teams team app from a collection of apps by id.

Action details

PropertyValue
Action labelMS Teams – Team – Get Team App From App Items
CategoryCloudTools
Apex class and methodGetMSTeamsTeamAppById.getTeamAppById
Input typeGetMSTeamsTeamAppById.GetMSTeamsTeamAppByIdInput
Output typeList<MSTeamsTeamApp>
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
IdidStringYesApp id to find
ItemsitemsList<MSTeamsTeamApp>YesApps 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 for the installed app resource
Teams App IdteamsAppIdStringUnique identifier for the app in Teams catalog
Teams App Display NameteamsAppDisplayNameStringDisplay name of the installed Teams app
Teams App External IdteamsAppExternalIdStringExternal identifier for the installed Teams app
Teams App Definition IdteamsAppDefinitionIdStringIdentifier of the installed Teams app definition
Teams App Definition Display NameteamsAppDefinitionDisplayNameStringDisplay name of the app definition
Teams App Definition VersionteamsAppDefinitionVersionStringVersion of the app definition
Distribution MethoddistributionMethodStringDistribution method for the app definition
OData TypeodataTypeStringOData type for the installed app resource
OData ETagodataEtagStringOData ETag for the installed app resource
Additional PropertiesadditionalPropertiesList<DynamicObject>Additional properties from user-defined query

Use in Flow

Add MS Teams – Team – Get Team App From App 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.GetMSTeamsTeamAppById.GetMSTeamsTeamAppByIdInput request =
    new Apptigent.GetMSTeamsTeamAppById.GetMSTeamsTeamAppByIdInput();
request.id = 'REPLACE_WITH_ID';
request.items = new List<Apptigent.MSTeamsTeamApp>{ /* previously retrieved items */ };

List<Apptigent.MSTeamsTeamApp> results =
    Apptigent.GetMSTeamsTeamAppById.getTeamAppById(
        new List<Apptigent.GetMSTeamsTeamAppById.GetMSTeamsTeamAppByIdInput>{ 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 Team App From App 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