You need to sign in to do that
Don't have an account?

How to create a field to count opportunities per contact?
I am looking to find which contacts are our most prolific.
Is there a simple way without triggers?
Is there a simple way without triggers?
http://help.salesforce.com/HTViewHelpDoc?id=fields_about_roll_up_summary_fields.htm&language=en_US
I think Trigger is the only way because rollup summary is available in Master-Detail relationship and there is no way to create Master-Detail relationship b/w Contact and Opportunity.
Regards
Viru
I'm looking toward my first "Batch Apex" and hoping updating the field I want to populate on Contact once a day is enough.
(Of course now I'm running into SOQL limitations, like not being able to compare the OCR count against a numeric field on Contact in a HAVING, but that's another story.)
In the meantime, please upvote these 2 ideas to allow us to write code against OpportunityContactRole so we can actually get counts of Opportunities hanging off of Contacts working!
https://success.salesforce.com/ideaview?id=08730000000BrdvAAC
https://success.salesforce.com/ideaView?id=08730000000DpQGAA0