You need to sign in to do that
Don't have an account?
MIDHUN G REDDY
My Trigger code:
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;
}
}
}
Please guide me where i make a Mistake..
Thanks
Midhun
APEX TRIGGER TRAILHEAD
My Trigger code:
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;
}
}
}
Please guide me where i make a Mistake..
Thanks
Midhun
Best Answer chosen by MIDHUN G REDDY
Chandra Sekhar CH N V
Its a small syntax mistake in your condition, Try the below code: