Sub topic 1
What a Case is and which fields matter
A Case is a standard Salesforce object that records one customer issue, question, or request. It is the unit of work in Service Cloud. Queues, assignment rules, and escalation rules all act on Case records, so you need to know its fields before you configure any of them.
Prerequisites
This chapter assumes you can do the following:
- Navigate Setup, open an object in Object Manager, and read a list view.
- Explain what users, profiles, and permission sets are.
- Describe a basic support workflow, such as a customer reporting a problem and an agent resolving it.
- Optional: read a simple SOQL query. The code sections use it.
The Case object in context
Each Case usually links to a customer through two lookup fields, Account and Contact. Cases can also link to an Asset or a parent Case. Agents add comments, emails, and attachments as related records.
Fields that drive routing and escalation
Many Case fields are only descriptive. The ones below are read by automation, so they deserve the most attention.
| Field | API name | Why it matters |
|---|---|---|
| Case Number | CaseNumber | Auto-numbered, read-only identifier shown to users and customers. |
| Subject | Subject | Short summary. Rules can match on its text. |
| Status | Status | Where the case is in its lifecycle. Drives the IsClosed flag. |
| Priority | Priority | Often used in rule criteria and to set escalation timing. |
| Origin | Origin | The channel that created the case, such as Email or Web. |
| Case Owner | OwnerId | A user or a queue. Assignment and escalation change this field. |
| Is Escalated | IsEscalated | True after an escalation rule or a user escalates the case. |
| Is Closed | IsClosed | Read-only. Derived from the Status value. |
| Created Date | CreatedDate | Starting point for age-based escalation. |
Two details cause frequent confusion:
- OwnerId is polymorphic. It holds the Id of a User or of a Group record of type Queue. This is why one field can describe both "assigned to Maria" and "waiting in Tier 2".
- IsClosed is not editable. Each Status picklist value is marked as open or closed in Setup. Saving a case with a closed status sets IsClosed to true.
Reading cases with SOQL
You can see these fields directly with a query. This one lists open cases with their owner and age.
SELECT CaseNumber, Subject, Status, Priority, Origin, Owner.Name, CreatedDate
FROM Case
WHERE IsClosed = false
ORDER BY CreatedDate ASCBecause Owner.Name works for both users and queues, the result shows either a person or a queue name. You will use Owner.Type later to tell the two apart.
Fields to leave alone for now
Case also has fields such as Type, Reason, and Description. They help reporting and agent context, but routing rarely depends on them. Add custom fields only when a rule truly needs them, for example a product-line picklist that decides which queue receives the case.
Common errors
- Blank criteria fields. A rule that tests Priority never matches a case created without one.
- Assuming Owner is always a person. Code that reads
Owner.Emailfails or returns nothing when a queue owns the case. - Editing IsClosed. You change Status instead.
Exercise
A report lists cases where Owner.Name shows "Tier2_Support". Which field holds that value, what kind of record does it point to, and how would you filter the report to cases still waiting in a queue?
Show answer
The value comes from OwnerId, which here points to a Group record of type Queue. Filter with Owner.Type = 'Queue' (in SOQL) and IsClosed = false to show open cases that no individual agent has picked up.
Exercise
An agent sets a case Status to a value marked as closed in Setup. Which field changes automatically, and can the agent edit it directly?
Show answer
IsClosed becomes true. It is read-only and derived from the Status value, so it cannot be edited directly.