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
VFVF 

Apex trigger

Hello,

I have an custom object which has relation with campaign . In that i have a field , if i update the field from the object then the  EmailOptout standard field  from contact or lead  should change.

Can any one help me in writing an apex trigger for this. 

jkucerajkucera
How do you know which Leads or Contacts to update?  Are they lookup fields on your custom object or are you wanting to update all campaign members for that campaign if EmailOptOut__c == True?
jkucerajkucera
Looks like you posted in another thread and have a solution there.
VFVF
Thanks for your Reply..... yeah i posted the issue in another thread and got a soln any ways thanks for ur concern.