DocumentTemplateXRay 1.2.17

dotnet add package DocumentTemplateXRay --version 1.2.17
                    
NuGet\Install-Package DocumentTemplateXRay -Version 1.2.17
                    
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="DocumentTemplateXRay" Version="1.2.17" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DocumentTemplateXRay" Version="1.2.17" />
                    
Directory.Packages.props
<PackageReference Include="DocumentTemplateXRay" />
                    
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 DocumentTemplateXRay --version 1.2.17
                    
#r "nuget: DocumentTemplateXRay, 1.2.17"
                    
#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 DocumentTemplateXRay@1.2.17
                    
#: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=DocumentTemplateXRay&version=1.2.17
                    
Install as a Cake Addin
#tool nuget:?package=DocumentTemplateXRay&version=1.2.17
                    
Install as a Cake Tool

Document Template X-Ray

NuGet XrmToolBox

An XrmToolBox tool that extracts and displays all Dynamics 365 field references from Word (.docx) document templates.

When you build Word templates for Dynamics 365, it's easy to lose track of which entity fields, relationships, and repeating sections are actually used. Document Template X-Ray reads the underlying XML content controls and presents every field in a clear flat list or tree view — no need to click through the template one control at a time.

Features

  • Fetch templates from Dynamics 365 — connects via XrmToolBox and lists all Word document templates in your environment
  • Browse local files — open any .docx template from disk
  • Drag & drop — drop .docx files directly onto the tool
  • Flat list view — shows every field reference with table, column, tag, alias, repeating section, and location (document body / header / footer)
  • Tree view — groups fields by their entity/relationship path for a structural overview
  • Display name resolution — resolves logical names to display names using Dataverse metadata (when connected)
  • Repeating section detection — identifies and highlights repeating sections and their child fields

How It Works

Word document templates for Dynamics 365 store field bindings as structured document tags (content controls) in the underlying XML. Each content control has a w:dataBinding element with an XPath like:

/ns0:DocumentTemplate[1]/account[1]/name[1]

The plugin opens the .docx as a ZIP archive, reads word/document.xml and any header*.xml / footer*.xml parts, then extracts these XPath bindings and converts them into readable field paths like account/name.

When connected to Dynamics 365, it also fetches entity metadata to resolve logical names (e.g., account/name) to display names (e.g., Account / Account Name).

License

MIT

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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.2.17 114 4/13/2026
1.2.16 202 4/12/2026
1.2.15 99 4/12/2026
1.2.14 106 4/12/2026

v1.2.17 - Add XrmToolBox plugin link to README.