Salesforce admin can enable Chatter feed tracking on Salesforce object, include custom objects.
Go to Setup - App Setup - Customize - Chatter - Feed Tracking
Select object to track and tick "Enable Feed Tracking", you can select up to 20 fields.
In the background, once an object is enable for feed tracking, Salesforce will create new object end with suffix Feed (for Standard object) or _Feed (for Custom object). This is available in API version 18.0 and later.
Using SOQL, you can do this query:
Select Id, ParentId, Type, Title, Body, CommentCount, LikeCount, LinkUrl, RelatedRecordId, ContentFileName, ContentSize, ContentType From Object1__Feed
This query will return all feeds tag to Object1__c object only (see ParentId field)
Another object storing all feeds is FeedItem, this object avaiable in API version 21.0 and later.
Select Id, ParentId, Type, Title, Body, CommentCount, LikeCount, LinkUrl, RelatedRecordId, ContentFileName, ContentSize, ContentType From FeedItem Order By ParentId
This query will return all feeds tag to any objects.
See architecture below (right click image to enlarge):
Notice that objectFeed object shared the same prefix with FeedItem: 0D5
Could u help on this issue plz
ReplyDeletehttp://boards.developerforce.com/t5/Chatter-and-Chatter-API/Updating-a-Chatter-FeedItem/td-p/705923
Harpit, here is my analysis:
Delete- Everytime a record created in FeedItem, it will create a new record automatically in ContentVersion and ContentDocument
- See RelatedRecordId field in FeedItem
- When upload new version for FeedItem, create new record in FeedItem with
* Type = TrackedChange
* ParentId = ContentDocument
Play around with it and let me know if you can solved it.
Hi Johan,
ReplyDeleteHave posted my reply on
http://boards.developerforce.com/t5/Chatter-and-Chatter-API/Updating-a-Chatter-FeedItem/m-p/706647/highlight/false#M3357
Please have a look and let me know your thoughts.
Cheers,
H
Can I migrate feed Views count and feed Likes/upvotes from one org to another? I see that FeedLike and FeedSignal Objects cannot be queried
ReplyDeleteI dont think possible.
DeleteI keep getting a malformed query error when querying FeedItem:
ReplyDeleteMALFORMED_QUERY: Implementation restriction: FeedItem requires a filter by Id
EVen if I put a where condition with an id filter
can you share your query?
DeleteCan I get viewCount from Chatterfeed in apex?
ReplyDelete