You need to sign in to do that
Don't have an account?
Daniel Blevins
Where are COMMENTS to FeedItems located?
When someone COMMENTS on a POST in a CASE where do I find this Comment? I am trying to create some kind of workflow or process that updates another field when a post is made and that I have accomplished, but I need it to happen when these COMMENTS are left on posts as well but I cannot find where they are located and how to fire off of them. I have been looking for it via SOQL and cannot find the home of these things, I can find the post as FeedItem easily but I cannot find the Comments under it and how I relate them back to their Parent and the Case itself.
As the attached picture shows I have looked in the FeedItem, UserFeed, CaseComment, Case objects and cannot find this item in any of them.
As the attached picture shows I have looked in the FeedItem, UserFeed, CaseComment, Case objects and cannot find this item in any of them.
Check this doc page 1117
https://resources.docs.salesforce.com/sfdc/pdf/apex_api.pdf
Did you check CaseFeed object to see if you can find it.
Below description on CaseFeed states that.
Represents a single feed item in the feed displayed on the detail page for a case record. A case feed shows recent changes to a case record for any fields that are tracked in feeds, and comments and posts about the record. It is a useful way to stay up-to-date with changes to cases.
http://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_casefeed.htm
Hope above solution helps.
SELECT Id, Body FROM CaseFeed WHERE ParentId = '0D54A00005UGQTcSAP' <= This Id is the ORIGINAL comment Id on the case, but if it is used as PARENTID it finds nothing, when the CASEID is used as parent ID it finds all ORIGINAL comments but none of the REPLY comments on the case. Still no luck finding these things.
You can put the id of the post i.e feed Item at the end.