+ Start a Discussion
Winston HunterWinston Hunter 

field that will count the number of products on an oppotunity

Fairly simple, I am just too new to custom objects/triggers/apex.

Basically a field in the opportunity that shows the number of Products that are in the opportunity.

IE for the screenshot attached, the field Opportunity Product Count = 3
User-added image
Best Answer chosen by Winston Hunter
Gaurav Jain 7Gaurav Jain 7
Hi Winston,

Create a Roll up summary field on Opportunity object with Summarized Object "Opportunity Product"

Select Roll-up type "Count" with "All Records should be included in this calculation" filter criteria.

Mark it as Best Answer, if it helps​

User-added image