Invite to Channel
  • 26 Jan 2023
  • 1 Minute to read
  • Dark
    Light

Invite to Channel

  • Dark
    Light

Article summary

Step Details

Introduced in Version4.0.0
Last Modified in Version7.12.0
LocationIntegration > Slack Messenger

The Invite to Channel step will send an invitation to a user to join an existing channel. The invited user must have an account on the workspace in order for the step to succeed. This step is not used to invite external users to the channel.


Prerequisites

The following step requires the Slack Module to be installed in order for the steps to appear within the toolbox. In addition, the OAuth token requires the following scope. channels:manage.


Properties

Inputs

PropertyDescriptionData Type
Channel IDId of the specified channelString
User Id ListA list of String values representing the UserInt32

Outputs

PropertyDescriptionData Type
Error


Error infoString containing the HTTPErrorCode along with an Error Message returned.String
Result


RESULTOutput containing the configuration information for the channel created in SlackString

Example Inputs and Outputs

Channel IDUser ID ListOutput
C04M2E8EEL9
U03G2TDQB8, U02A1BALO3
Users are invited to the channel
C04M2E8EEL9
U24D3GALB6
Error returned: user_not_found
C04M2E8EEL9List containing an existing user in the channelError returned: already_in channel
Null ValueU03G2TDQB8, U02A1BALO3
Error returned: Value cannot be null
Empty StringU03G2TDQB8, U02A1BALO3
Error returned: channel_not_found


Common Errors

Already in channel

The error appears when a specified user in the list is currently a member of the channel. Remove the user id from the list or from the channel and rerun the step.

User not found

The following error appears when an ID for a user is incorrect. Ensure that the IDs of the users are entered correctly and represent users that are members of the workspace.


Related Information

Related Articles:

Slack Module


Was this article helpful?