The CREATE_CHANNELl action creates a new channel in a Microsoft Teams team.
Use this action to automatically create public or private channels as part of a business process. This can be useful for project onboarding, case management, customer engagements, and other collaboration scenarios where a dedicated channel is required for communication and file sharing.
The action sends a request to Microsoft Teams through Microsoft Graph API to create a new channel in the specified team. When the request completes successfully, Microsoft Teams creates the channel and returns information about the newly created resource, including the channel identifier.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| teamId | String | Required | The identifier of the Microsoft Teams team in which the channel will be created. |
| channelName | String | Required | The name of the channel to create. |
| channelType | String | Optional | Specifies the type of channel to create, such as public or private. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| result | JSON | Optional | The response returned by Microsoft Teams, including channel information. |
| channelId | String | Optional | The identifier of the newly created channel. |
The example output from the action is:
{
"channelId": "19:4f5e8c3ab1234567890abcdef123456@thread.tacv2",
"result": {
"displayName": "Project Phoenix",
"membershipType": "private"
}
}
In this example, a private channel named Project Phoenix was successfully created.