You need to sign in to do that
Don't have an account?
bhanu_prakash
update highest amount on account from contact acheive it using trigger
Hi Team,
I have amount__c in both contact and account . if account has many contacts and i need to update highest amount of contacts and update that into account amount field ?
Ex : ABC account Amount__c =
Contact1 : T -- Amount__c = 500$
Contact2 : A -- Amount__c = 700$
Contact3 : B -- Amount__c =300$
now account amount__c need to update with 700$ . how can i acheive it using trigger
I have amount__c in both contact and account . if account has many contacts and i need to update highest amount of contacts and update that into account amount field ?
Ex : ABC account Amount__c =
Contact1 : T -- Amount__c = 500$
Contact2 : A -- Amount__c = 700$
Contact3 : B -- Amount__c =300$
now account amount__c need to update with 700$ . how can i acheive it using trigger
Yes, you are right. I didn't cover the delete scenario. Try this new code. Let me know, if this solves your problem.
Hope this helps.
All Answers
Try the below code:
Hope this helps.
Contact1 : T -- Amount__c = 500$
Contact2 : A -- Amount__c = 700$
Contact3 : B -- Amount__c =300$
if iam trying to delete Contact2 : A then price need to update as 500$ .Iam stuck here please help :) :)
Yes, you are right. I didn't cover the delete scenario. Try this new code. Let me know, if this solves your problem.
Hope this helps.