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 below
1 Answer
You will need to use Connect In Apex for this
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
-
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?– user8560Commented 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