Chatter feed information cannot be retrieved from the FeedPost object using SOQL (Salesforce Object Query Language). Running a query against FeedPost, such as the example below, results in an error.
Example query:
SELECT ParentId, Body, Type FROM FeedPost
Resulting error:
INVALID_TYPE_FOR_OPERATION: entity type FeedPost does not support queries
This error occurs because the FeedPost object does not support SOQL queries at all — it's a legacy Chatter feed object that was never built to be queried directly.
FeedPost has been phased out by Salesforce and is not supported for SOQL operations. See the FeedPost object reference for details.
Salesforce recommends using the FeedItem object instead. FeedItem supports SOQL queries, so you can retrieve Chatter feed data such as post body, type, and parent record. See the FeedItem object reference for the full field list and query examples.
For example, if you're building an integration or report that needs to pull Chatter post content for a record, query FeedItem instead of FeedPost:
SELECT ParentId, Body, Type FROM FeedItem
000384407

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.