You need to sign in to do that
Don't have an account?
Prakhyat sapra
what is the query for getting account whose related contact is more then 2
what is the query for getting account whose related contact is more then 2
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Please use below code:-
First option:-
Second Option:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
try with below code.
If this helps, Please mark it as best answer.
Thanks!!
Hi Prakhyat,
Use the below SOQL to find related contacts more than 2
SELECT AccountId, COUNT(Id)
FROM Contact
GROUP BY AccountId
HAVING COUNT(Id) > 2