The Get channel details action enables you to retrieve detailed information about a specific Slack channel, such as its name, topic, members, and creation date.

Settings

  • Use the Session name field to select one of the following options:
    • Session name: Enter the name of the session used during the Connect action.

      (Optional) Click the Insert a value icon to select an existing variable that you have used to store the default session name.

    • Variable: Enter the name of the variable that you have used to store the Slack session name.
  • Specify channel by: Select one of the following options to identify the channel.
  • Assign channel details to a variable: Choose either Multiple variables or Dictionary variable to save the message details in the output variable:
    • Multiple variables: Assigns each retrieved value of a specific key (for example, (ID, channelName, isPrivate, isPublic, isArchived, isIM, isChannel, isMultipleIM, userID, createdTime, createdBy, topic, purpose, memberCount, and latestMessage.) to a separate variable enabling you to map each detail to a specific variable. Do following steps for each variable:
      • Click Add variable mapping.
      • Enter the Key of the variable.
      • In the Map to variable field, choose a variable where the data will be saved.
      • Click Add for this data to be saved to the configured variable.
      Table 1. Keys with variable mapping
      Key Description Variable type
      ID Unique identifier assigned to the Slack message String
      channelName Displays name of the channel. String
      isPrivate Indicates whether the channel is private. Boolean
      isPublic Indicates whether the channel is public. Boolean
      isArchived Indicates whether the channel is archived. Boolean
      isIM Indicates whether the channel is a direct message. Boolean
      isChannel Indicates whether the item is a standard channel. Boolean
      isMultipleIM Indicates whether the conversation is a group direct message. Boolean
      userID Unique identifier of the user associated with the channel (for IM). String
      createdTime Indicates the date and time when the channel was created. Datetime
      createdBy Indicates user ID of the channel creator. String
      topic Indicates the short description of the channel. String
      purpose Indicates a detailed description of the channel’s purpose. String
      memberCount Indicates number of members in the channel. Number
      webURL Indicates direct URL to access the channel. String
      latestMessage Indicates the most recent message posted in the channel. String
    • Dictionary: stores all values in a dictionary object with key-value pairs.