You need to sign in to do that
Don't have an account?
sourav046
Apex code for Contact to Account Update
I want to create a trigger on Contact so that when I update the Phone No in Contact ,the associated Account also gets populated with that Phone No.
Help with code Please .
Thanks SLockard !
Your code helped me alot .
But I did this :
All Answers
Try something like this:
Hope that helps!
Thanks SLockard !
Your code helped me alot .
But I did this :
The only issue I see with your code is that you are updating each account separately. The reason I used the list to hold the accounts and update them together is because of governor limits..
I tried to update bulk records using data loader .It works fine .
Is it the issue you found here ?
If it's working for you, great. But usually it is not a good idea to put an update in a for loop.
Either way, I'm glad I could help.
Hi SLockard !
You can share your idea anytime .Afterall i am almost a newbie to apex coding and I want to improve myself .
I would be glad to see your code .