You need to sign in to do that
Don't have an account?
KhaledZero
How to get the list of managers of a group?
Hi,
using apex code in salsesForce
CollaborationGroup gp = [Select OwnerId, Id From CollaborationGroup Where Name = 'Group_ReadOnly'];
how to get the list of managers of a group?
Thx.
You need to query on the CollaborationGroupMember SObject:
SELECT MemberId FROM CollaborationGroupMember WHERE CollaborationGroupId='your_group_id' AND CollaborationRole='Admin'
Docs:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_collaborationgroupmember.htm
Note: I think there's a bug in the documentation. The valid values for CollaborationRole are 'Standard' and 'Admin', not 'Member' and 'Manager'.