Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Contact c = new Contact();
c.lastName = 'Andy The Customer';
c.Email = '';
insert c;
Case theCase = new Case();
insert theCase;
EmailMessage theEmailMessage = new EmailMessage();
theEmailMessage.BccAddress = '';
theEmailMessage.CcAddress = ',,';
theEmailMessage.FromAddress = '';
theEmailMessage.TextBody = 'Hello, I want to understand a few things about your SaaS offering.';
theEmailMessage.ParentId = theCase.Id;
theEmailMessage.toAddress = '';
theEmailMessage.Subject = 'What is your SaaS Product Offering?';
insert theEmailMessage;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.