Skip to content

Channel Data Source

This data source retrieves a list of available team channels, which is beneficial when enabling users to select a channel for specific use cases.

The ChannelDataSource provides a list of channels in the following JSON format:

1
2
3
4
5
6
{
    "name": "channel name",
    "text": "channel name",
    "value": "channel id",
    "icon": "channel icon"
}

If ValueFormat and TextFormat properties are not explicitly specified, the data source will default to using {{value}} and {{text}}, respectively.

Example

1
2
3
<ChannelDataSource TextFormat="" ValueFormat="" Enabled="True">
    <Mappings/>
</ChannelDataSource>