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
Diego NietoDiego Nieto 

Create an email activity using a different email provider

hello everyone

In my company we use an api to send Email to our clients. We need to create a trigger that send an email through this API and after that we need to create an Activity History record of Email type. 

when we use SigleEmailMessage it has the setSaveAsActivity flag, but we need to do it with ut use this class.

How I can do that?

Thank you