StandardObjectNameFeed
The object name is variable and uses StandardObjectNameFeed syntax. For example, AccountFeed represents the posts and feed-tracked changes on an account record. We list the available associated feed objects at the end of this topic. For specific version information, see the documentation for the standard object.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
In the internal org, users can delete all feed items they created. This rule varies in communities where threaded discussions and delete-blocking are enabled. Community members can delete all feed items they created, provided the feed items don't have content nested under them—like a comment, answer, or reply. Where the feed item has nested content, only feed moderators and users with the Modify All Data permission can delete threads.
To delete feed items they didn't create, users must have one of these permissions:
- Modify All Data
- Modify All Records on the parent object, like Account for AccountFeed
-
Moderate Chatter
Only users with this permission can delete items in unlisted groups.
For more special access rules, if any, see the documentation for the standard object. For example, for AccountFeed, see the special access rules for Account.
Fields
isRichText: Rich text supports the following HTML tags:
- <p>
- <a>
- <b>
- <code>
- <i>
- <u>
- <s>
- <ul>
- <ol>
- <li>
-
<img>
The <img> tag is accessible only through the API and must reference files in Salesforce similar to this example: <img src="sfdc://069B0000000omjh"></img>
NetworkScope can have the following values:
- NetworkId—The ID of the Experience Cloud site in which the FeedItem is available. If left empty, the feed item is only available in the default Experience Cloud site.
- AllNetworks—The feed item is available in all Experience Cloud sites.
Note the following exceptions for NetworkScope:
- Only feed items with a Group or User parent can set a NetworkId or a null value for NetworkScope.
- For feed items with a record parent, users can set NetworkScope only to AllNetworks.
- You can’t filter a feed item on the NetworkScope field.
The Type field can have the following values:
-
ActivityEvent—indirectly generated event when a user or the API adds a Task associated with a feed-enabled parent record (excluding email tasks on cases). Also occurs when a user or the API adds or updates a Task or Event associated with a case record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only. For a recurring Task with CaseFeed enabled, events are generated for the series and each occurrence.
- AdvancedTextPost—created when a user posts a group announcement and, in Lightning Experience as of API version 39.0 and later, when a user shares a post.
- AnnouncementPost—Not used.
- ApprovalPost—generated when a user submits an approval.
- BasicTemplateFeedItem—Not used.
- CanvasPost—a post made by a canvas app posted on a feed.
- CollaborationGroupCreated—generated when a user creates a public group.
- CollaborationGroupUnarchived—Not used.
- ContentPost—a post with an attached file.
- CreatedRecordEvent—generated when a user creates a record from the publisher.
- DashboardComponentAlert—generated when a dashboard metric or gauge exceeds a user-defined threshold.
- DashboardComponentSnapshot—created when a user posts a dashboard snapshot on a feed.
- LinkPost—a post with an attached URL.
- PollPost—a poll posted on a feed.
- ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
- QuestionPost—generated when a user posts a question.
- ReplyPost—generated when Chatter Answers posts a reply.
- RypplePost—generated when a user creates a Thanks badge in WDC.
- TextPost—a direct text entry on a feed.
- TrackedChange—a change or group of changes to a tracked field.
- UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to CaseFeed:
- CaseCommentPost—generated event when a user adds a case comment for a case object
- EmailMessageEvent—generated event when an email related to a case object is sent or received
- CallLogPost—generated event when a user logs a call for a case through the user interface. CTI calls also generate this event.
- ChangeStatusPost—generated event when a user changes the status of a case
- AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and ContentFileName.
Visibility can have the following values:
- AllUsers—The feed item is available to all users who have permission to see the feed item.
- InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
- For record posts, Visibility is set to InternalUsers for all internal users by default.
- External users can set Visibility only to AllUsers.
- On user and group posts, only internal users can set Visibility to InternalUsers.
Usage
A feed for an object is automatically created when a user enables feed tracking for the object. Use feeds to track changes to records. For example, AccountFeed tracks changes to an account record. Use feed objects to retrieve the content of feed fields, such as type of feed or feed ID.
Note the following SOQL restrictions. No SOQL limit if logged-in user has View All Data permission. If not, specify a LIMIT clause of 1,000 records or fewer. SOQL ORDER BY on fields using relationships is not available. Use ORDER BY on fields on the root object in the SOQL query.