---
schema_version: "1"
id: 646524774218cda2e8f26f1dbd2eb59142341424dee71aaed4a8cf70029abe62
title: Post to Chatter Action
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_chatter.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_actions_chatter.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ccd01011dd53d98a57f38261eb19531d701279ae6838e46fd7f70f9807d6c872
description: This action posts a message to a specified feed, such as a Chatter group or a case record. The message can contain mentions and topics, but only text posts are supported.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Post to Chatter Action

This action posts a message to a specified feed, such as a Chatter group or a case record. The message can contain mentions and topics, but only text posts are supported.

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

In Flow Builder, add an Action element to your flow. In the Action field, enter Chatter, and select **Post to Chatter**.

## Set Input Values

Use values from earlier in the flow to set the inputs for the Chatter post.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:17.006802721088434%">
          <col style="width:82.99319727891157%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d289908e70">Input Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d289908e72">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d289908e70 "><strong class="uicontrol">Message</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d289908e72 ">
              <p>The text that you want to post. </p>
              <ul>
                <li> To mention a user or group, enter
                  <kbd>@[<var>reference</var>]</kbd>, where
                  <var>reference</var> is the ID for the user or group that you want to
                  mention. The reference can be a literal value, a merge field, or a flow
                  resource. For example: <code>@[{!UserId}]</code>.
                </li>
                <li> To add a topic, enter <kbd>#[<var>string</var>]</kbd>,
                  where <var>string</var> is the topic that you want to add. For example:
                  <code>#[Action Required]</code>.
                </li>
              </ul>
              <p style="margin-bottom:0;">This parameter accepts single-value resources of any type. That value is
                treated as plain text and is limited to 10,000 characters.</p>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d289908e70 "><strong class="uicontrol" id="flow_ref_elements_actions_chatter__subjectId"><a name="flow_ref_elements_actions_chatter__subjectId"><!-- --></a>Target Name or ID</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d289908e72 ">
              <p>Reference to the user, Chatter group, or record whose feed you want to post to. </p>
              <ul>
                <li>To post to a user’s feed, enter the user’s ID or username. For example:
                  <kbd>jsmith@salesforce.com</kbd>
                </li>
                <li>To post to a Chatter group, enter the group’s name or ID. For example:
                  <kbd>Entire Organization</kbd>
                </li>
                <li>To post to a record, enter the record’s ID. For example:
                  <kbd>001D000000JWBDx</kbd>
                </li>
              </ul>
              <p style="margin-bottom:0;">This parameter accepts single-value resources of any type. That value is
                treated as text.</p>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d289908e70 "><strong class="uicontrol">Community ID</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d289908e72 ">
              <p>ID of an Experience Cloud site to post to.</p>
              <p>Valid only if Digital Experiences
                is enabled. Required if posting to a user or Chatter group that belongs to an
                Experience Cloud site.</p>
              <p style="margin-bottom:0;">This parameter accepts single-value resources of any
                type. That value is treated as text.</p>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d289908e70 "><strong class="uicontrol">Target Type</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d289908e72 ">
              <p>Required only if <strong class="uicontrol">Target Name or ID</strong> is set to a username or
                a Chatter group name.</p>
              <p>The type of feed that you want to post to. Valid values
                are:</p>
              <ul>
                <li><kbd>User</kbd>—If <strong class="uicontrol">Target Name or ID</strong> is set
                  to a user’s username, enter this value.</li>
                <li><kbd>Group</kbd>—If <strong class="uicontrol">Target Name or ID</strong> is set
                  to a Chatter group’s name, enter this value.</li>
              </ul>
            </td>
          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d289908e70 "><strong class="uicontrol">Visibility</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d289908e72 ">
              <p>Specifies whether this feed item is available to Experience Cloud site users.
                To display this feed item only to internal users, set it to
                <kbd>internalUsers</kbd>.
              </p>
              <p>Valid only if Digital Experiences is
                enabled. Valid values are: </p>
              <ul>
                <li><kbd>allUsers</kbd></li>
                <li><kbd>internalUsers</kbd></li>
              </ul>
            </td>
          </tr>
        </tbody>
      </table>

## Store Output Values

To use the Chatter post’s ID later in the flow, store it in a variable. The values are assigned when the Chatter post is created.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:17.513134851138354%">
          <col style="width:82.48686514886164%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d289908e198">Output Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d289908e200">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Output Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d289908e198 "><strong class="uicontrol">Feed Item ID</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d289908e200 ">
              <p>Assigns the created post’s ID to a resource in the flow.</p>
              <p style="margin-bottom:0;">This parameter
                accepts any single-value variables of type Text, Picklist, or Multi-Select
                Picklist.</p>
            </td>
          </tr>
        </tbody>
      </table>

## Usage

At run time, the Chatter post isn’t created until the interview’s transaction completes. Transactions are complete when the interview either finishes or runs a Screen, Local Action, or Wait element.

#### See Also

- [Flow Run Context](https://help.salesforce.com/s/articleView?id=platform.flow_distribute_context.htm&release=264.0.0&type=5 "Flows run in user context or system context. For a flow running in user context, the running user’s profile and permission sets determine the object permissions and field-level access of the flow. For a flow that runs in system context, whether it runs with or without sharing determines its data access. Understanding context helps you control what your flows can read and update on behalf of your users.")
- [Flow Elements](https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements.htm&release=264.0.0&type=5 "An element represents an action that the flow can run. Examples include reading or writing Salesforce data, displaying information and collecting data from flow users, runnning business logic, or manipulating data.")