Suppress Duplicate detection on update RRS feed

  • Question

  • I tried the below code on update of an entity. The code executes without any problem, but it does not suppress the duplicate detection. 

    pdateRequest reqUpdate = new UpdateRequest();
                    reqUpdate.Target = ctx.Context.InputParameters["Target"] as Entity;
                    reqUpdate.Parameters.Add("SuppressDuplicateDetection", true);
                    reqUpdate.Parameters.Add("CalculateMatchCodeSynchronously", true);
                    UpdateResponse createResponse = (UpdateResponse)service.Execute(reqUpdate);

                    if (ctx.Context.InputParameters.Contains("SuppressDuplicateDetection"))
                        ctx.Context.InputParameters["SuppressDuplicateDetection"] = true;
                        ctx.Context.InputParameters["CalculateMatchCodeSynchronously"] = true;
                        ctx.Context.InputParameters.Add("SuppressDuplicateDetection", true);
                        ctx.Context.InputParameters["CalculateMatchCodeSynchronously"] = true;
    The above two methods do not supress the duplicate detection. Any help? 


    Monday, December 5, 2016 5:20 PM

All replies