Hello Experts,
I have a question. I have a N:N (many-to-many) relationship between Lead and a Custom Entity called "Sales Referrals". I need to count the total number of Leads a Sales Referral may have. I am trying to do this via a plugin. I am familiar in counting records when there is a field but have never tried to count when there is a many-to-many relationship. Does anyone have any advice or code snippets?