Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
FeedPost
Supported Calls
create(), delete(), describeSObjects(), search()
Special Access Rules
- “Modify All Data”
- “Modify All Records” on the object associated with the feed and delete permission on the parent feed
- “Moderate Chatter”
- Manage Unlisted Groups
Only users with this permission can delete items in unlisted groups.
Only users with the Modify All Data permission can delete a feed item of Type TrackedChange.
If the context user has the Insert System Field Values for Chatter Feeds user permission, the create field property is available on CreatedBy and CreatedDate system fields. During migration, the context user can set these fields to the original post’s author and creation date. The fields can’t be updated after migration.
Fields
| Field | Details |
|---|---|
| Body |
|
| ContentData |
|
| ContentDescription |
|
| ContentFileName |
|
| ContentSize |
|
| ContentType |
|
| FeedItemId |
|
| InsertedById |
|
| IsDeleted |
|
| LinkUrl |
|
| ParentId | |
| Title | |
| Type |
|
Usage
- You can’t directly query for a FeedPost. FeedPosts are always associated with a feed
item, so you can query for them through the feeds. The following example returns all feed items
for a given account, ordered by date
descending:
1SELECT Id, Type, FeedPost.Body 2FROM AccountFeed 3WHERE ParentId = AccountId ORDER BY CreatedDate DESC - A FeedPost of type UserStatus is automatically created when a user adds a post to update the current status. You can’t explicitly create a FeedPost of type UserStatus.
- The size limit for an attachment on a profile, news, or record feed is 2 GB.
- You can’t use the content fields to update or delete the content.
- You can’t filter or update the content fields.
- Deleting a FeedPost via the API also deletes the associated content and FeedPost objects. Likewise, undeleting a FeedPost restores associated content and FeedPost objects.
- After uploading to a feed, it is possible for an attachment or document to be deleted, marked private, or hidden by sharing rules. In this case, all content fields in FeedPost appear as null in a SOQL query.
- You can’t explicitly create or delete a FeedTrackedChange record.