Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Companies with no Active Contacts

Posted on by 75

How do I pull a list of all companies with no active contacts associated with them?

I can pull a list of companies with no contacts but not no active contacts. I want to deactivate old not used companies.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Companies with no Active Contacts

    Hello,

    I see 2 ways to achieve your goal:

    1. Marketing Lists. Here is what you can do:

    1.1. Create a static marketing list with the target entity as "Account".

    1.2. Add all accounts to that list.

    1.3. Remove accounts from that list based on Advanced Find Query and the Query, in this case, will be "Accounts with Active Contacts" - it should be straight forward.

    1.4. As a result, the marketing list you created on step 1.1 will contain only accounts without active contacts.

    2. Enhanced tricks with FetchXml - Microsoft introduced the "Doesn't contain" feature to FetchXml and in order to utilize that feature it would be required to use XrmToolBox tools that are described here - www.arbelatech.com/.../creating-system-views-with-complex-not-in-filter-in-dynamics-365-for-customer-engagement.html

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Companies with no Active Contacts

    Well, I understand the issue with the limitations of Advanced Find.  How many Companies/Accounts do you have?  You could pull two lists - 1 All Companies and 2. All Companies with an Active Contact, export to excel.

    Then put both into the same excel sheet and compare the lists, remove the ones that have an account in each list, then you have a list of accounts to turn off.  From there, you could attempt to import that list as inactive (you would need a unique id for the import, plus I am not 100% sure on limitations of importing records as inactive).  If that idea doesnt work, due to the import, you could flag them all in a different field, then filter on said field and deactivate.

    If the excel idea is out of the question let me know, Im sure I can come up with something else.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans