Sunday, March 6, 2011

Smoke Alarm Kidde Beeps 3 Times

Shoot the duplicate detection rules from SDK

For some features, it is necessary to trigger the detection of duplicates for a specific record.
For this, there is a message from the SDK, which allows you to "shoot" duplicate detection, for a list of possible detectacod records as duplicates.
This message exists for both com CRM 4.0 CRM 2011 and the call would look like this:
 account acct = new account (); 
acct.name = "Microsoft";

RetrieveDuplicatesRequest RetrieveDuplicatesRequest = new Request ();
Request.BusinessEntity = acct;
EntityName.account.ToString Request.MatchingEntityName = ();
PagingInfo Request.PagingInfo = new ();
RetrieveDuplicatesResponse
Response =
(RetrieveDuplicatesResponse) Service.Execute (Request);
Response.DuplicateCollection.BusinessEntities

Then in [] we have identified as potential duplicate records.

Thus, we can make things more complex, such as automatic validation, or checking for duplicates before saving the form, for example.

For more information, see CRM 4.0 SDK: http://msdn.microsoft.com/en-us/library/bb959486.aspx
or CRM SDK 2011: http://msdn.microsoft.com/en-us / library / microsoft.crm.sdk.messages.retrieveduplicatesrequest.aspx

a greeting!

0 comments:

Post a Comment