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
Nitin Rawat 9Nitin Rawat 9 

Checkbox updated when Email is read by the user.

Hi,

I have "EmailStatus" object in which there is a field named as "TimesOpened" which counts to "1" when email is read. So I want to update  "Email Opt Out" checkbox whenever this  field "TimesOpened" counts to "1".
"Email Opt Out" is Checkbox on Lead object.

Thanks in Advance!!

AnudeepAnudeep (Salesforce Developers) 
Hi Nitin, 

If the EmailStatus object is related to Lead object in some or the other way then you can try doing a cross-object field update using a workflow rule or a process builder. Otherwise, you should look at writing a trigger 

Anudeep