---
schema_version: "1"
id: 53ffa9930b714ae84cf0120ec3df801a1262c089c661f8982d61cef611c53ad3
title: Archive Slack Channel Action (Legacy)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_ref_elements_actions_slack_archive_channel.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_actions_slack_archive_channel.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 633f8fc4a95bd2d3e5f7e9aac2016d6f5d334e0689032d0aef100551433222a8
description: Archive a Slack channel in a Slack workspace.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Archive Slack Channel Action (Legacy)

Archive a Slack channel in a Slack workspace.

### 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>

Before using a core action for Slack, enable Salesforce for Slack integrations.

In Flow Builder, add an Action element to your flow. In the New Action window, select **Slack**, and then select **Archive Slack Channel**.

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

Important Legacy actions are based on an outdated way of using Flows with Slack. Use the new [Archive Slack Channel](https://help.salesforce.com/s/articleView?id=platform.archive_slack_channel.htm&release=264.0.0&type=5 "Archives a channel in Slack. Archived channels in Slack are closed to new activity, but the message history is retained.") action for the best expereince.

Before using a core action for Slack, enable Salesforce for Slack integrations.

In Flow Builder, add an Action element to your flow. Select the **Slack** category, and search for an action.

## Set Connection Values for Slack

The flow sends the connection values that you provide to Slack to retrieve an access token.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:33.33333333333333%">
          <col style="width:66.66666666666666%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d243274e105">Input Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d243274e108">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d243274e105 ">
              <strong class="uicontrol">Slack App</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d243274e108 ">
              <p style="margin-bottom:0;">Required. The Slack app that runs the action. Only Slack apps that are
                installed for the org are available. The input value evaluates to the Slack app ID.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d243274e105 ">
              <strong class="uicontrol">Slack Workspace</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d243274e108 ">
              <p style="margin-bottom:0;">Required. The Slack workspace where the Slack app is installed.
                Select a value or resource. The input value evaluates to the Slack workspace ID.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d243274e105 ">
              <strong class="uicontrol">Execute Action As</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d243274e108 ">
              <p>The entity that runs the action. Valid values are: </p>
              <ul>
                <li>Slack App—Run the action as the Slack app that you selected in the Slack App field. It’s
                  the default value.</li>

                <li>Run as Current User— Run the action as the user running the Invocable action. The user
                  must be connected to Slack, otherwise the action fails.</li>

              </ul>
            </td>

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

## Set Slack Channel

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:33.33333333333333%">
          <col style="width:66.66666666666666%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d243274e186">Input Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d243274e189">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d243274e186 ">
              <strong class="uicontrol">Slack Channel ID</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d243274e189 ">
              <p>Required. The ID of the channel to archive.</p>
              <p>Get the Slack channel ID by
                logging in to Slack.com and launching Slack in your browser. The channel ID is the
                last parameter in the URL. For example, in this URL, the channel ID is <code>C56789FGHIJ</code>:</p>
              <p style="margin-bottom:0;"><code>https://app.slack.com/client/T01234ABCDE/C56789FGHIJ</code></p>
            </td>

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

## Usage

To use this action, you must accept the Slack Terms of Service in Setup and install one of the official Salesforce Slack apps in your Slack workspace.

#### See Also

- [Enable Salesforce for Slack Integrations](https://help.salesforce.com/s/articleView?id=slack.slack_apps_enable.htm&language=en_US)
- [_Salesforce Admins_: How Admins Can Connect Salesforce and Slack](https://admin.salesforce.com/blog/2021/how-admins-can-connect-salesforce-and-slack)