You need to sign in to do that
Don't have an account?
narensfdc
Trigger for moving billing address to shipping address
Hi
Please help me in writting a trigger for moving billing address to shipping address for both insert and update events
thanks
naren.
trigger copyBillingAddress on Account (before insert,before update) {
for (Account acc: Trigger.new) {
acc.ShippingState =acc.BillingState;
acc.ShippingCity =acc.BillingCity;
acc.ShippingCountry=acc.BillingCountry;
}
}
All Answers
trigger copyBillingAddress on Account (before insert,before update) {
for (Account acc: Trigger.new) {
acc.ShippingState =acc.BillingState;
acc.ShippingCity =acc.BillingCity;
acc.ShippingCountry=acc.BillingCountry;
}
}
You can use WF in place of Trigger for this requirement.
Hi kavi
Thanks for your reply
naren
Hey there! this is pretty simple, Anyhow here you go!
Hope it helps!
Thanks
Prady
Hi vinit
I think we can not do it by WF,if yes,please let me know how can we give the condition in field update
thanks
naren
Hi kavi
This trigger is fine but know there is a requirement that the whole billing address should match with shipping address but only the shipping street should differ that means what ever we enter in the shipping street it shouls take that value not the billing street value,please help me in coding this.
thanks
naren.
Hi prady
This trigger is fine but know there is a requirement that the whole billing address should match with shipping address but only the shipping street should differ that means what ever we enter the value in shipping street it should take that different value not the billing street value,please help me in coding this.
thanks
naren.
Just comment out the Shipping street and billing street line from the code!!
Thnaks
Prady
can anyone help me i'm new to codings..