DocumentTemplateXRay 1.2.17
dotnet add package DocumentTemplateXRay --version 1.2.17
NuGet\Install-Package DocumentTemplateXRay -Version 1.2.17
<PackageReference Include="DocumentTemplateXRay" Version="1.2.17" />
<PackageVersion Include="DocumentTemplateXRay" Version="1.2.17" />
<PackageReference Include="DocumentTemplateXRay" />
paket add DocumentTemplateXRay --version 1.2.17
#r "nuget: DocumentTemplateXRay, 1.2.17"
#:package DocumentTemplateXRay@1.2.17
#addin nuget:?package=DocumentTemplateXRay&version=1.2.17
#tool nuget:?package=DocumentTemplateXRay&version=1.2.17
Document Template X-Ray
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
.docxtemplate from disk - Drag & drop — drop
.docxfiles 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
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- XrmToolBox (>= 1.2025.7.71)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
v1.2.17 - Add XrmToolBox plugin link to README.