Xrm.WebApi.online.execute supports passing property suppressDupeDetection which enables duplicate detection. It is not documented, but works. Would you be interested in adding this to the DRB?
var record = {};
record.name = "T"; // Text var createRequest = {
etn: "account",
payload: record,
suppressDupeDetection: false,
getMetadata: function () { return { boundParameter: null, parameterTypes: {}, operationType: 2, operationName: "Create" }; }
}; Xrm.WebApi.online.execute(createRequest).then(
function success(response) {
if (response.ok) {
console.log("Record created");
}
}
).catch(function (error) {
console.log(error.message);
});
Xrm.WebApi.online.executesupports passing propertysuppressDupeDetectionwhich enables duplicate detection. It is not documented, but works. Would you be interested in adding this to the DRB?