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

Trigger Help
Hi All,
I'm new to triggers and wanted to see if someone could help with my first basic one.
Trigger Requirement: I have a checkbox on Contacts. If that is checked, then the contact's billing address should mirror the account's billing address. So, if that box is checked, and someone changes the Account's billing address it automatically updates the contact's address as well.
(Note: I had a feild update in place but that updated only when the checkbox was updated, not if someone just updated the Account's billing addreess)
Contact Fields: Duplicate_Account_Address__c (checkbox), Mailing Street, Mailing City, Mailing State, Mailing Zip, Mailing Country
Account Fields: Billing Street, Billing City, Billing State, Billing Zip, Billing Country
Many Thanks!
Two triggers:
The former updates all contacts that have the box checked when an account is changed, the latter copies the data if the box is checked. This will catch all possible conditions.
All Answers
Two triggers:
The former updates all contacts that have the box checked when an account is changed, the latter copies the data if the box is checked. This will catch all possible conditions.
You are an officer and a gentleman. Thank you kindly. It's working perfectly.
I'm such a novice that I also need help writing the test class. I'm looking around now, but if you could explain it easily that would be wonderful!