How does Case Merging eliminate duplicate inquiries and streamline support queues?
Answer
Basics: Customers email twice, call after emailing, or several contacts report the same outage. Duplicate cases double the workload and create conflicting replies. Merging picks one master case and consolidates the rest into it.
How it works: In Lightning Experience, an agent with the Merge Cases action selects the cases (up to three at a time), picks the master, and confirms; the other cases are closed and linked to the master, and their related items move or are referenced (verify exactly which related records, such as emails, comments and attachments, transfer in your release). In Classic, Merge Cases was a list-view button. Merging needs the right permission (edit on cases and the merge action on the page layout), and the cases should usually share the same contact or account.
Advanced / deep dive: Prevention beats cleanup: detect duplicates on creation by comparing the contact, subject and time window using a Flow or Apex, then flag or auto-link them. Use Email-to-Case threading properly so replies do not create new cases. In an outage, prefer parent-child hierarchies over merging, because merging loses the individual customer's identity and SLA, while a parent-child link keeps each case and lets you update all together. Reporting should treat merged cases as closed duplicates, not resolved work, so metrics are not inflated. Check how merged cases behave for milestones, entitlements and email thread IDs before enabling it for everyone. Merge is a user-driven action; if you need automated merging, design carefully for data loss and audit.
Code / config example:
// Bulk-safe duplicate candidate detection: same contact + subject within 24h
public static Map<Id, List<Case>> findDuplicates {
Set<Id> contactIds = <Id>();
(Case c : incoming) (c.ContactId != ) contactIds.add(c.ContactId);
Map<Id, List<Case>> byContact = <Id, List<Case>>();
(Case existing : [SELECT Id, ContactId, Subject FROM Case
WHERE ContactId IN :contactIds
AND CreatedDate >= :Datetime.now().addHours(-)]) {
(!byContact.containsKey(existing.ContactId)) byContact.put(existing.ContactId, <Case>());
byContact.get(existing.ContactId).add(existing);
}
byContact;
}