function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
stefhstefh 

chatter REST API group feed

is there a way in the chatter api to get the feed of a specific group?

 

for example,

 

/services/data/v28.0/chatter/feeds/groups/{group id}/feed-items

(where {group id} is the id of the group - either the sobject id, or the id obtained from the result of /services/data/v28.0/chatter/groups)

 

gives an "invalid subject identifier" error.

 

is there a way to get this without resorting to soql queries?

Best Answer chosen by Admin (Salesforce Developers) 
alouie_sfdcalouie_sfdc

Yes, you need to use "record" in the URL instead of "groups":

 

/services/data/v28.0/chatter/feeds/record/{group id}/feed-items

 

Docs:

http://www.salesforce.com/us/developer/docs/chatterapi/Content/connect_resource_feeds_record.htm

http://www.salesforce.com/us/developer/docs/chatterapi/Content/connect_resources_how_to.htm#cc_post_to_groups

 

Were you looking at the "Groups Feed Resources" documentation (http://www.salesforce.com/us/developer/docs/chatterapi/Content/connect_resource_feeds_groups.htm)? If so, we'll add some information to that page to clarify which resource you need to get the feed of a specific group. I can see how it's not clear currently.

All Answers

alouie_sfdcalouie_sfdc

Yes, you need to use "record" in the URL instead of "groups":

 

/services/data/v28.0/chatter/feeds/record/{group id}/feed-items

 

Docs:

http://www.salesforce.com/us/developer/docs/chatterapi/Content/connect_resource_feeds_record.htm

http://www.salesforce.com/us/developer/docs/chatterapi/Content/connect_resources_how_to.htm#cc_post_to_groups

 

Were you looking at the "Groups Feed Resources" documentation (http://www.salesforce.com/us/developer/docs/chatterapi/Content/connect_resource_feeds_groups.htm)? If so, we'll add some information to that page to clarify which resource you need to get the feed of a specific group. I can see how it's not clear currently.

This was selected as the best answer
stefhstefh

perfect! thanks for this.

 

i agree - the docs can be tricky to figure out what everything is called / refers to!

 

thanks.

jody_blyjody_bly
The docs have been updated, thanks! We also added a new "Working with Feeds and Feed Items" doc:
http://www.salesforce.com/us/developer/docs/chatterapi/Content/intro_feeds_feed_items.htm