function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ravikanth321ravikanth321 

Count opportunities owned by user using batch apex.

Hi Could someone help me in creating a batch apex to count(total 6 stages ,i want to count only 2 and above) the number of opportunities owned by a user and populate that value on to user record.