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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to retrieve result data from Dynamics 365 multiple entities using a single query in C#?

(0) ShareShare
ReportReport
Posted on by 3,512

Hi All,

In a recent project, we have a requirement for search data from multiple entities. I want query results from multiple entities using QueryExpression or FetchXml in a single query in Dynamics 365. Is there any way to do this or how can I achieve this?

I would really appreciate if you could share any useful resources on this.

Thank you

I have the same question (0)
  • Suggested answer
    prt33k Profile Picture
    6,907 on at

    Hi Maulik,

    No straight forward way to achieve this.

    FetchXml/QueryExpression can return result of only single entity type. You can join linked entity, add column of those linked entity to your search but the result will return entity of only one type. Union of fetch is not supported.

    One other option is to look into global search - though it is not a documented method but it does work however you wont be able to get support.

    dreamingincrm.com/.../

    Thanks,

    Prateek

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

News and Announcements

Season of Giving Solutions is Here!

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
Pallavi Phade Profile Picture

Pallavi Phade 98

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 36 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans