| communityId |
- Type
- reference
- Description
- Optional. Specifies the ID of a community to post to. This value is available in API version 35.0
and later.
|
| subjectNameOrId |
- Type
- string
- Description
- 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. For example:
jsmith@salesforce.com
- To post to a Chatter
group, enter the group’s Name or
ID. For example: Entire
Organization
- To post to a record, enter the record’s ID. For
example: 001D000000JWBDx
|
| text |
- Type
- string
- Description
- 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 that you want to mention. The reference can be
a literal value, a merge field, or a flow resource.
To add a topic,
enter #[string], where string is
the topic that you want to add.
For example, the string Hi @[005000000000001] check this out
#[some_topic]. is stored appropriately as Hi @Joe, check this out #some_topic. where
“@Joe” and “#some_topic” are links to the user and topic,
respectively.
|
| type |
- Type
- picklist
- Description
- Required only if subjectNameOrId is set to a user name or a Chatter group
name. The type of feed that you want to post to.
-
User—Enter this value if
subjectNameOrId is set to a user’s
Username.
-
Group—Enter this value if
subjectNameOrId is set to a Chatter
group’s Name.
|
| visibility |
- Type
- picklist
- Description
- Optional. Valid only if Salesforce Communities is enabled. Specifies whether this
feed item is available to all users or internal users only. Valid values
are:
This value is available in API version 35.0 and later.
|