Loading

How to Use Slack Markdown in Salesforce Flow Builder

게시 일자: Apr 16, 2026
상세 설명

How to Use Slack Markdown in Auto-Launched Flows.

솔루션

Slack formatting can be used when composing message text inside a Salesforce Flow’s Text Template, provided the output is sent to Slack via native Slack integration using Sales Cloud for Slack / Service Cloud for Slack / Salesforce for Slack.

  • Use only Plain Text Mode in the Text Template.

  • Do not use Rich Text Mode, as it will encode characters like *, _, and ~, breaking Slack formatting.

Steps to Add Slack-Formatted Text in Flow

  1. Open your Flow in Salesforce and set the criteria as to when the flow needs to send the message to slack.

  2. Add a Text Template element.

  3. In the Text Template settings:

    • Set Body to the desired Slack message using correct Slack markdown (see table above).

    • Choose Plain Text format (important).

  4. Save the template.

  5. Use this Text Template in Send Slack Message Action

  6. Test the message in a Slack channel to verify formatting (You can use debug in the flow to verify this configuration you will get the message in Slack, you don't need to activate the flow).

 

How To Use the Slack markdown : 

 

FormatSyntax ExampleOutput
Bold*example*example
Italic_example_example
Bold + Italic*_example_* or _*example*_example
Strikethrough~example~example
Inline Code`example`example
Code Block

```

example 1

                       example 2                    

```

example 1

                       example 2    

Block Quote> example
 example
Ordered List

1. First item

2. Second item

1. First item

2. Second item

Bulleted List

* Item one

* Item two

• Item one

• Item two

Hyperlink<http://example.com|Click here to Open>Click here to Open

 

Tips for Usage

  • Always preview complex messages before posting.

  • Avoid using markdown syntax from other platforms (e.g., GitHub, Discord) as Slack’s parser differs.

  • Use code blocks (```) for snippets or technical content to preserve spacing and formatting.

  • Use inline code (`code`) for short identifiers, variable names, or commands.

Knowledge 기사 번호

004980317

 
로드 중
Salesforce Help | Article