You need to sign in to do that
Don't have an account?
Brian Gaza
Update Account Fields from Lookup on Related Account
I use Apex about once a year or so, so I still struggle every time...
Trying to update Billing Address fields on a Person Account based on a Lookup field that refers to another account record.
Basically, I have a lookup field called Employer and I want to pull in the address from the Employer account into the related person account. I've tried searching for some code to start with, but haven't had any luck.
Any help is appreciated!
Brian
Trying to update Billing Address fields on a Person Account based on a Lookup field that refers to another account record.
Basically, I have a lookup field called Employer and I want to pull in the address from the Employer account into the related person account. I've tried searching for some code to start with, but haven't had any luck.
Any help is appreciated!
Brian
Hi Brian,
You need to query on Account based on Employer account Id and then set the Address information field on current account fields.
Please let me know if you need help on this.
Thanks,
Gaurav
Email: gauravgarg.nmims@gmail.com
You can use the below trigger to achieve this:
Please mark this answer as solved if it helps you.