Email Services addresses do not show up when selecting the FROM drop-down when sending an email from a case record.

Therefore, it does not allow us to use the Thread ID or Ref ID, which means our customers' replies are not showing up as inbound emails of the original case record.

Is it possible to use Email Services that reference custom Apex class and still use the Ref ID or Thread ID so that our customers' email replies show up as inbound emails in the original case? Does this require a developer to add code in the Apex class to include the Ref ID or Thread ID? Or, can we create an organization-wide email address to handle this? Does organization-wide email addresses show up in the FROM drop-down menu when sending an email from a case?


Overall, just want to know if we can use Email Services instead of Email-to-Case, but still use the Ref ID/Thread ID so that customers' emails display as inbound emails in the original case.

  • I'm a little confused by your question. It seems like you are trying to use an Email Service to handle the emails instead of Email-to-Case because you can't send from an Email-to-Case email address? Commented Oct 7, 2015 at 16:28

1 Answer 1


If you add your email to case email address to organization-wide email addresses and give permissions to the correct profiles, your agents should be able to send emails from a case that look like they come from the email to case email address. They will also include the Ref Id if sent from the case and it is configured to be added in the Case settings.

  • Thanks for the update Also.will test the same.....Is it possible to use the Case's Ref ID or Thread ID when using Email Services that point to an Apex Class? Is there any sample code Commented Oct 7, 2015 at 16:23
  • No, you can't query for thread ID. See this post to understand how the thread ID is created: success.salesforce.com/ideaView?id=087300000006trk. You could theoretically get enough of the case ID out of it to find the correct case. Commented Oct 7, 2015 at 16:27
  • You can't query the thread ID however you could create a custom ref or use case- id as a unique reference for related emails
    – Sf_Noob
    Commented Oct 7, 2015 at 16:42
  • are you saying that we can create a new organization-wide email address and have that address forward to all the email service addresses? Or, do we have to add each of our many email service addresses (we have 26 total) to the organization-wide email address? It sounds like the key thing is that organization-wide email addresses can be used as the FROM drop-down when a support agent sends an email from within a case and that Ref ID/Thread ID works with organization-wide email addresses. @Daniel Commented Oct 8, 2015 at 14:12
  • You have to add each each email address to the org-wide emails. This would let your agent pick their from address. And yes, the thread ID would be appended. Commented Oct 8, 2015 at 14:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .