Hi. We'd like to run a report to show Accounts with multiple Contacts (and exclude ones with a single Contact). If someone could point me in the right direction to set this up it'd be a great help.
Many thanks
James
Hi. We'd like to run a report to show Accounts with multiple Contacts (and exclude ones with a single Contact). If someone could point me in the right direction to set this up it'd be a great help.
Many thanks
James
Hello James,
If you would like to try an approach that doesn't require updating the account records an Advanced Report could do it.
Create the following custom query:
SELECT a.id, a.name, COUNT(ac.contact_id) as contact_count FROM accounts_contacts ac JOIN accounts a ON ac.account_id = a.id GROUP BY a.id, a.name HAVING COUNT(ac.contact_id) > 1;
I hope this helps
André
Hello James,
If you would like to try an approach that doesn't require updating the account records an Advanced Report could do it.
Create the following custom query:
SELECT a.id, a.name, COUNT(ac.contact_id) as contact_count FROM accounts_contacts ac JOIN accounts a ON ac.account_id = a.id GROUP BY a.id, a.name HAVING COUNT(ac.contact_id) > 1;
I hope this helps
André