web
You’re offline. This is a read only version of the page.
close
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

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)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    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

  • Kunal.Chopra Profile Picture
    85 on at

    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

  • Esteban Coto Alfaro Profile Picture
    on at

    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.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 74 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 31 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans