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
Building RadarBuilding Radar 

Writing Apex Trigger on Lead Acitivity History

Hi everyone,
I would like to build a trigger that updates a custom field (a picklist) and chooses a specific item on the list, after I have sent an email. Because I am sending mails from Gmail and linking the service to Salesforce via the Ebsta app, the email appears only in "Activity History".
Since I am new to programming, I would greatly appreciate any help on how to write an apex trigger that updates the picklist field as soon as there is something in Lead "Activity History".
Thank you for your help!
Cheers, 
Lawrence
Blake TanonBlake Tanon
You would make it on the Task object.