In-App UI
React
Hooks
useConnectedMsTeamsChannels
useConnectedMsTeamsChannels
The useConnectedMsTeamsChannels hook is used to retrieve Microsoft Teams channels that are currently connected for the user.
Parameters
#This hook does not accept any parameters.
Returns
#A UseConnectedMsTeamsChannelsReturn object with the following properties:
channelsConnectedMsTeamsChannel[]
Array of connected Microsoft Teams channels.
isLoadingboolean
Whether connected channels are being loaded.
errorError | null
Error object if the request failed.
Example
#Basic usage
#The following example demonstrates how to use the useConnectedMsTeamsChannels hook to display connected Microsoft Teams channels.