What is a Case in Service Cloud and how does it represent customer interactions?
Answer
Basics: Every support interaction becomes a Case so work is assigned, measured and resolved. It links to an Account and Contact, holds a Subject and Description, and carries a Status that moves from New to Closed through a Support Process.
How it works:
- Creation channels: manual, Email-to-Case, Web-to-Case (5,000 per 24 hours), Messaging, Chat, phone via CTI, Experience Cloud, API.
- Assignment: Case assignment rules or Omni-Channel route to a user or queue.
- Work: agents use Case Feed, Knowledge, Macros, quick text and Case Comments.
- Controls: Escalation Rules, Entitlements and Milestones (SLAs), Case Teams, auto-response rules.
- Closure: set Status to a closed value (IsClosed true), with a resolution; surveys and reporting follow.
- Case History tracks field changes; ParentId supports parent and child cases.
Advanced / deep dive: Email-to-Case adds a Thread Id or Reference Id to subjects and bodies so replies thread back to the right case. Support Processes limit status values per record type. Entitlement Management applies SLAs through Milestones with timers, and Omni-Channel adds capacity-based routing and skills. Sharing on Cases defaults to Private or Public Read/Write/Transfer, and Case Teams extend access. At scale, use queues, Knowledge deflection and Einstein Case Classification; case volume affects storage, so plan archiving. Cases can also be created from Messaging and Voice and are the anchor for Service Cloud reporting.
Code / config example:
Case c = new Case(Subject = , Origin = ,
Priority = , AccountId = acctId, ContactId = conId);
Database. .DMLOptions();
opts.assignmentRuleHeader.useDefaultRule = ;
c.setOptions(opts);
insert c;