Duplicate Rule Detection Export and publish in CRM Dynamics 2015

I have set up custom duplicate rule detection on some entities’ fields on a DEV CRM 2015 instance. I needed to export the settings to be able to import into other environments.

I used the link Export Duplicate Detection Rules from one organization and import to another organization in CRM 2013 to export the rules. However the CRMDataMigrationUtility.exe SDK tool exports only unpublished duplicate detection rules which I had to do to be able to export the settings.

This means the detection rule has to be published afterwards. Instead of doing it manually, I have written a PowerShell script which can publish a specific rule or all rules for an entity.
The code is below.

After running the script the following message is displayed.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s