+ Start a Discussion
kodeXkodeX 

CollaborationGroupFeed invalid

After executing the following SOQL query in Web Services API.

Select Body, Title, Type From CollaborationGroupFeed WHERE ParentId='0FB900000008ov2GAA'

OR

 

SELECT FeedPost.FeedItemId,FeedPost.Body,(Select Body, Title From CollaborationGroupFeed WHERE ParentId='0FB900000008ov2GAA') FROM NewsFeed ORDER BY CreatedDate DESC LIMIT 20

 

The ParentId, is the ID of the group that i want to query.

 

(I have included partner-18.jar and wsc-20.jar)

 

Why is it giving error below?

Exception in thread "main" [InvalidSObjectFault [ApiQueryFault [ApiFault  exceptionCode='INVALID_TYPE'

exceptionMessage='sObject type 'CollaborationGroupFeed' is not supported.']

 

 

 

Best Answer chosen by Admin (Salesforce Developers) 
kodeXkodeX

Solved Using Rest url-

 

".. /chatter/feeds/groups/me/feed-items"