You need to sign in to do that
Don't have an account?
Nidhi Cloud
Create a field Opportunity amount on Account object and write a trigger on Opportunity to populate the total sum of all opportunity Amount on Account Object Opportunity amount field
Cna anyone help me with this one??
By using below trigger on opportunity we can achieve it. Opportunity_amount__c is the field that is created on Account.
Please refer the below article for the same.
https://www.infallibletechie.com/2014/03/trigger-to-find-total-opportunity.html
If this solution helps, Please mark it as best answer
Thanks,
All Answers
Can you please elobarte the use case. If the use case is to sum all the opportunity amount on the related account. We can acheieve with just creating a Roll up summary field on Account object to sum all the opportunities amount as shown below. If this do not meet your requirement please let us know the exact scenerio.
If the above solution helps, Please mark it as best answer.
Thanks,
I wanted to know how will i create sum roll up using apex
i have created this field called opportunity amount on account object but how will i witre tigger to get the sum of all opportunity amount and display it on mount field which is on opportunity object,
By using below trigger on opportunity we can achieve it. Opportunity_amount__c is the field that is created on Account.
Please refer the below article for the same.
https://www.infallibletechie.com/2014/03/trigger-to-find-total-opportunity.html
If this solution helps, Please mark it as best answer
Thanks,