BulkPrefixSuffixFieldsName 2.0.0
dotnet add package BulkPrefixSuffixFieldsName --version 2.0.0
NuGet\Install-Package BulkPrefixSuffixFieldsName -Version 2.0.0
<PackageReference Include="BulkPrefixSuffixFieldsName" Version="2.0.0" />
<PackageVersion Include="BulkPrefixSuffixFieldsName" Version="2.0.0" />
<PackageReference Include="BulkPrefixSuffixFieldsName" />
paket add BulkPrefixSuffixFieldsName --version 2.0.0
#r "nuget: BulkPrefixSuffixFieldsName, 2.0.0"
#:package BulkPrefixSuffixFieldsName@2.0.0
#addin nuget:?package=BulkPrefixSuffixFieldsName&version=2.0.0
#tool nuget:?package=BulkPrefixSuffixFieldsName&version=2.0.0
Bulk Prefix/Suffix Fields Name (XrmToolBox plugin)
Prepare the deletion of deprecated Dynamics 365 / Dataverse fields: tag them in bulk with a prefix or a suffix on their display name (for example ZZ_ or [Deprecated]), then clean them up everywhere they are used — forms, views, charts, plug-in steps, mappings, duplicate rules, field security — after a review of every impact.
Usage
- Click Load Tables, then click a table (or select it and press Enter) to list its renamable fields. Reload Fields refreshes the list.
- Select fields (Ctrl/Shift + click for several) and click Add selected (or press Enter / double-click). Add all listed adds every field matching the search.
- In Selected fields: Remove (Delete key or double-click) and Clear manage the selection; the Usage button in front of a field shows everywhere it is used.
- In the Rename card, choose Prefix / Suffix, Add / Remove and the Text. The New Display Name column shows the preview.
- Optionally switch on Options to apply the clean up actions configured with Options in the toolbar.
- Export to CSV saves the current labels (all languages), then Apply: a review window lists every impact; nothing changes until you confirm. The Result card shows the status of each operation.
Options
| Tab | Option | What it does |
|---|---|---|
| Clean up | Remove from forms / Hide on forms instead | Removes (or hides) the field on every form of the table: main, Quick Create, Quick View, card, header. Scripts are kept. |
| Clean up | Remove from views | Removes the column, the sort and the Quick Find search column from system views. Filters are kept. |
| Clean up | Remove from charts | Removes the field from system charts, unless it is an axis, a series or a filter. |
| Clean up | Remove from plug-in steps | Removes the field from the filtering attributes and Pre/Post images, unless it is the only attribute. |
| Clean up | Remove from mappings / duplicate rules / field security | Deletes the relationship mappings, the duplicate detection conditions (rule published again, or unpublished if it was its only condition) and the field permissions. |
| Clean up | Make the field optional, Remove from Advanced Find, Disable auditing | Field properties. |
| Clean up | Add a deprecation note | Adds a dated note ({date}) before the description, in every language. |
| Safety | Automatic backup | Saves field labels, forms, views, charts, plug-in steps and images of the table in a timestamped folder before any change. If the backup fails, nothing is changed. |
| Safety | Skip managed components, Publish automatically, Dry run | Avoid unmanaged layers, publish at the end or not, only show the report. |
| Safety | Add to solution | Adds the changed components to an unmanaged solution. |
| Analysis | Show data usage | Number of records holding a value and date of the most recent one, in the header of the review window. |
The review window
Every place the fields are used, sorted by priority:
- High: calculated / rollup fields, alternate keys, relationships, mappings, plug-in steps, business rules, workflows, actions, business process flows, cloud flows, form scripts.
- Medium: forms, views, charts, duplicate detection rules, field security profiles, e-mail templates.
- Low: personal views and charts, field properties.
Each line says whether it will change or is kept (option off, managed component, primary name field, review manually) and why. Export report saves the list as CSV.
Things to know
- Only renamable fields are listed. Changes are published at the end unless Publish automatically is off.
- Processes, flows, scripts and templates are found by searching the field name in their definition: review them manually. Personal views and charts are reported, not changed.
- Data usage is not counted above 50,000 records (Dataverse aggregate limit).
- The connected user needs the System Customizer privileges on the table, forms, views and plug-in steps.
Project layout
| Folder | Content |
|---|---|
Prefix-Suffix Fields Name/Manager |
Engine: fields, rename, impact analysis and clean up (UsageManager), backup. |
Prefix-Suffix Fields Name/UI |
Fluent theme, controls, option tiles, Options and review dialogs. |
Prefix-Suffix Fields Name/MyPlugin.cs, MyPluginControl.cs (+ designer) |
XrmToolBox plugin and its screen. |
Build
Open Bulk Prefix-Suffix Attribues Name.sln in Visual Studio and build, or:
msbuild "Bulk Prefix-Suffix Attribues Name.sln" /restore /p:Configuration=Release
Install in XrmToolBox
Install it from the Tool Library, or copy Prefix-Suffix Fields Name\bin\Release\BulkPrefixSuffixFieldsName.dll to %APPDATA%\MscrmTools\XrmToolBox\Plugins, restart XrmToolBox and open Bulk Prefix/Suffix Fields Name. A connection to an environment is required.
Learn more about Target Frameworks and .NET Standard.
-
- XrmToolBox (>= 1.2020.12.43)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
2.0.0 - Complete redesign
- New Fluent interface shared with the author's other tools: cards, search boxes, Prefix/Suffix and Add/Remove chips, live preview of the new display names.
- Click a table to list its fields; multi-select, Add selected / Add all listed, Remove / Clear, keyboard shortcuts (Enter, Delete).
- Every translation of the display name is updated (other languages are no longer erased); case-insensitive comparison; no double prefix.
- The table is published automatically (optional) and every operation reports its own status and Dataverse error message.
- Options dialog: remove the fields from forms (or hide them), views, charts, plug-in steps and images, relationship mappings, duplicate detection rules and field security profiles; make them optional; remove them from Advanced Find; disable auditing; add a dated deprecation note. Presets: Recommended / All / None.
- Review window before any change: every place the fields are used, sorted by priority (High / Medium / Low), with what will change, what is kept and why; data usage of the fields in the header.
- Usage button in front of each selected field to see where it is used.
- Safety: automatic backup before apply, skip managed components, dry run, optional publish, add the changed components to a solution.
- CSV export of the current labels (all languages) and of the impact report.
- Fixes: crashes after an error, cross-thread access, duplicate selections, search with special characters, batches of more than 1,000 fields.
- Plugin assembly renamed BulkPrefixSuffixFieldsName.dll (no spaces), as expected by the XrmToolBox Tool Library.
1.1.0 - Set the selected fields non searchable.
1.0.0 - First release: prefix or suffix the display name of the selected fields.