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,...
Unanswered

Need to find a way to display Parent entity data based on certain data from its child entity

(0) ShareShare
ReportReport
Posted on by 1,603
Hi I am outlining a scenario here
 
Suppose I have an Account and Opportunity data in CRM and I need to find out all accounts that have at least two different opportunities records with given countries and capital matching as in condition.
 
Example :  
 
Account 1: BMW
Opportunity 1: Country : India  Capital : Delhi
Opportunity 2: Country : United Kingdom  Capital : London
Opportunity 3: Country : Itlay  Capital : Rome
 
Account 2: Tata Motor
Opportunity 1: Country : Germany Capital : Berlin
Opportunity 2: Country : United Kingdom  Capital : London
 
Account 3: Maruti
Opportunity 1: Country : France Capital : Paris
Opportunity 2: Country : United Kingdom  Capital : London
 
Account 4: Hyundai
Opportunity 1: Country : Itlay   Capital : Rome
Opportunity 2: Country : India  Capital : Delhi
 
Here in Opportunity entity have Country and Capital as two different fields.
 
I want to list accounts where it should be with two opportunities records having India+Delhi and Itlay+Rome
  • Account 1
  • Account 4
 
I have the same question (0)
  • Leah Ju Profile Picture
    Microsoft Employee on at
    Hi,
    It is difficult to retrieve records to get a list based on whether the related record field values are the same.
    You can consider that using fetchxml to get parent records based on child records. 

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 73 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

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

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans