Generate FetchXML
& QueryExpression
in Seconds
A powerful Chrome and Edge extension for Microsoft Dynamics 365 developers that automatically detects entities and generates FetchXML or C# QueryExpression code with advanced filtering, relationships, aggregates, and query execution.
Still Writing Queries Manually?
Dynamics 365 developers waste countless hours on repetitive query-writing tasks. The manual approach is slow, error-prone, and kills your productivity.
Manually creating FetchXML from scratch
Writing repetitive QueryExpression boilerplate
Searching for relationship schema names
Debugging query syntax errors
Switching between multiple tools
Meet Your New Development Companion
D365 Fetch-Query Builder automates the entire query creation process. Detect entities, configure columns and filters, and get production-ready FetchXML or QueryExpression code instantly — right inside your browser.
Everything You Need
A comprehensive toolkit designed specifically for Dynamics 365 developers, packed with features that accelerate your daily workflow.
Auto Entity Detection
Automatically detects the current Dynamics 365 entity from the active form. No manual entity selection needed — just open the form and start building.
Advanced Filtering
Build complex filter groups with multiple operators including and/or logic, conditions, and nested filter hierarchies for precise data retrieval.
Linked Entities
Automatically discover entity relationships and build joins. Support for N:1, 1:N, and N:N relationships with nested link-entity support.
Aggregate Functions
Full support for COUNT, SUM, AVG, MIN, MAX aggregate functions with Group By capabilities. Build powerful analytical queries effortlessly.
Query Execution
Execute FetchXML queries directly from the extension and preview results in a clean table view. Instantly validate your queries against live data.
Copy To Clipboard
Copy generated FetchXML or QueryExpression code to clipboard with a single click. Paste directly into your C# plugins, workflows, or Power Automate.
CSV Export
Export query execution results directly to CSV format. Share data with stakeholders or import into Excel for further analysis and reporting.
Dark Mode
Beautiful dark and light themes that match your development environment. Seamlessly integrates with your preferred browser and IDE appearance.
Four Simple Steps
From opening a Dynamics 365 form to getting production-ready query code — in seconds.
Open a D365 Form
Navigate to any Dynamics 365 record in your browser. The extension automatically detects the entity.
Select Columns & Filters
Choose the attributes you need, configure filter conditions, and add linked entities from the intuitive UI.
Generate Query
Click generate to instantly produce optimized FetchXML or C# QueryExpression code ready to use.
Copy or Execute
Copy the code to clipboard or execute the FetchXML directly to see results. Export to CSV if needed.
Production-Ready Code
Get clean, well-formatted FetchXML and QueryExpression code that you can directly use in your plugins, workflows, and customizations.
<fetch version="1.0" mapping="logical" top="10">
<entity name="account">
<attribute name="name" />
<attribute name="emailaddress1" />
<attribute name="revenue" />
<link-entity name="primarycontactid"
from="contact" to="primarycontactid">
<attribute name="fullname" />
</link-entity>
<filter type="and">
<condition attribute="revenue"
operator="gt"
value="1000000" />
<condition attribute="statecode"
operator="eq"
value="0" />
</filter>
<order attribute="revenue" descending="true" />
</entity>
</fetch>var query = new QueryExpression("account");
// Columns
query.ColumnSet = new ColumnSet(
"name", "emailaddress1", "revenue");
// Link Entity
var link = query.AddLink(
"contact", "primarycontactid", "primarycontactid");
link.Columns.AddColumn("fullname");
// Conditions
query.Criteria.AddCondition(
"revenue", ConditionOperator.GreaterThan, 1000000);
query.Criteria.AddCondition(
"statecode", ConditionOperator.Equal, 0);
// Order
query.AddOrder("revenue", OrderType.Descending);
// Top Count
query.TopCount = 10;
// Execute
EntityCollection results = service.RetrieveMultiple(query);Enterprise-Grade Capabilities
Every advanced feature a Dynamics 365 developer needs — included out of the box.
Why Developers Love It
Built with modern standards and a deep understanding of what Dynamics 365 developers actually need.
See It In Action
Explore the extension interface across every major feature.
Main Dashboard
The clean, intuitive interface for building queries against any Dynamics 365 entity.
Technical Architecture
Built with Manifest V3 for performance, security, and reliability.
Built By A Dynamics 365 Developer
For Dynamics 365 Developers
Fully open source, community-driven, and built with enterprise security standards. No data collection, no analytics, no tracking — just a great developer tool.
No Data Collection
Your queries and data never leave your browser
Local Processing
All processing happens locally in the extension
Open Source
Full source code available on GitHub
Secure
Manifest V3 with minimal permissions
Frequently Asked Questions
Everything you need to know about the extension.
Stop Writing Queries
The Hard Way
Install D365 Fetch-Query Builder and boost your Dynamics 365 productivity today. Free, open source, and built by a developer who understands your workflow.