Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Find contacts where user has not created a note using advanced find

(0) ShareShare
ReportReport
Posted on by 293

Dear community,

I am trying to find all contacts where a specific user has not created a note. I am able to find contact where Notes generally exist or not exist, but I cannot find contacts where notes exist and a user did not create one of them.

Any chance to make that work with Advanced Find?

  • KVa Profile Picture
    293 on at
    RE: Find contacts where user has not created a note using advanced find

    Thanks, will give it a try.

  • scr1pt Profile Picture
    130 on at
    RE: Find contacts where user has not created a note using advanced find

    Yes, you can create this view with View Designer + FetchXMLBuilder plugins for XRMToolbox.

    But you will not be able to edit this view from Advanced find or solutions designer.

  • KVa Profile Picture
    293 on at
    RE: Find contacts where user has not created a note using advanced find
    [quote user="Oana Cozma"]

    Hi Kiril,

    Have you tried the following filters yet:

    pastedimage1605782291707v1.png

    I have tested this in a vanilla and was able to bring up Contacts that Notes were created but not by a specific user.

    Please let me know if this is the query you are using. 

    Regards,

    Oana

    [/quote]

    Unfortunately, this will leave out Contacts without Notes.

  • KVa Profile Picture
    293 on at
    RE: Find contacts where user has not created a note using advanced find
    [quote user="scr1pt"]

    You can use custom FetchXML:

    See the example below. It show contacts, which have notes created by specific user, but not having the note with subject note2

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" >
    <entity name="contact" >
    <attribute name="fullname" />
    <attribute name="emailaddress1" />
    <attribute name="statecode" />
    <attribute name="mobilephone" />
    <attribute name="birthdate" />
    <attribute name="contactid" />
    <filter type="and" >
    <condition entityname="ae" attribute="annotationid" operator="null" />
    </filter>
    <link-entity name="annotation" from="objectid" to="contactid" link-type="outer" alias="ae" >
    <filter type="and" >
    <condition attribute="createdby" operator="eq" value="{E97D3BF3-C7B4-E811-A957-000D3AB49645}" uiname="First, CrmUser" uitype="systemuser" />
    <condition attribute="subject" operator="like" value="%note2%" />
    </filter>
    </link-entity>
    <link-entity name="annotation" from="objectid" to="contactid" link-type="inner" >
    <filter type="and" >
    <condition attribute="createdby" operator="eq" value="e97d3bf3-c7b4-e811-a957-000d3ab49645" uiname="First, CrmUser" uitype="systemuser" />
    </filter>
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    [/quote]

    Thank you. Is it possible to create a System view using FetchXML, and show it in Dynamics?

  • Verified answer
    scr1pt Profile Picture
    130 on at
    RE: Find contacts where user has not created a note using advanced find

    You can use custom FetchXML:

    See the example below. It show contacts, which have notes created by specific user, but not having the note with subject note2

      
        
        
        
        
        
        
        
          
        
        
          
            
            
          
        
        
          
            
          
        
      
    

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Find contacts where user has not created a note using advanced find

    Kiril,

    I'm afraid it's not doable using Advanced Find but you can work around it. In order to achieve your goal do following:

    1. Create a Marketing List with "Contact" type.

    2. Use "Add Contacts based on Query" to add contacts there based on advanced find query "Contacts with existing notes".

    3. Use "Remove Contacts based on Query" to remove contacts based on advanced find query "Contacts with notes created by a particular user".

    Once 3 steps are completed your marketing list will contain contacts that you're looking for.

  • Oana Cozma Profile Picture
    on at
    RE: Find contacts where user has not created a note using advanced find

    Hi Kiril,

    Have you tried the following filters yet:

    pastedimage1605782291707v1.png

    I have tested this in a vanilla and was able to bring up Contacts that Notes were created but not by a specific user.

    Please let me know if this is the query you are using. 

    Regards,

    Oana

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 93

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans