Free & Open Source Chrome & Edge Extension

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.

Auto Entity DetectionFetchXML GenerationQueryExpression GenerationAggregate FunctionsQuery ExecutionDark Mode
https://yourorg.crm.dynamics.com/main.aspx
D365 Fetch-Query Builderv1.0.6
Entity Name
accountAccount Entity
Query Options
Top N Records
5000
Add Condition
Add Group
Generate FetchXML
The Problem

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.

Features

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.

Workflow

Four Simple Steps

From opening a Dynamics 365 form to getting production-ready query code — in seconds.

01

Open a D365 Form

Navigate to any Dynamics 365 record in your browser. The extension automatically detects the entity.

02

Select Columns & Filters

Choose the attributes you need, configure filter conditions, and add linked entities from the intuitive UI.

03

Generate Query

Click generate to instantly produce optimized FetchXML or C# QueryExpression code ready to use.

04

Copy or Execute

Copy the code to clipboard or execute the FetchXML directly to see results. Export to CSV if needed.

Code Showcase

Production-Ready Code

Get clean, well-formatted FetchXML and QueryExpression code that you can directly use in your plugins, workflows, and customizations.

FetchXML
<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>
QueryExpression (C#)
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);
Advanced

Enterprise-Grade Capabilities

Every advanced feature a Dynamics 365 developer needs — included out of the box.

FeatureStatusDetails
Nested Link EntitiesSupportedUnlimited depth
Dynamic Relationship DiscoverySupportedAuto-detect N:1, 1:N, N:N
Aggregate QueriesSupportedCOUNT, SUM, AVG, MIN, MAX
Date GroupingSupportedDay, Week, Month, Year
Multi-Level FiltersSupportedAnd/Or nested logic
Top N RecordsSupportedConfigurable limit
Distinct QueriesSupportedEliminate duplicates
CSV ExportSupportedOne-click download
Query ExecutionSupportedLive D365 data
Metadata CachingSupportedFast schema lookups

Why Developers Love It

Built with modern standards and a deep understanding of what Dynamics 365 developers actually need.

0%
Free
0%
Open Source
0
Manifest V3
0%
Modern Architecture
0%
Real D365 Metadata

See It In Action

Explore the extension interface across every major feature.

D365 Fetch-Query Builder — Main Dashboard

Main Dashboard

The clean, intuitive interface for building queries against any Dynamics 365 entity.

Chrome & Edge Extension

Technical Architecture

Built with Manifest V3 for performance, security, and reliability.

Dynamics 365 FormSource
Content Script
Background Service Worker
Popup UI
FetchXML / QueryExpression Generator
Execution EngineOutput

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.