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 channelsisLoadingboolean
Whether connected channels are being loadederrorError | null
Error object if the request failedExample#
Basic usage#
The following example demonstrates how to use the useConnectedMsTeamsChannels
hook to display connected Microsoft Teams channels.