Announcements
No record found.
Hi All,
I have always asked the interview questions but i am not able to find the proper answer for it.
can you guys please help me with following question
1)what is difference between Query expression and fetch xml.
when to use either of them.
Hi Mona,
Please refer to these blogs.
normally they are equivalent (meaning that a fetchxml can be converted to queryexpression and vice versa)
fetchxml has a couple of nice additions (like aggregation and get the text value of lookups and optionset directly)
you decide by your project and the experience.
of course if you need aggregation you will use fetchxml, if you need to add Criteria conditions dynamically in the code it's easier with QueryExpression.
you can use both, so try which one is more suitable for your project.
Courtesy: Guido Preite
Regards.
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 156
Pallavi Phade 102 Super User 2026 Season 1
Abhilash Warrier 55 Super User 2026 Season 1