You need to sign in to do that
Don't have an account?
Arjun Turke 8
I have below objects Account Object. Field 1: Total Amount | Total_Amount__c Oppotunity Object. Field : Amount | Amount | Currency Account(Master), Oppotunityetail) My usecase. i want to show total of all Amount(opp) in Total_Amount__c(Account)
Hello,
I have below objects
Account Object.
Field 1: Total Amount | Total_Amount__c
Oppotunity Object.
Field : Amount | Amount | Currency
Account(Master), Oppotunityetail)
My usecase.
i want to show total of all Amount(opp) in to field Total_Amount__c(Account)
I have below objects
Account Object.
Field 1: Total Amount | Total_Amount__c
Oppotunity Object.
Field : Amount | Amount | Currency
Account(Master), Oppotunityetail)
My usecase.
i want to show total of all Amount(opp) in to field Total_Amount__c(Account)
You can create a rollup summary field(Total_Amount__c ) on Account object to get sum of all opp related to account.
If this helps, Please mark it as best answer.
Thanks!!
In the backend you have master-detail relationship between Account and opportunity and you can able to create rollup summary fied on Account to get the sum of all opportunities.
Can check and verify.
If you still require code then let me know.
Thanks!!
You can try with below code.
https://developer.salesforce.com/forums/?id=9062I000000BkJwQAK
If this helps, Please mark it as best answer.
Thanks!!
Try Below Trigger Please Mark It As Best Asnwer If It Helps
Thank You!
Yes it's master detail relationship between Account and Opportunity. And i know it is possible by configuration.
But i want a code suppose we have lookup relationship between any 2 objects.
Then we need to do it by customization not by configuration.That's why asking for code.
Thanks!