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 :
Customer experience | Sales, Customer Insights,...
Answered

How to create a view bases on related entity

(0) ShareShare
ReportReport
Posted on by 80

Hi folks,

Some background for this question: I'm trying out an anonymization app wich uses workflows on the Contact entity.

I need to create a view with contacts that do not have a record with certain properties in a related entity. 

Example: the contact has a related entity called A, which has some fields 1, 2 and 3. I only need to see contacts with this related entity where the field 2 is always empty. If there's even one record in the related entity that has data in field 2, then I don't want to see the contact.

No atter what I try, I can't seem to set the filter properly. Either I end up with no contacts or with contacts that do have a record with field 2 filled.

Is there a way to do this or should I look fot other options?

Thanks!

I have the same question (0)
  • Esteban Coto Alfaro Profile Picture
    on at
    RE: How to create a view bases on related entity

    Hello, I recommend to check this documentation of "Query data using the Web API": docs.microsoft.com/.../query-data-web-api

    For example: /api/data/v9.0/contact&?select=name,lastname,email&$expand=related_entity($select=field_1$filter=field_2 eq null)

    Thanks!

    Community Support Team - Esteban

    If this Post helps, then please consider Accept as solution to help the other members find it more quickly.

  • Kunal.Chopra Profile Picture
    85 on at
    RE: How to create a view bases on related entity

    Hello JD,

    What is relationship type between 2 entities  ?  Ref - docs.microsoft.com/.../relationshiptype

    Have you tried reporting with Advanced Find ? Ref - docs.microsoft.com/.../save-advanced-find-search

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: How to create a view bases on related entity

    Hello,

    That is doable from the platform perspective but there is one limitation - you won't be able to design that view using a standard approach and you will have to use View Designer in order to work with that view. Check this post that describes scenario that is close to yours - www.arbelatech.com/.../creating-system-views-with-complex-not-in-filter-in-dynamics-365-for-customer-engagement.html

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 141

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 132

#3
DAnny3211 Profile Picture

DAnny3211 130

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans