Skip to main content
Data

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.

Start the 14-day free trial, no card

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-CaseEmail-to-Case Agent (Standard)
Where it runsIn Salesforce, no installSoftware on your own server
StatusCurrent and supportedEnd of life, not available for new installs
Use it forAll new setupsNothing 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.TextBody

What 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.

LimitValue
Daily emails, all email services togetherUser licenses times 1,000, up to 1,000,000 (source)
Inbound emails per case per day250, rolling 24 hours (source)
Email body text stored on the email record131,072 characters, then truncated (source)
Emails one person can send per hour250 (source)

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.

What should I read next?

Getting Started

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

SOC 2
HIPAA
ISO 27001
Salesforce Partner