Loading
Prepare for Email to Become the Default Login ExperienceRead More
Intermittent freezing when using using certain browser versionsRead More
Automate Your Business Processes with Salesforce Flow
Pin or Unpin Slack Message Action

Pin or Unpin Slack Message Action

Pin or unpin a message in a Slack channel or direct message. Pin messages so that they’re readily available from the conversation header.

Required Editions

View supported editions.

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 Pin or Unpin Slack Message.

Set Connection Values for Slack

Input Parameter Description
Slack App

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.

Slack Workspace

Required. The Slack workspace where the Slack app is installed. Select a value or resource. The input value evaluates to the Slack workspace ID.

Execute Action As

The entity that runs the action. Valid values are:

  • Slack App—Run the action as the Slack app that you selected in the Slack App field. It’s the default value.
  • 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.

Set Message Details

Input Parameter Description
Slack Conversation ID

Required. The ID of the channel or group direct message to send the message to. Enter a value or select a resource.

You can obtain the Slack conversation ID by logging in to Slack.com and launching Slack in your browser. The conversation ID is the last parameter in the URL. For example, in this URL, the conversation ID is C56789FGHIJ:

https://app.slack.com/client/T01234ABCDE/C56789FGHIJ

Slack Message Timestamp

Required. The timestamp of the sent message. Enter a value or select a resource. For example, enter 1234567890.123456.

The numerals before the period character (.) specify a Unix timestamp. The numerals after the period character specify microseconds.

You can store the Slack Message Timestamp output parameter of the Send Slack Message, Edit Slack Message, or Send Message To Launch Flow action as a resource to use later.

Pin or Unpin Message

Select a value or Boolean resource. Valid values are:

Pin
Pins the message to the conversation header.
Unpin
Unpins the message from the conversation header.

If you select a Boolean value that evaluates to true, the action pins the message. If you select a Boolean value that evaluates to false, the action unpins the message. The default is Pin.

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.

 
Loading
Salesforce Help | Article