VantianTech.XrmToolBox.DocumentTemplateDeploymentManager
1.2026.8.14
dotnet add package VantianTech.XrmToolBox.DocumentTemplateDeploymentManager --version 1.2026.8.14
NuGet\Install-Package VantianTech.XrmToolBox.DocumentTemplateDeploymentManager -Version 1.2026.8.14
<PackageReference Include="VantianTech.XrmToolBox.DocumentTemplateDeploymentManager" Version="1.2026.8.14" />
<PackageVersion Include="VantianTech.XrmToolBox.DocumentTemplateDeploymentManager" Version="1.2026.8.14" />
<PackageReference Include="VantianTech.XrmToolBox.DocumentTemplateDeploymentManager" />
paket add VantianTech.XrmToolBox.DocumentTemplateDeploymentManager --version 1.2026.8.14
#r "nuget: VantianTech.XrmToolBox.DocumentTemplateDeploymentManager, 1.2026.8.14"
#:package VantianTech.XrmToolBox.DocumentTemplateDeploymentManager@1.2026.8.14
#addin nuget:?package=VantianTech.XrmToolBox.DocumentTemplateDeploymentManager&version=1.2026.8.14
#tool nuget:?package=VantianTech.XrmToolBox.DocumentTemplateDeploymentManager&version=1.2026.8.14
Document Template Deployment Manager
A cross-platform tool for moving Microsoft Word document templates between Dataverse environments while repairing the environment-specific ObjectTypeCode embedded in DOCX XML bindings. Implementations are available for XrmToolBox and Power Platform ToolBox.
This repository is organized as one product with platform-specific implementations:
src/XrmToolBoxcontains the production XrmToolBox implementation.src/PowerPlatformToolBoxcontains the production Power Platform ToolBox implementation.assetscontains shared product artwork.
Features
- Uses the main XrmToolBox connection as Source.
- Lists Source Word templates with name, created date, modified date, and associated table.
- Sorts the Source template list by any displayed column, with ascending/descending header indicators.
- Supports selecting one or more templates.
- Supports adding and selecting one or more Target connections.
- Updates an exact Target match by name, associated table, and Word document type.
- Creates a Target record only when no match exists.
- Stops safely when duplicate Target matches make the operation ambiguous.
- Rebinds
customXml/item1.xmland everyword/document.xmldata binding to the Target table'sObjectTypeCode. - Downloads and validates the Target content after each create/update.
- Shows a result row for every template/Target combination.
- Copies the complete deployment-results table from its right-click menu (or Ctrl+C), using a formatted HTML table for Outlook/Word and Markdown for chat or plain text.
Build
Requirements:
- Visual Studio 2022 or the .NET SDK with .NET Framework 4.8 targeting support
- NuGet access
dotnet build .\src\XrmToolBox\DocumentTemplateDeploymentManager.csproj --configuration Release
Copy XrmToolBox.DocumentTemplateDeploymentManager.dll from src\XrmToolBox\bin\Release\net48 into the XrmToolBox Plugins folder for local testing.
Or run:
& .\src\XrmToolBox\Install-Local.ps1 -XrmToolBoxDirectory 'C:\Path\To\XrmToolBox'
Power Platform ToolBox
Requirements: Node.js 18 or later.
Set-Location .\src\PowerPlatformToolBox
npm ci
npm test
npm run build
npm run validate
For local testing, enable the Power Platform ToolBox debug menu and load the src/PowerPlatformToolBox directory as a local tool. Select the active connection as Source and the secondary connection as Target.
Power Platform ToolBox package releases are published to npm by .github/workflows/publish-pptb-npm.yml when src/PowerPlatformToolBox/** changes on main. The workflow uses npm trusted publishing and requires the GitHub environment npm plus a matching trusted-publisher policy for @smtjason/document-template-deployment-manager.
Safety behavior
The plugin never deletes templates. A Target operation is either:
Updated: exactly one matching record existed.Created: no matching record existed.Failed: source content, metadata, matching, upload, or post-upload validation failed.
Privacy and test data
Do not commit exported Dataverse records, downloaded customer templates, environment URLs, connection details, credentials, or access tokens. Use synthetic fixtures for public automated tests.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- XrmToolBox (>= 1.2025.10.74)
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.2026.8.14 | 157 | 8/13/2026 |
Initial release: multiple templates, multiple Targets, exact-match update/create, target ObjectTypeCode rebinding, and post-upload validation.