Skip to main content
5 events
when toggle format what by license comment
May 28, 2015 at 20:10 comment added NSjonas I just did some testing and you can insert new EmailMessage objects. Didn't try updating any status, but it was interesting that it preventing me creating emails with status = 5 (assuming thats draft). Status=3 actually worked no problem.
Mar 17, 2014 at 7:50 vote accept Dmitry Nikolaev
Mar 17, 2014 at 7:50 answer added Dmitry Nikolaev timeline score: 2
Mar 14, 2014 at 17:29 comment added cropredy I'll be surprised if you can do this. EmailMessage is tightly wired to EmailToCase. You can see from the SObject doc that EmailMessage.Status can't be updated by the API (or by inference, Apex). Why not rebuild the draft email using SingleEmailMessage, send through Apex, delete the draft, and then insert a new EmailMessage with status Sent?
Mar 14, 2014 at 14:22 history asked Dmitry Nikolaev CC BY-SA 3.0