Loading
Prepare for Email to Become the Default Login ExperienceRead More
Automate Your Business Processes with Salesforce Flow
Adding Screen Components and Input Variables to Flows Deployed in Slack

Adding Screen Components and Input Variables to Flows Deployed in Slack

Running a flow in Slack requires two things: an active screen flow with the Make available in Slack setting selected, and a way to run the flow from Slack.

Screen Components in Flows in Slack

Screens in a screen flow with the Make available in Slack advanced setting selected can contain only components supported by Flows in Slack.

Flows in Slack don’t support field-level validation for screen components.

Supported Components UNSupported Components
  • Checkbox
  • CheckboxGroup (up to 10 choices)
  • Currency
  • Date
  • Date & Time
  • Display Text
  • Long Text Area
  • Number
  • Picklist (up to 100 choices)
  • Radio Button (up to 10 choices)
  • Text
  • Address
  • Dependent Picklist
  • Display Image
  • Email
  • File Upload
  • Lookup
  • Multi-Select Picklist
  • Name
  • Password
  • Phone
  • Section
  • Slider
  • Toggle
  • URL

Input Variables in Flows in Slack

A screen flow with the Make available in Slack advanced setting selected supports text input parameters. Flows designed to run in Slack support only text input variables. To run these flows from Slack, use the Send Message to Launch Flow action. To collect text input from users, define text variables with the Available for Input setting enabled in your screen flow.

Use functions to convert text input into the required format for your screen flow.

Common Text Conversion Functions
Function Category Description
DATEVALUE Date and Time Functions Converts a text string with a format of “YYYY-MM-DD” to a date value.
DATETIMEVALUE Date and Time Functions Converts a text string with a format of “YYYY-MM-DD HH:MM:SS” returns a year, month, day, and GMT time value.
ISNUMBER Logical Functions Returns TRUE if a text value is a number; returns FALSE otherwise.
VALUE Text Functions Converts a text string to a number.

Send a Screen Flow to Slack Using an Action

This method of sending an active screen flow to Slack works only with official Salesforce Slack apps. This method is the only way to run active screen flows with input variables and the Make available in Slack advanced setting selected.

An active screen flow with the Make available in Slack advanced setting selected can run in the flow default environment. To send the flow to run in the Slack environment, use another flow that calls a version of the Slack Send Message to Launch Flow action.

The Slack Send Message to Launch Flow action has a version for each active screen flow with the Make available in Slack advanced setting selected. For example, your active screen flow is Get Pet Name. When you add the Action element to the new flow that sends this active screen flow to Slack, select the action labeled Get Pet Name (API name: slackSendMessageToLaunchFlow - Get_Pet_Name).

When the flow containing the action runs, it sends a message to a Slack channel or direct message group. Slack channel or group members click the button to launch the associated screen flow.

These flow types don’t support the Slack Send Message to Launch Flow action: CMS Orchestrator, EvaluationFlow, Journey, Orchestrator, Survey, SurveyEnrich, and TransactionSecurityFlow.

 
Loading
Salesforce Help | Article