• Sahithya Varanasi 12
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hello everyone,

I have an objectA where I have a pick list field abc with some values. I want to have the same field value in another objectB or create a reference so that I have the same value in another objectB.

Object B is a lookup field in Object A.

Please advise .
trigger AccountAddressTrigger on Account(Before insert,before update) {
 for(Account a : Trigger.new){
        If (a.Match_Billing_Address__c == true && a.BillingPostalCode!=Null) {
            a.ShippingPostalCode = a.BillingPostalCode;
        }   
    }
}