Dynamics365.MergeTool 1.0.3

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

Record Merge Tool for Dynamics 365

NuGet Downloads NuGet Version GitHub Repo stars License GitHub issues

🚀 A powerful tool to manage merging records in Dynamics 365.

Overview

The Record Merge Tool is a comprehensive plugin for XrmToolBox designed to facilitate the merging of out-of-the-box and custom entity records in Dynamics 365. This tool allows users to load entities, validate records from an Excel file, and merge records efficiently while providing detailed progress and error reporting.

Features

  • Load Entities: Load all entities from the connected Dynamics 365 organization.
  • Search Entities: Filter entities by name or logical name.
  • Load Excel File: Load records from an Excel file for validation and merging.
  • Validate Records: Validate the existence of records in Dynamics 365.
  • Merge Records: Merge records based on the validated data.
  • Error Reporting: Generate detailed error reports for invalid records.

Prerequisites

  • Visual Studio 2022
  • .NET Framework 4.8
  • XrmToolBox
  • Dynamics 365 SDK

Installation

  1. Clone the repository to your local machine.
  2. Open the solution in Visual Studio 2022.
  3. Build the solution to restore the necessary NuGet packages.
  4. Deploy the plugin to XrmToolBox.

Usage

Loading Entities

  1. Connect to your Dynamics 365 organization using XrmToolBox.
  2. Click on the "Load Entities" button to load all entities from the organization.
  3. Use the search box to filter entities by name or logical name.

Loading and Validating Excel File

  1. Click on the "Load Excel" button to select an Excel file containing the records to be merged.
  2. Click on the "Validate Excel" button to validate the records in the Excel file.
  3. The tool will check the existence of the records in Dynamics 365 and display the validation status.

Merging Records

  1. Ensure that the records in the Excel file are validated and marked as "Valid".
  2. Click on the "Merge" button to start the merge process.
  3. The tool will merge the records and provide progress updates.
  4. After the merge process is complete, an error report can be generated if there are any invalid records.

Error Reporting

  1. If there are any invalid records, the tool will prompt you to save an error report.
  2. The error report will contain details of the invalid records and the corresponding error messages.

Code Structure

MyPlugin.cs

This file contains the main plugin class MyPlugin which inherits from PluginBase. It includes metadata attributes for the plugin and handles the assembly resolution for external dependencies.

MyPluginControl.cs

This file contains the main control class MyPluginControl which inherits from PluginControlBase. It includes methods for loading entities, validating records, merging records, and generating error reports.

Merge.cs

This file contains the MergeRequest class which handles the merging of records. It includes methods for retrieving entity metadata, merging one-to-many and many-to-many relationships, and merging fields.

Settings.cs

This file contains the Settings class which is used to store settings for the plugin. It includes properties for storing the last used organization web app URL.

Contributing

Contributions are welcome! Please fork the repository and submit pull requests for any enhancements or bug fixes.

License

This project is licensed under the GPL License. See the LICENSE file for details.

Contact

For any questions or feedback, please contact me at Reza Khaleghi.


Thank you for using the Record Merge Tool for Dynamics 365!

Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in 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.0.3 952 4/6/2025
1.0.2 247 3/30/2025
1.0.1 602 1/10/2025
1.0.0 152 1/4/2025

Fixing dependency errors.