# What is a Case in Service Cloud and how does it represent customer interactions?

**Topic:** Service Cloud · **Difficulty:** Medium · **Tags:** Service Cloud, Case Management, Cases

Read it on the site: https://www.forcechallenges.com/interview-questions/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:**
1. Creation channels: manual, Email-to-Case, Web-to-Case (5,000 per 24 hours), Messaging, Chat, phone via CTI, Experience Cloud, API.
2. Assignment: Case assignment rules or Omni-Channel route to a user or queue.
3. Work: agents use Case Feed, Knowledge, Macros, quick text and Case Comments.
4. Controls: Escalation Rules, Entitlements and Milestones (SLAs), Case Teams, auto-response rules.
5. Closure: set Status to a closed value (IsClosed true), with a resolution; surveys and reporting follow.
6. 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:**
```apex
Case c = new Case(Subject = 'Login failure', Origin = 'Web',
                  Priority = 'High', AccountId = acctId, ContactId = conId);
Database.DMLOptions opts = new Database.DMLOptions();
opts.assignmentRuleHeader.useDefaultRule = true; // run active assignment rule
c.setOptions(opts);
insert c;
```

**Hidden gotchas & must-remember points:**
- Assignment rules do not run on Apex or API inserts unless you set DMLOptions.
- Web-to-Case is limited to 5,000 cases per 24 hours.
- Status values must belong to a Support Process for that record type.
- Email-to-Case needs Routing Addresses and the Thread Id setting.
- Closed Status picklist values must be marked Closed.
- Case owner can be a user or queue.

**Best practice:** Define record types and support processes early, and route through queues or Omni-Channel.

---
Source: ForceChallenges · last updated 2026-11-02
