How to get all Public Groups using Apex in Salesforce?

Sample Code:

List<Group> TempPGList = new List<Group>();

String SOQL = 'SELECT Id, Name FROM Group WHERE Type = \'Regular\'';
TempPGList = Database.Query(SOQL);

No comments:

Post a Comment