Slack
Slack is a team communication tool, that brings together all of your team communications in one place, instantly searchable and available wherever you go.
This connector is available in the following products and regions:
Service | Class | Regions |
---|---|---|
Logic Apps | Standard | All Logic Apps regions except the following: - Azure China regions - US Department of Defense (DoD) |
Power Automate | Standard | All Power Automate regions except the following: - China Cloud operated by 21Vianet |
Power Apps | Standard | All Power Apps regions except the following: - China Cloud operated by 21Vianet |
Contact | |
---|---|
Name | Microsoft |
URL | Microsoft LogicApps Support Microsoft Power Automate Support Microsoft Power Apps Support |
Connector Metadata | |
---|---|
Publisher | Microsoft |
Website | https://slack.com/ |
Privacy policy | https://slack.com/privacy-policy |
Known Issues and Limitations
As per the Slack API documentation, some Slack API methods that the connector uses will stop functioning in February 2021 and will not work with newly created apps after June 10th, 2020. So please use latest versions of below actions.
Actions:
Create a group is deprecated, please use latest version of Create a channel to create private channels.
The maximum number of characters in a message is limited to 4000. For more details, please refer to Slack's official documentation.
Connector in-depth
For more information about the connector, see the in-depth section.
Throttling Limits
Name | Calls | Renewal Period |
---|---|---|
API calls per connection | 100 | 60 seconds |
Frequency of trigger polls | 1 | 120 seconds |
Actions
Create a channel |
Create a channel in slack. |
Create a channel [DEPRECATED] |
This action has been deprecated. Please use Create a channel instead.
|
Create a group [DEPRECATED] |
Creates a group in slack. |
Join a channel [DEPRECATED] |
This action has been deprecated. Please use Join a public channel instead.
|
Join a public channel |
Join a public channel in slack. |
List channels [DEPRECATED] |
This action has been deprecated. Please use List public channels (Pagination support) instead.
|
List public channels |
List the public channels in slack. |
List public channels (Pagination support) (Preview) |
List the public channels in slack. |
Post message (V2) |
This operation is used to post a message to the specified channel. |
Post message [DEPRECATED] |
This action has been deprecated. Please use Post message (V2) instead.
|
Set do not disturb |
Set the do not disturb status for the user. |
Create a channel
Create a channel in slack.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Name
|
name | string |
The name of the new channel. |
|
Is Private channel?
|
is_private | boolean |
Channel is private or not |
Returns
Create a channel [DEPRECATED]
This action has been deprecated. Please use Create a channel instead.
Create a channel in slack.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Name
|
name | string |
The name of the new channel. |
Returns
Create a group [DEPRECATED]
Creates a group in slack.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Name
|
name | string |
The name of the group. |
Returns
Name | Path | Type | Description |
---|---|---|---|
Id
|
group.id | string |
The id of the group. |
Name
|
group.name | string |
The name of the group. |
Join a channel [DEPRECATED]
This action has been deprecated. Please use Join a public channel instead.
Join a channel in slack.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Name
|
name | string |
The name of the channel. |
Returns
- Body
- JoinChannel_Response
Join a public channel
Join a public channel in slack.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Channel Name
|
channel | string |
The name of the channel. |
Returns
List channels [DEPRECATED]
This action has been deprecated. Please use List public channels (Pagination support) instead.
List the channels in slack.
Returns
List public channels
List public channels (Pagination support) (Preview)
Post message (V2)
This operation is used to post a message to the specified channel.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Channel Name
|
channel | True | string |
Channel, private group, or IM channel to send message to. Can be a name(ex: #general) or an encoded ID. |
Message Text
|
text | True | string |
Body of the message to send. Slack API will truncate messages containing more than 40,000 characters. For formatting options, see https://api.slack.com/docs/formatting |
Bot Name
|
username | string |
Name of the bot. |
|
Post As User
|
as_user | boolean |
Pass true to post the message as the authenticated user, instead of as a bot. |
|
Parse Mode
|
parse | string |
Change how messages are treated. For details, see https://api.slack.com/docs/formatting |
|
Slack markup parsing
|
mrkdwn | boolean |
Slack markup parsing setting. Enabled by default. |
|
Link Names
|
link_names | integer |
Find and link channel names and usernames. |
|
Unfurl Links
|
unfurl_links | boolean |
Pass true to enable unfurling of primarily text-based content. |
|
Unfurl Media
|
unfurl_media | boolean |
Pass false to disable unfurling of media content. |
|
Icon Url
|
icon_url | uri |
URL to an image to use as an icon for this message. |
|
Icon Emoji
|
icon_emoji | string |
Emoji to use as an icon for this message. |
Returns
Details of the message posted to a Slack channel.
- Body
- PostMessageResponse
Post message [DEPRECATED]
This action has been deprecated. Please use Post message (V2) instead.
This operation is used to post a message to the specified channel.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Channel Name
|
channel | True | string |
Channel, private group, or IM channel to send message to. Can be a name(ex: #general) or an encoded ID. |
Message Text
|
text | True | string |
Body of the message to send (less than 4000 characters). For formatting options, see https://api.slack.com/docs/formatting. |
Bot Name
|
username | string |
Name of the bot. |
|
Post As User
|
as_user | boolean |
Pass true to post the message as the authenticated user, instead of as a bot. |
|
Parse Mode
|
parse | string |
Change how messages are treated. For details, see https://api.slack.com/docs/formatting. |
|
Link Names
|
link_names | integer |
Find and link channel names and usernames. |
|
Unfurl Links
|
unfurl_links | boolean |
Pass true to enable unfurling of primarily text-based content. |
|
Unfurl Media
|
unfurl_media | boolean |
Pass false to disable unfurling of media content. |
|
Icon Url
|
icon_url | uri |
URL to an image to use as an icon for this message. |
|
Icon Emoji
|
icon_emoji | string |
Emoji to use as an icon for this message. |
Returns
Name | Path | Type | Description |
---|---|---|---|
Success Result
|
ok | boolean |
Indicates if the operation was successful. |
Channel
|
channel | string |
The channel which the message was posted to. |
Created Date-Time
|
ts | string |
yyyy-MM-ddTHH:mm:ss.fffZ |
Message Text
|
message.text | string |
Body of the message. |
Message Id
|
message.id | string |
Unique identifier of the message. |
Creator Id
|
message.user | string |
Unique identifier of the user who posted the message. |
Created Time
|
message.created | integer |
Unix timestamp for when the message is created. |
Is Deleted
|
message.is_user-deleted | boolean |
Whether or not the message has been deleted. |
Error Messages
|
error | string |
Details of the error messages, if any. |
Set do not disturb
Set the do not disturb status for the user.
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Number of minutes
|
num_minutes | string |
The number of minutes to set do not disturb. |
Returns
Name | Path | Type | Description |
---|---|---|---|
Snooze Enabled
|
snooze_enabled | boolean |
Whether snooze is enabled. |
Triggers
When a file is created |
When a file is created |
When a file is created
When a file is created
Parameters
Name | Key | Required | Type | Description |
---|---|---|---|---|
Channel
|
channel | True | string |
The name of the channel. |
Returns
Name | Path | Type | Description |
---|---|---|---|
Id
|
id | string |
Id of the file |
Created
|
created | integer |
When the file was created. |
Name
|
name | string |
The name of the file. |
Title
|
title | string |
The title of the file. |
Definitions
Channel
The Channel
Name | Path | Type | Description |
---|---|---|---|
Id
|
id | string |
The id of the channel. |
Name
|
name | string |
The name of channel. |
ListChannels_Response
Name | Path | Type | Description |
---|---|---|---|
channels
|
channels | array of Channel |
ListChannels_ResponseV3
Name | Path | Type | Description |
---|---|---|---|
value
|
value | array of Channel |
CreateChannel_Response
Name | Path | Type | Description |
---|---|---|---|
Channel
|
channel | Channel |
The Channel |
JoinChannel_Response
Name | Path | Type | Description |
---|---|---|---|
Already in channel
|
already_in_channel | boolean |
Whether the user is already in the channel or not. |
Channel
|
channel | Channel |
The Channel |
JoinChannel_ResponseV2
Name | Path | Type | Description |
---|---|---|---|
Channel
|
channel | Channel |
The Channel |
Warning
|
warning | string |
Whether the user is already in the channel or not. |
PostMessageResponse
Details of the message posted to a Slack channel.
Name | Path | Type | Description |
---|---|---|---|
Success Result
|
ok | boolean |
Indicates if the operation was successful. |
Channel
|
channel | string |
The channel which the message was posted to. |
Created Time
|
ts | string |
Unix timestamp for when the message was created. |
Message Type
|
message.type | string |
Type of the message. |
Message Text
|
message.text | string |
Body of the message. |
Created Time
|
message.ts | string |
Unix timestamp for when the message was created. |
Error Messages
|
error | string |
Details of the error messages, if any. |