MKU.XrmToolBox.AdvancedFieldUsageAnalyzer 1.0.2

dotnet add package MKU.XrmToolBox.AdvancedFieldUsageAnalyzer --version 1.0.2
                    
NuGet\Install-Package MKU.XrmToolBox.AdvancedFieldUsageAnalyzer -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MKU.XrmToolBox.AdvancedFieldUsageAnalyzer" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MKU.XrmToolBox.AdvancedFieldUsageAnalyzer" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="MKU.XrmToolBox.AdvancedFieldUsageAnalyzer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MKU.XrmToolBox.AdvancedFieldUsageAnalyzer --version 1.0.2
                    
#r "nuget: MKU.XrmToolBox.AdvancedFieldUsageAnalyzer, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MKU.XrmToolBox.AdvancedFieldUsageAnalyzer@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MKU.XrmToolBox.AdvancedFieldUsageAnalyzer&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=MKU.XrmToolBox.AdvancedFieldUsageAnalyzer&version=1.0.2
                    
Install as a Cake Tool

README

Field Usage Analyzer for XrmToolBox

Field Usage Analyzer helps Dataverse / Dynamics 365 developers identify unused, risky, and underutilized fields by analyzing where each field is actually used across the system. This tool is designed to support: • solution cleanup • performance optimization • technical debt reduction • safe refactoring

🚀 Features

✔ Analyze field usage across: • Forms • Views • Business Rules • Classic Workflows ✔ Advanced metadata insights: • Field type (friendly names) • Custom vs system fields • Publisher prefix • Required fields • Advanced Find eligibility ✔ Powerful filtering: • Custom fields only • One or more publisher prefixes • Entity-level analysis ✔ Evidence-based results: • Usage counts, not just yes/no flags • Derived usage indicators for accuracy ✔ Export-ready: • Clean grid structure • Excel-friendly output

🧠 How It Works

Loads entity metadata safely using RetrieveEntityRequest Filters attributes based on: o read availability o supported attribute types o user-selected options Scans: o Form XML o FetchXML (views) o XAML (business rules & workflows) Uses regex-safe detection to avoid false positives Aggregates usage counts and derives usage flags 🖥 UI Overview

Inputs • Entity selector • Prefix filter (comma-separated) • Analyze button • Export to CSV button

Output Grid Each row represents one field with: • Display Name • Logical Name • Schema Name • Data Type • Used In Forms • Used In Views • Has Data • Used In Business Rules • Used In Workflows • Is Custom • Prefix • Is Required • Is Advanced Find Enabled • Is Audited • Is Secured • Risk Level • Risk Reason

⚠️ Limitations

• Power Automate (Flows) are not analyzed due to platform limitations • Advanced Find usage is not tracked (only eligibility) • Calculated & virtual fields may appear as not used These limitations are documented intentionally for transparency.

🧪 Tested On

• Dataverse (online) • Dynamics 365 CE • Entities with 100+ fields • Large environments with multiple solutions

🤝 Contributing

Contributions are welcome: • Performance improvements • Additional usage sources • UI enhancements • Bug fixes

📜 License

MIT License

🙌 Credits

Built with ❤️ for the Dataverse & XrmToolBox community.

Product Compatible and additional computed target framework versions.
.NET Framework net481 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 199 1/25/2026

New tool to produce a single, trustworthy report.