Post to Chatter Actions
Post to the feed for a specific record, user, or Chatter group.
Use a Post to Chatter action to post a message at run time to a specified feed. Post to Chatter supports @mentions and topics, but only text posts are supported.
This object is available in API version 32.0 and later.
URI: Get a list of available post to Chatter actions: /services/data/vXX.X/actions/standard/chatterPost
Formats: JSON, XML
HTTP Methods: GET, HEAD, POST
Authentication: Authorization: Bearer token
| Input | Type | Description |
|---|---|---|
communityId | reference | Optional. Specifies the ID of an Experience Cloud site to post to. Valid only if Digital Experiences is enabled. Required if posting to a user or Chatter group that belongs to an Experience Cloud site. This value is available in API version 35.0 and later. |
subjectNameOrId | string | Required. Reference to the user, Chatter group, or record whose feed you want to post to. To post to a user’s feed, enter the user’s ID or Username. To post to a Chatter group, enter the group’s Name or ID. To post to a record, enter the record’s ID. |
text | string | Required. The text that you want to post. Must be a string of no more than 10,000 characters. To mention a user or group, enter @[reference], where reference is the ID for the user or group. To add a topic, enter #[string], where string is the topic to add. For example, the string Hi @[005000000000001] check this out #[some_topic]. is stored as Hi @Joe, check this out #some_topic. where “@Joe” and “#some_topic” are links to the user and topic, respectively. |
type | picklist | Required only if subjectNameOrId is set to a username or a Chatter group name. The type of feed to post to. Use User—if subjectNameOrId is set to a user’s Username. Use Group—if subjectNameOrId is set to a Chatter group’s Name. |
visibility | picklist | Optional. Valid only if Digital Experiences is enabled. Specifies whether this feed item is available to all users or internal users only: allUsers or internalUsers. This value is available in API version 35.0 and later. |
| Output | Type | Description |
|---|---|---|
feedItemId | reference | The ID of the new Chatter feed item. |