I'd like to create a trigger that fires every time a user, either internal or an external community user, comments on a case. Here is my comment

enter image description here

I do know that the CaseFeed object is used because when I do this SOQL, SELECT Id, CommentCount, Body FROM CaseFeed, this is the result.

enter image description here

It looks like I'll be able to create a trigger on the CaseFeed object, but I'd also like to create a trigger on the comments of a case feed. I can't find what that object is. I thought it could be the CaseComment object, but when I do a SOQL on that object, nothing is return. SELECT Id, CommentBody FROM CaseComment

enter image description here

Which object is used for the comments on a Case Feed record?

1 Answer 1


CaseComment is the classic "Case Comment" object, not related to feed items at all. You're looking for FeedComment, which contains comments on feed items.

  • IMO, the sObject names are not intuitive 😅
    – Tyler Zika
    Commented Mar 16, 2019 at 3:00
  • @TylerZika That's because of historical reasons--Chatter is newer than cases. If they'd all been designed at the same time, it would probably be a different story.
    – sfdcfox
    Commented Mar 16, 2019 at 3:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .