1

How can I leverage standard chatter page functionality to show all chatter groups in my org? If you click on chatter, then groups, you see a list of all available groups... as shown belowenter image description here

1 Answer 1

1

You will need to use Connect In Apex for this

https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_ConnectAPI_ChatterGroups_static_methods.htm#apex_ConnectAPI_ChatterGroups_getGroups

Use getGroups to return the Group Page

public static ConnectApi.ChatterGroupPage getGroups(String communityId, Integer pageParam, Integer pageSize)

Pass Community Id as null if you are viewing this page outside community

2
  • then iterate over them using apex repeat? what about if i want to have the request to join capability as well? Just use command button and use the connect api?
    – user8560
    Commented Feb 16, 2015 at 20:06
  • yes .You may like to build a simplified wrapper class out of return from connect api.The return objects from connect api are little complex Commented Feb 17, 2015 at 8:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .