Create Channel
AutomatR.Slack.Activities.CreateChannel
The "Create Channel" activity in AutomatR is part of the Slack Channel activities package, leveraging the Slack API to create a new channel within your workspace. This activity facilitates the automation of channel creation, supporting enhanced collaboration and communication workflows.
Properties
| Name | Description |
|---|---|
| Misc | |
| Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name. |
| Optional | |
| Delay | Specifies the amount of time (in seconds) to wait before executing the "Create Channel" activity. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
| Is Private Channel | Specifies whether the new channel will be public or private based on a boolean value. Boolean variables indicating whether the channel should be private. |
| Channel Name | The name of the channel that you want to create. String variables containing the desired channel name. |
| Output | |
| Channel Data | Returns the response as created channel data. Variables of type CreateChannelResult to store information about the newly created channel. |
CreateChannelResult Class
| Property | Description |
|---|---|
| created | The timestamp indicating when the channel was created. |
| id | The unique identifier for the channel. |
| is_channel | Indicates whether the channel is a general channel. |
| name | The name of the channel. |
| is_group | Indicates whether the channel is a group channel. |
| is_mpim | Indicates whether the channel is an MPIM (multiparty instant messaging) channel. |
| isPrivate | Indicates whether the channel is private. |
How to use:
- Drag and drop the "Create Channel" activity onto the workflow.
- Configure the properties by specifying the channel name and optionally indicating whether it should be private.
- Optionally, configure the delay.
- Execute the workflow to create the specified channel.
Example: Consider an example where the "Create Channel" activity is used to create a new public channel named "TeamAnnouncements":
Create Channel:
Delay: 2
Channel Name: "TeamAnnouncements"
Is Private Channel: false
Channel Data: NewChannelData
In this example, the activity creates a new public channel named "TeamAnnouncements," and the result is stored in the variable "NewChannelData" for further handling in the workflow.