Contains Data Not Working
-
Wednesday, February 13, 2013 4:28 AMI am trying to identify all accounts that DO NOT have contacts associated with them in the CRM system I inherited (MSFT CRM 2011). When I try a view Parents (Contacts) "contains data" it works (only lists accounts with contacts), when I do "Does not contain data" is does not work showing no accounts. How do I use views to find accounts with no assigned contacts? Thank you.
All Replies
-
Wednesday, February 13, 2013 4:55 AMModerator
You can't do this type of query in CRM with Advanced Find.
You could get the results with a Marketing List.
- Create Marketing List of Accounts
- Add All Accounts using Advanced Find (Manage Members)
- Use Advanced Find to Remove Members
- Do your same query to Find Accounts with Contacts
The result should be Account records with no Contacts
Jason Lattimer
My Blog - Follow me on Twitter - LinkedIn- Edited by JLattimerMicrosoft Community Contributor, Moderator Wednesday, February 13, 2013 4:56 AM
- Proposed As Answer by JLattimerMicrosoft Community Contributor, Moderator Wednesday, February 13, 2013 4:56 AM
- Marked As Answer by Neil BensonMVP, Moderator Wednesday, February 13, 2013 6:01 AM
-
Wednesday, February 13, 2013 5:18 AMAnswerer
Hi,
In addition to JLattimer's answer consider these solutions also:
1- You could create a field such as flag, when a contact created, this flag change would be changed to yes on account. However, on delete of the contacts you should distribute a workflow from parent account of the contact to all existing contacts on that. Then, check a required field. If no contact exists for the account, check the flag to no. This procedure could be done using plugin more efficiently. The plugin is no so complicated for this problem. Refer to SDK or this link for more info.
2- You could build a SQL report for you purpose. Because it uses SQL queries, and it could do this job well. Then import the created .rdl file to CRM. This solution does not need to manipulate data.
If the answer helped you, remember to mark it as answer.
- Marked As Answer by Neil BensonMVP, Moderator Wednesday, February 13, 2013 6:01 AM