Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Query for advanced find of accounts whose contacts has not had appointment

Posted on by 5

Hi! 
I want to set up a personal view with the following criteria

Active Accounts where account address 1 equals a specific city, or no data in adress 1 city. Only view those accounts who has contacts, and only view those accounts whose contact has not had an appointment the last 6 months or ever. 

The active and city-part is fine. But Im struggling with the query for accounts whose contacts has not had an appointment. Meaning that if only 1 contact under an account has had an appointment, the account should not be visible in this view. 

Would also like to add that the appointments in regarding contacts, not regarding accounts. 

Thank you,

Best,

Kristin

*This post is locked for comments

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: Query for advanced find of accounts whose contacts has not had appointment

    Hi partner,

    Is your problem solved? Are there any other questions?

    Please don't forget to close this theme by clicking Yes to mark the verified answer.

    pastedimage1567388679014v1.png

    This will help other users quickly navigate to this theme.

    Thanks.  :)

  • Thomas David Dayman Profile Picture
    Thomas David Dayman 11,323 on at
    RE: Query for advanced find of accounts whose contacts has not had appointment

    Or you can use this technique - trinitytg.com/.../

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: Query for advanced find of accounts whose contacts has not had appointment

    Hi partner,

    This requirement cannot be achieved with a single view and requires two views.

    "contact has not had an appointment the last 6 months or ever" - This condition needs to be split into two parts:

    1. The contacts have never had an appointment.
    2. The contacts have appointments and the appointments are within 6 months.

    These two conditions cannot appear on one view at the same time. So you need to split into two views.

    3362.PNG    4628.png

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans