
You can query the case-to-email address using the EmailServicesAddress object. SELECT Id,AuthorizedSenders,EmailDomainName,IsActive,LocalPart FROM EmailServicesAddress The LocalPart plus the EmailDomainName make up the routing email address.
Full Answer
What happens when a customer replies to a Salesforce email?
When a customer replies to an email that has the Thread ID the Salesforce will identify the case via the Thread ID, the Case Owner will be sent a notification, and the Email will be added to the Email Related List. To add the Related List to the Case Layout:
Is it possible to do a soql query on emailmessage?
None of these worked. But it feels like this should be doable - the EmailMessage object has a "ParentID" field that points back to the Case, so I can always do a separate SOQL query on EmailMessage. But I'd hoped to use a relationship query here, for various reasons.
How to add the email related list to the case layout?
Add the Email Related list to the Case Layout. When a customer replies to an email that has the Thread ID the Salesforce will identify the case via the Thread ID, the Case Owner will be sent a notification, and the Email will be added to the Email Related List. To add the Related List to the Case Layout:
Why can't I test email-to-case?
A common issue when testing Email-to-Case before deployment or when testing in the Sandbox the support address has not been forwarded to the Email Services Address. If you have not already done this then the replies are not hitting Salesforce and cannot be attached to the case.

How do I receive emails from a case in Salesforce?
Before you enable Email-to-Case, take care of some configuration tasks. ... From Setup, enter Email-to-Case in the Quick Find box, then select Email-to-Case.Click Edit.Select Enable Email-to-Case, and click Save.Select Enable On-Demand Service and click Save.
How does email-to-case work Salesforce?
Email-to-Case's on-demand service keeps email traffic outside your network's firewall and refuses emails larger than 25 MB. You can specify how Salesforce handles incoming emails that come from unauthorized senders or exceed your org's daily processing limits. A simple guided flow walks you through setup.
What are the capabilities of email-to-case?
Email-to-case is an out of the box Salesforce feature that allows your end customers to send an email to an alias, then have that email turned it to a support case, send auto-replies, distribute them to your support team, and take other automated actions.
How do I send an email from a case in Salesforce?
From Setup, click the Object Manager tab. Select Cases, and open the Buttons, Links, and Actions setup page. Click New Action. For Action Type, select Send Email....For Field Name, select one of the following fields:To Recipients.CC Recipients.BCC Recipients.
How do I debug an email to a case?
How to obtain trigger log from Email2Case?Debug Log of type "Automated Processes"Debug Log of type "User" on Sys Admin user who set up Email2Case.Debug Log of type "Trigger" on the trigger in question.Checked W20 known issues for debug log issues (running in W20 sandbox)
How do you test email to case in sandbox?
To test your email to case in your sandbox org, simply just send an email to the Email Service Address in your sandbox org. Show activity on this post. You will need to update the email forward for Email-to-Case to the new email when you setup the email address in Sandbox.
What is the difference between email to case and on demand email to case?
On Demand Email-to-Case automatically converts emails to cases, without you having to download and install an agent behind your network's firewall. Simply Configure your email system to forward case submissions to the email services address provided to you by Salesforce.
What is email to case agent Salesforce?
Email to case agent is installed on your local/Server System. It fetches message from your email Server (Email address dedicated to Email to Case), Process it and creates Case records inside Salesforce.
Why email to case is not working in Salesforce?
If no Case is created, it most probably is a configuration issue rather than an email delivery or forwarding issue. Check with your Salesforce administrator to see if it ever worked or stopped working at some point.
How do I enable email to case?
Enabling the featureGo to Setup > Customize > Cases / Search for Email-to-Case in quick find box.Click on Email-to-Case and edit to enable the feature.
How do I add an email tab in case feed?
Show activity on this post. You have to enable Email-to-Case in order to have this functionality. Please go to Setup-->Case--> Email-to-Case Enable Email-To-Case checkbox. Then go to the Case Page layout, you will find the option to add email quick action.
Can we deploy email to case?
we can't deploy email-to-case because routing address of the Email-to-case in Sandbox and Production different. Better we implement email to case in the production.