You need to sign in to do that
Don't have an account?

How to write a trigger on Account , when an account insert , automatically account billing address should populate into the account shipping address.
Hi, can any one help me with trigger on Account , when an account insert , automatically account billing address should populate into the account shipping address.
I wrote this but not working
trigger AddressUpdate on Account (before insert)
{
for(Account Acc:trigger.new)
{
Acc.BillingStreet=Acc.ShippingStreet;
Acc.BillingCity=Acc.ShippingCity;
Acc.BillingCountry=Acc.ShippingCountry;
Acc.BillingState=Acc.ShippingState;
Acc.BillingPostalCode=Acc.ShippingPostalCode;
}
}
I wrote this but not working
trigger AddressUpdate on Account (before insert)
{
for(Account Acc:trigger.new)
{
Acc.BillingStreet=Acc.ShippingStreet;
Acc.BillingCity=Acc.ShippingCity;
Acc.BillingCountry=Acc.ShippingCountry;
Acc.BillingState=Acc.ShippingState;
Acc.BillingPostalCode=Acc.ShippingPostalCode;
}
}
Please use below code:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
All Answers
Please use below code:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
Try this code:
Trigger:
Apex: I hope you find the above solution helpful. If it does, please mark it as Best Answer to help others too
Thanks and Regards,
Suraj Tripathi