Development questions
Write a SOQL query to find all Users belonging to a specific Public Group (GroupMember where Group.DeveloperName = 'Deal_Desk').
Query GroupMember filtered by the group's DeveloperName. UserOrGroupId can be a User or another Group, so filter by user Id prefix (005) if you only want Users.
soql
SELECT UserOrGroupId FROM GroupMember WHERE Group.DeveloperName = 'Deal_Desk'
Then query User with those Ids to get names and emails.
soqlscenariogroupssetup-objects
More Development questions
- What is an Apex Trigger in Salesforce and when should you use it over Flows?
- What is the difference between before triggers and after triggers?
- Explain all Trigger context variables (isInsert, isUpdate, isDelete, isUndelete, isBefore, isAfter, isExecuting, size, operationType).
- What is the difference between Trigger.new and Trigger.old?
- In which trigger events are Trigger.new and Trigger.newMap available?
- In which trigger events are Trigger.old and Trigger.oldMap available?