Newer Version Available
Custom Object__Feed
A custom object feed shows posts and comments about the object and recent changes to the object’s tracked fields. The object name is variable and uses a Custom Object__Feed syntax, where Custom Object is the Object Name for the custom object. For example, OpportunityFeed represents a feed on the custom object Opportunity; AccountFeed represents a feed on the custom object Account.
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.
Fields
| Field | Details |
|---|---|
| BestCommentId | |
| Body |
|
| CommentCount | |
| ConnectionId |
|
| ContentData | |
| ContentDescription |
|
| ContentFileName |
|
| ContentSize | |
| ContentType | |
| CreatedById |
|
| CreatedDate | |
| FeedPostId |
|
| Id | |
| InsertedById |
|
| IsDeleted | |
| isRichText |
|
| LastModifiedDate |
|
| LikeCount | |
| LinkUrl |
|
| NetworkScope |
|
| ParentId | |
| RelatedRecordId |
|
| Title | |
| Type |
|
| Visibility |
|
Usage
A feed for a custom object is automatically created when a user enables feed tracking for the custom object. Use feeds to track changes to the custom objects they serve. For example, an AccountFeed tracks changes to an Account object. Use feed objects to retrieve the content of feed fields, such as type of feed or feed ID.
- The name Article Type__Feed is variable, where Article Type is the name of the object’s article type. For example, Offer__Feed represents a feed item on an article that is based on the article type Offer.
-
NewsFeed and UserProfileFeed are available in API version 18.0 through API version 26.0.
In API version 27.0 and later, NewsFeed and UserProfileFeed are no longer available in the SOAP API.
Use the Chatter REST API to access NewsFeed and
UserProfileFeed.
Use the NewsFeed object to query and retrieve lead feed items associated with a converted lead record.
-
For NewsFeed and UserProfileFeed, users who do not have the “View All Data” permission have the following limitations when querying records: Must specify a LIMIT clause and the limit must be less than or equal to 1000. Can include a WHERE clause that references object fields, but can‘t include references to fields in related objects. For example, you can filter by CreatedDate or ParentId, but not by Parent.Name. Can include an ORDER BY clause that references object fields, but can’t include references to fields in related objects. For example, you can ORDER BY CreatedDate or ParentId, but not by Parent.Name. To query for the most recent feed items, ORDER BY CreatedDate DESC, Id DESC.
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.
- Field Service Lightning must be enabled in your organization for ServiceAppointmentFeed, ServiceCrewFeed, ServiceMemberFeed, ServiceResourceCapacityFeed, ServiceResourceFeed, ServiceResourceSkillFeed, ServiceTerritoryFeed, ServiceTerritoryMemberFeed, and SkillRequirementFeed.
- For WorkOrderFeed, Work Orders or Field Service Lightning must be enabled in your organization.
- On UserFeed, if you use the FeedComment object to comment on a user record, the user can delete the comment. For example, if John Smith adds a comment to the feed on Sasha Jones’ user record, Sasha can delete the comment.
Custom Object Feed Type API Availability
- AccountFeed (API 18.0)
- AccountRelationshipFeed
- ActiveScratchOrgFeed
- Article Type__Feed (API 20.0)
- AssetFeed
- AssetRelationshipFeed
- AssignedResourceFeed
- CampaignFeed (API 18.0)
- CareDiagnosisFeed
- CarePreauthFeed
- CarePreauthItemFeed
- CareRequestDrugFeed
- CareRequestFeed
- CareRequestItemFeed
- CaseFeed (API 18.0)
- CertificationDefFeed
- ChallengeParticipantFeed
- Challenge__Feed
- ChannelProgramFeed (API 41.0)
- ChannelProgramLevelFeed (API 41.0)
- CollaborationGroupFeed (API 19.0)
- ConsumptionScheduleFeed
- ContactFeed (API 18.0)
- ContentDocumentFeed (API 20.0)
- ContractFeed (API 18.0)
- CoverageBenefitFeed
- CoverageBenefitItemFeed
- custom object__Feed (API 18.0)
- DashboardComponentFeed (API 21.0)
- DashboardFeed (API 20.0)
- DirectMessageFeed
- EngagementProgramFeed
- EntitlementFeed (API 23.0)
- EntityMilestoneFeed
- EventFeed (API 20.0)
- GoalFeed
- LandingPageFeed
- LeadFeed (API 18.0)
- LinkedArticleFeed (API 37.0)
- LocationFeed
- MaintenanceAssetFeed
- MaintenancePlanFeed
- MarketingFormFeed
- MarketingLinkFeed
- MemberPlanFeed
- MetricFeed
- NamespaceRegistryFeed
- NewsFeed (API 18.0–26.0)
- OperatingHoursFeed (API 38.0)
- OpportunityFeed (API 18.0)
- OrderDeliveryGroupFeed
- OrderDeliveryGroupLineFeed
- OrderFeed (API 29.0)
- OrderItemFeed (API 29.0)
- OrderPriceAdjustmentLineFeed
- OrgSnapshotFeed
- PartnerFundAllocationFeed (API 41.0)
- PartnerFundClaimFeed (API 41.0)
- PartnerFundRequestFeed (API 41.0)
- PartnerMarketingBudgetFeed (API 41.0)
- PlanBenefitFeed
- PlanBenefitItemFeed
- Product2Feed (API 18.0)
- ProductConsumedFeed
- ProductItemFeed
- ProductItemTransactionFeed
- ProductRequestFeed
- ProductRequestLineItemFeed
- ProductRequiredFeed
- ProductTransferFeed
- ProfileSkillEndorsementFeed (API 34.0)
- ProfileSkillFeed (API 34.0)
- ProfileSkillUserFeed (API 34.0)
- PurchaserPlanAssnFeed
- PurchaserPlanFeed
- QuoteFeed (API 39.0)
- ReportFeed (API 20.0)
- ResourceAbsenceFeed (API 38.0)
- ResourcePreferenceFeed
- ReturnOrderFeed (API 42.0)
- ReturnOrderLineItemFeed (API 42.0)
- ScratchOrgInfoFeed
- ServiceAppointmentFeed (API 38.0)
- ServiceContractFeed (API 23.0)
- ServiceCrewFeed
- ServiceCrewMemberFeed
- ServiceResourceCapacityFeed (API 38.0)
- ServiceResourceFeed (API 38.0)
- ServiceResourceSkillFeed (API 38.0)
- ServiceTerritoryFeed (API 38.0)
- ServiceTerritoryLocationFeed
- ServiceTerritoryMemberFeed (API 38.0)
- ServiceTerritoryWorkTypeFeed
- ShipmentFeed
- SignupRequestFeed
- SiteFeed SkillRequirementFeed (API 38.0)
- SocialPostFeed (API 26.0)
- SolutionFeed (API 18.0)
- SOSSessionFeed
- SurveyFeed (API 42.0)
- TaskFeed (API 20.0)
- Territory2ModelFeed
- TimeSheetEntryFeed
- TimeSheetFeed
- TopicFeed (API 29.0)
- UserFeed (API 18.0)
- UserProfileFeed (API 18.0–26.0)
- WorkBadgeDefinitionFeed
- WorkCoachingFeed
- WorkFeedbackRequestFeed
- WorkGoalFeed (API 35.0)
- WorkOrderFeed (API 36.0)
- WorkOrderLineItemFeed (API 36.0)
- WorkPerformanceCycleFeed
- WorkRewardFundFeed
- WorkRewardFundTypeFeed
- WorkTypeFeed (API 38.0)
- WorkUpgradeActionFeed
- WorkUpgradeCustomerFeed