You need to sign in to do that
Don't have an account?
srikanth j 24
Salesforce Roll-up Summary
Hi guys,
Roll up summary using trigger Between Account and Opportunity . i want Opportunity count on Account object can anyone give me a solution for this if possible give me a code.
Advance Thanks.
Roll up summary using trigger Between Account and Opportunity . i want Opportunity count on Account object can anyone give me a solution for this if possible give me a code.
Advance Thanks.
Why are you creating an Apex trigger for this particular requirement.? You just need to create a Roll Up Summary field on Account "Total Number of Opportunities". You can achieve it by Roll Up Summary field.
Log in into salesforce.com -> User Name -> Setup -> App Setup -> Customize -> Account -> Fields -> New -> Roll Up Summary
its solve
Thanks
mark it solve if it helps you :)
try this trigger code
and make sure Number_of_Opportunity__c field create in your account object :)
than create a new account and add a new opportunity with this account and save. after save Number_of_Opportunity__c count tha related opportunity
Thanks
Mark it best answer if it helps you:)