web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to Fetch records according to linked entity which not exists

(0) ShareShare
ReportReport
Posted on by 645

I need to fetch all records of my custom entity - Game that has no linked phonecalls.

On Game form I have a subgrid+ view (Lookup) of phonecall entity.

I tried to fetch all games that has no calls by filtering linked entity form buy Created date is null, but I got no results.. 
How to filter my entity according to the condition -> has NO phonecalls

*This post is locked for comments

I have the same question (0)
  • Verified answer
    David Jennaway Profile Picture
    14,065 on at
    RE: How to Fetch records according to linked entity which not exists

    The Fetch syntax supports this type of query, using a left outer join

    However, the CRM Advanced Find (and view editor) UI does not have the capability to create this type of query. So, you'd have to edit the FetchXml definition of the view directly, which you can do either using a Update on the savedquery entity, or by exporting the view in an unmanaged solution, editing the xml, then reimporting

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: How to Fetch records according to linked entity which not exists

    Hi Sahara,

    CRM 9.0/D365 introduces the "Not in" queries in Advanced find. You may use them if its the same version for you.

    Otherwise, David's suggestion holds true.

    references:

    docs.microsoft.com/.../new-in-version-9

    docs.microsoft.com/.../save-advanced-find-search

    -Aamer

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans