+ Start a Discussion
SankeshReddy NallamilliSankeshReddy Nallamilli 

Create a Trigger that will capture any contact that sets or changes his/her Mailing Address to be in The "State of Colorado".When this occur we would like to add that contact to "Colorado Rocks" campaign

shailesh_rawteshailesh_rawte
Hi SankeshReddy,

trigger triggername on contact(before update){
 for(contact ct: trigger.new){
   String   MailingAddressll=Trigger.oldMap.get(ct.id).MailingAddress;
     if(ct.MailingAddress!=MailingAddressll){
           ///attach contact to campaign here
      }
     
   }

}


Regards
Shailesh Rawte
SankeshReddy NallamilliSankeshReddy Nallamilli
please attach contact to comaign code too.