Michael Philip's Blog

Writing about MS Tech with strong focus on Azure & CRM

MS CRM 2011 – Disable Duplicate Detection Save button on Popup

Leave a comment

Brief:   

-By Default, MS CRM allows you to create duplicate detection rule based on a criteria selected by you (name or e mail for example if we are working on the contact entity) .

-If the user tries to enter a duplicate record the CRM will shows a pop up which tells the user that this is a duplicate one but the user still has the ability to click save and save it. !!

-The first solution which jumped to your mind is to detect the duplication at the a plug-in and then prevent the operation but this is a hard solution specially if you will implement it on every entity.

-The Best Work around is to disable the “save”  button at the pop up by the following steps.

Steps :

1. Navigate to your CRM instance on your app server.
2. Navigate to \CRMWeb\Tools\DuplicateDetection\ViewDuplicates\
3. Edit this file in Visual Studio or Notepad.
4. Add this line to the ShowPage() javascript member or any member that is called by onLoad():
document.getElementById(“btn_id_Ok”).disabled=”true”;
5. Save your changes.

Enjoy 🙂 !

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s