Mark parent Accounts in bulk
A bulk-safe trigger handler collects parent Ids first and runs one query and one update for the whole batch.
Your task
Complete afterInsert so every Account tied to a new Contact has Description = 'Has new contacts', with one query and one update.
public class AS_CD9B55EE77FD_ParentMarker {
public static void afterInsert(List<Contact> contacts) {
}
}Requirements
- marksOneParent should pass
- marksEveryDistinctParent should pass
- leavesUnrelatedParentUntouched should pass
- keepsCostFlatFromTwoToTwoHundred should pass
- handlesBulkOfTwoHundred should pass
- guardsAgainstNullAccountId should pass