Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Create a CaseFeed Under a Case?

Tags:

salesforce

I am trying to display case with CaseFeeds and FeedComments on my console app support page. Now when users reply to a case I want to insert a CaseFeed from my application. As per the salesforce API docs, create or upsert is not supported on CaseFeed.

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_casefeed.htm

Is there any way or work around to create a CaseFeed under Case?

like image 405
frank Avatar asked Oct 21 '25 09:10

frank


1 Answers

CaseFeed it like a view - a combination of all kinds of activities happening to the Case. It's bit similar to how Events and Tasks can be viewed together on a related list of Open Activities. Check the Type field to see what does it aggregate. It kind of makes sense for a view to be readonly.

You can imitate user posting to that Case instead - that'd be FeedItem object.

insert new FeedItem(
    ParentId = '50070000006Rn5M', 
    Title='Some title', 
    Body = 'Some long text goes here', 
    Type='TextPost'
);
like image 62
eyescream Avatar answered Oct 25 '25 16:10

eyescream



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!