You need to sign in to do that
Don't have an account?
Cameron Seitz
SOQL Query to return Related Objects > 5
I'm currently trying to write a SOQL Query to pull all Accounts that have > 5 related Contact objects. How do I go about counting related objects?
Here you can use aggregate functions/query.
Refer below code :-
The additional filtering that I will need will involve a related object. so it will have to look something like How would I go about adding that on or nesting it?