+ 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.