Loading
Salesforce Help 사이트 “Help Agent powered by Fin” 도입 안내더 많이 읽기
Tableau 고객 대상: Tableau를 이용하는 고객이 Help 사이트에서 사례(케이스)를 등록할 수 없는 경우의 대체 수단더 많이 읽기
Slack 관련 문의처가 Salesforce Help로 통합 및 변경됩니다.더 많이 읽기

SOQL cannot fetch Chatter from FeedPost objects

게시 일자: Mar 16, 2023
상세 설명

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.

Why FeedPost Cannot Be Queried

FeedPost has been phased out by Salesforce and is not supported for SOQL operations. See the FeedPost object reference for details.

Recommended Approach: Use FeedItem

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.

Example

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

Knowledge 기사 번호

000384407

 
로드 중
Salesforce Help | Article