+ Start a Discussion


 iam an one req once i have created opportunity  the number of opps releted accounts count displayed in account object  and account having field Number of opportunities write trigger asking pls given that one

Hi Suresh143,

For this you don't need a trigger.
Just create a roll up summary field on account .
Summarized object as opportunity and select roll up type as count.
That's it you can get the count of opportunities on Account.

Ok Good My req is through trigger is asking my team lead
Ihave an account object there is one field no of opportunitys.once i had created new record with account and no of opportunitys count displayed in Account object field like no of opportunitys in detail page