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,583
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
 
  • Leah Ju Profile Picture
    Microsoft Employee on at
    Need to find a way to display Parent entity data based on certain data from its child entity
    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,129 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,895 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans