function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Prabhu S 1Prabhu S 1 

What is the differance between Email to Case & On Demand Email to Case?

In which scenerios this cases will be used in individual case?
Abhinav MIshraAbhinav MIshra



The email to case is a java process that reads all of the data in the email and then assigns pieces to various fields in SF and then does an Insert or Upsert into the SF system. Because the email is completely handled 'behind your firewall' and the data is directly inserted into SF, some people consider this a bit 'safer'. You also get more flexibility since you can control what is extracted from the email and put into the various SF fields.

The on demand version runs on the SF platform itself and there is not much you can do to customize it directly. You can add in additional workflows that run after the fact to do some cleanup if necessary, but basically it handles all of the heavy lifting for you automatically (looking for replies, contacts, extracting subject and descriptions, etc) for you.

There is actually a third option also available - create a 'Email Services' class that implements Messaging.InboundEmailHandler and it requires that you do all of the work yourself (such as reading the message, looking up contacts, determining if the message is a reply to an existing email, etc), but because it runs at a 'lower level' than the email2case, there is much more that you can do.

For further clarification, you may want to play a little with each of them by using them both. This is a good guide that should help you understand the differences better and let you decide "when to use what".http://help.salesforce.com/servlet/servlet.FileDownload?file=01530000001x32vAAA


If you are satisfied by the reply please do select it as best answer.
Thanks in advance !