What is Email-to-Case in Salesforce?
Updated · By the Clientell AI team · How we write
Email-to-Case is a Salesforce Service Cloud feature that creates a Case from each email sent to a support address. Salesforce saves the message on the case as an email record, and later replies stay linked to the same case. The current version is On-Demand Email-to-Case, which runs inside Salesforce with nothing to install.
Key facts
- What it does
- Creates a Case, plus an EmailMessage record, from each email sent to a routing address
- Current version
- On-Demand Email-to-Case. The older Email-to-Case Agent is end of life
- Daily limit
- User licenses times 1,000, up to 1,000,000, shared by all email services (limits)
- Per-case limit
- 250 inbound emails per case per day, on a rolling 24 hours (limits)
- Email size
- Messages over 35 MB are bounced. Plan for attachments near 25 MB (Salesforce Help)
- Set up in
- Setup > Platform Tools > Feature Settings > Service > Email-to-Case
Clientell AI, the AI Salesforce admin, checks your data for duplicates and bad values before Email-to-Case runs. See the data cleaning use case
Try it in Clientell AI
“Check my Lead data for duplicates and bad values before Email-to-Case runs, and show me every change for approval.”
Clientell AI reads your org first. Platform deployments include rollback. How security works.
How does Email-to-Case work?
You create a routing address, such as support@yourcompany.com. Salesforce gives that address a long Email Services Address. You forward your support mailbox to it.
When mail arrives, Salesforce first checks whether it belongs to an existing case. If not, it creates a new Case. It then creates an EmailMessage record for the email and, if you turned on Create Task, a Task. Attachments follow, per the creation order in Salesforce Help.
From there the case follows your normal process. Assignment rules or Omni-Channel route it, and agents reply from the case.
What is On-Demand Email-to-Case, and what happened to Standard?
Email-to-Case once came in two forms. Standard used an agent that you installed on your own server. On-Demand uses Salesforce email services and needs no software. Salesforce now says the agent is end of life: unsupported, not updated and not available for new installs. It tells orgs to move to On-Demand.
Older blog posts still compare the two. Treat those as history.
| On-Demand Email-to-Case | Email-to-Case Agent (Standard) | |
|---|---|---|
| Where it runs | In Salesforce, no install | Software on your own server |
| Status | Current and supported | End of life, not available for new installs |
| Use it for | All new setups | Nothing new. Migrate existing use. |
How do I set up Email-to-Case?
For example, say customers write to support@yourcompany.com and you want each email to open a Case with Origin set to Email. The steps below follow Salesforce Help.
- Go to Setup > Platform Tools > Feature Settings > Service > Email-to-Case and enable On-Demand Email-to-Case.
- Click New in Routing Addresses. Enter a name and your support email address. Set the case origin, priority and record type.
- Copy the Email Services Address that Salesforce shows.
- In your mail system, forward the support address to that Email Services Address.
- Click the link in the confirmation email to verify the routing address. Until then, the default priority, origin and record type are not applied.
- Send a test email. A new Case appears with the sender's subject, and an EmailMessage sits in its Emails related list. To undo, disable the routing address or delete the test case.
How do I trigger a flow or parse the email into the case?
A Case record-triggered flow fires when the case is created. At that moment the EmailMessage record does not exist yet, because Salesforce creates the case first. A flow on Case cannot read the email body.
To parse the email, build a record-triggered flow on the EmailMessage object. Run it when a record is created and Incoming is true. Read TextBody and use ParentId to find the case. Then update fields on the Case, such as Case.Description, Case.Subject or a custom field like Parsed_Order__c, from the text.
To run Apex instead, use an after insert trigger on EmailMessage.
Object: EmailMessage
Trigger: A record is created
Condition: EmailMessage.Incoming equals true
Action: Update Records on Case where Case.Id equals EmailMessage.ParentId
set a field from EmailMessage.TextBodyWhat are the Email-to-Case limits?
Limits come from the Email-to-Case limits page. Salesforce says an inbound message over 35 MB bounces, and encoding can add up to 33 percent, so attachments of about 25 MB are the safe ceiling.
What are common Email-to-Case problems?
Most failed setups come down to a few causes. The troubleshooting article has the full checklist.
- The routing address is still Pending. Click Resend and verify it.
- Forwarding points to the support address, not the long Email Services Address. Send a test to the long address to prove Salesforce receives mail.
- The email is too large. The sender gets a bounce, and no case is made.
- A daily or per-case limit is reached. Mail loops can hit the per-case limit fast.
- The case gets no owner from your assignment rule. Leave the Owner on the routing address blank so the assignment rule can run.
FAQ: Email-to-Case in Salesforce
What is Email-to-Case in Salesforce?
It is a Service Cloud feature that creates a Case from each email sent to a support address. Replies stay attached to that case.
What is On-Demand Email-to-Case?
It is the current version. It runs inside Salesforce using email services, and you only forward mail to a Salesforce address. The older agent is end of life.
How do I trigger a flow or Apex when an email creates a case?
Salesforce creates the Case first and then the EmailMessage. Use a record-triggered flow or Apex trigger on EmailMessage to act on the email. A Case trigger fires too, but the body is not there yet.
How do I parse an email into the case description?
Build a flow on EmailMessage for incoming records. Read TextBody, find the case with ParentId, and update the Case Description or other fields.
Why is Email-to-Case not creating cases?
Check that the routing address is verified, forwarding goes to the Email Services Address, and the email is under the size limit. Also check daily limits and failing flows.
Does Email-to-Case run assignment rules?
Yes, if the routing address has no owner set. Salesforce says to leave the Owner blank so the active case assignment rule applies.
Sources: Salesforce Help: Email-to-Case Limits and Limitations, Salesforce Help: Email-to-Case Agent End of Life, Salesforce Help: Attachment size limit for On-Demand Email-to-Case, Salesforce Help: Unverified routing address, Salesforce Help: Troubleshooting On-Demand Email-to-Case, Salesforce Help: Email-to-Case considerations. Last reviewed .
Related Salesforce Terms
5 termsService Cloud
PlatformService Cloud is Salesforce's customer service platform that provides tools for case management, omnichannel support, knowledge bases, and field service operations.
Assignment Rule
AutomationAssignment Rules in Salesforce automatically route Lead and Case records to the correct user or queue based on predefined criteria.
Omni-Channel
PlatformOmni-Channel is Salesforce's intelligent routing engine that automatically pushes work items (Cases, Leads, Orders, or custom objects) to the most qualified available agent in real time.
Record-Triggered Flow
AutomationA Record-Triggered Flow is a type of Salesforce Flow that automatically executes when a record is created, updated, or deleted.
Escalation Rule
AutomationEscalation Rules automatically escalate Case records that have not been resolved within a specified time frame, reassigning them or triggering notifications.
What should I read next?
More in Data
View all →Data Loader
Data Loader is a Salesforce desktop application for bulk importing, exporting, updating, deleting, and upserting large volumes of records.
Data Import Wizard
The Data Import Wizard is a browser tool in Salesforce Setup that imports up to 50,000 records from a CSV into standard and custom objects. It can insert, update or upsert, but it cannot delete or export.
Custom Object
A Custom Object is a user-defined database table in Salesforce that stores data specific to your organization's unique business needs.
Custom Field
A Custom Field is a user-defined field added to a standard or custom object in Salesforce to capture data not covered by out-of-the-box fields.
Try this on your own org
Start the 14-day free trial, no card. Clientell AI asks before it changes anything in production.
14-day free trial · No credit card required