function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

how to populate contact mailing address to account's billing address and vice versa

Hi Everyone,

I have a requirement like have to auto-populate account's billing address to contact's mailing address when account is updated only if checkbox field is selected on contact.
Also, the same way have to auto-populate contact's mailing address to account's billing address.

please help me to achieve the above requirement.

Thanks in advance!!
SwethaSwetha (Salesforce Developers) 
HI Shreyanka,
You can write a trigger to achieve this.

See code in that you can customize as required

If this information helps, please mark the answer as best. Thank you