---
schema_version: "1"
id: a1570eb4ea69f952752bd970a6af7dce0f3cfc5861935180490a1a7c0459b9e5
title: Slack Channel Selector Screen Input Component
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_ref_elements_screencmp_slackchannelselector.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_screencmp_slackchannelselector.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3dd5d731e5503317aa06fb00d274ed9478cc1d545c9e26e32d49f854cfec8e34
description: Let users select a Slack channel to send a Slack message from a flow screen.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Slack Channel Selector Screen Input Component

Let users select a Slack channel to send a Slack message from a flow screen.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr></tbody></table>

## Configure the Slack Channel Selector Component

You can select resources from the flow, such as variables or global constants, or you can manually enter a value.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_note.png)

Note This screen component requires [Lightning runtime](https://help.salesforce.com/s/articleView?id=platform.flow_distribute_runtime.htm&release=264.0.0&type=5 "Depending on how a flow is distributed, users see either the Classic runtime or Lightning runtime UI when they run the flow. Like its name suggests, Lightning runtime looks and feels like Lightning Experience.").

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:24%">
          <col style="width:76%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d298526e78">
              <strong>Attribute</strong>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d298526e84">
              <strong>Description</strong>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e78 ">
              <strong class="uicontrol">API Name </strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e84 ">
              <p>The API name of the component.</p>
              <p style="margin-bottom:0;">An API name can include underscores and alphanumeric characters without spaces.
                It must begin with a letter and can’t end with an underscore. It also can’t have
                two consecutive underscores.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e78 ">
              <strong class="uicontrol">Slack app id </strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e84 ">
              <p>The ID of the Slack app connected to Salesforce. This attribute accepts Text
                variables.</p>
              <p style="margin-bottom:0;">Only the Slack app owner can get the app ID. From <a href="https://api.slack.com" target="_blank">https://api.slack.com</a>,
                go to your apps, then Basic Information, and find the app’s ID.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e78 ">
              <strong class="uicontrol">Slack workspace id</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e84 ">
              <p>The ID of the Slack workspace where the Slack app is installed. This attribute accepts
                Text variables.</p>
              <p style="margin-bottom:0;">To get the ID, open the web version of Slack and copy the
                alphanumeric section of the Slack URL starting with T.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e78 ">
              <strong class="uicontrol">Use Bot Token</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e84 ">
              <p>Fetches a list of Slack channels based on the Slack app’s bot token.</p>
              <p style="margin-bottom:0;">This attribute accepts Boolean resources. If set to <code>$GlobalConstant.False</code>, the Slack app uses the user token instead of the bot
                token.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e78 ">
              <strong class="uicontrol">Use Channel Search API</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e84 ">
              <p>Indicates whether to use type-ahead Slack channel search to fetch a list of Slack
                channels.</p>
              <p style="margin-bottom:0;">This attribute accepts Boolean resources. Requires that the Slack app be
                registered with Slack to use the private API.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e78 ">
              <strong class="uicontrol">Label for dropdown</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e84 ">
              <p>Text that appears in the selector heading. Use text to give users a hint of what
                the Slack channel selector is for.</p>
              <p style="margin-bottom:0;">This attribute accepts single-value resources. The
                value is treated as text.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e78 ">
              <strong class="uicontrol">Placeholder for dropdown</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e84 ">
              <p>Text that appears in the field when it’s empty. Use placeholder text to give users
                a hint about what to enter in the field.</p>
              <p style="margin-bottom:0;">This attribute accepts single-value
                resources. The value is treated as text.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e78 ">
              <strong class="uicontrol">Required</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" id="flow_ref_elements_screencmp_slackchannelselector__screencmp_common_required_description" style="vertical-align:top;" headers="d298526e84 ">
              <p>If set to <code>$GlobalConstant.True</code>, the running user must enter a
                value.</p>
              <p style="margin-bottom:0;">This attribute accepts single-value Boolean resources.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e78 ">
              <strong class="uicontrol">Selected channel id</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e84 ">
              <p>The ID of the selected Slack channel. </p>
              <p style="margin-bottom:0;">To get the channel ID, right-click the
                channel and select <strong class="uicontrol">View channel details</strong>. The Channel ID is on the
                About tab.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Set the Component Visibility

Specify the logic that determines when the flow displays the component.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:24%">
          <col style="width:76%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d298526e290">Option</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d298526e293">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Option" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e290 ">
              <strong class="uicontrol">When to Display Component</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e293 ">
              <p>Configure when the component is displayed by using conditional logic. </p>
              <p>You can set the components to:</p>
              <dl>

                <dt style="font-weight:bold;padding-top:.25rem;">Always</dt>

                <dd style="padding-left:1.5rem;padding-bottom:.5rem;">Always display the component.</dd>


                <dt style="font-weight:bold;padding-top:.25rem;">When all conditions are met (AND)</dt>

                <dd style="padding-left:1.5rem;padding-bottom:.5rem;">Display the component when all of the conditions that you define are met.
                  Define at least one condition.</dd>


                <dt style="font-weight:bold;padding-top:.25rem;">When any condition is met (OR)</dt>

                <dd style="padding-left:1.5rem;padding-bottom:.5rem;">Display the component when at least one of the conditions that you define is
                  met. Define at least one condition.</dd>


                <dt style="font-weight:bold;padding-top:.25rem;">When custom conditional logic is met</dt>

                <dd style="padding-left:1.5rem;padding-bottom:.5rem;">Display the component when the condition logic that you define is met.
                  Define at least one condition and specify condition logic.</dd>

              </dl>
            </td>

          </tr>
        </tbody>
      </table>

## Validate Input

Provide a formula that evaluates whether what the user entered is valid and the error message to display if invalid.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:24%">
          <col style="width:76%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d298526e381">Option</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d298526e384">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Option" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e381 ">
              <strong class="uicontrol">Error Message</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e384 ">Specify the error message that appears below the component if the user enters
              an invalid value.</td>

          </tr>
          <tr class="">
            <td data-label="Option" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e381 ">
              <strong class="uicontrol">Formula</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e384 ">
              <p>Provide a formula expression that returns a Boolean value.</p>
              <p>If the formula expression evaluates to <samp>true</samp>, the
                input is valid. If the formula expression evaluates to
                <samp>false</samp>, the error message appears below the
                component.
              </p>
              <p style="margin-bottom:0;">If the user leaves the field blank and the field isn’t required, the flow doesn’t
                perform the validation. If the user leaves the field blank and the field is
                required, the flow shows the default error message and not your custom error
                message.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Specify the Behavior of Values on Revisited Screens

Specify what this component does when a user enters a value, navigates to a previous screen, and then returns to the screen with this component.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:24%">
          <col style="width:76%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d298526e454">Option</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d298526e457">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Option" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e454 ">
              <strong class="uicontrol">Use values from when the user last visited this screen</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e457 ">The component retains the values that the user specified and doesn’t update the
              values to reflect changes made on previous screens.</td>

          </tr>
          <tr class="">
            <td data-label="Option" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e454 ">
              <strong class="uicontrol">Refresh inputs to incorporate changes elsewhere in the flow</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d298526e457 ">
              <p>The component updates the user-specified values to reflect changes made on
                previous screens.</p>
              <p style="margin-bottom:0;" id="flow_ref_elements_screencmp_slackchannelselector__d5478e119"><a name="flow_ref_elements_screencmp_slackchannelselector__d5478e119"><!-- --></a>If you pause and then
                resume the flow, the flow retains user-specified values only in Checkbox, Checkbox
                Group, Currency, Long Text Area, Multi-Select Picklist, Number, Password,
                Picklist, Radio Buttons, and Text components.</p>
            </td>

          </tr>
        </tbody>
      </table>