You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
varrecord={};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(functionsuccess(response){if(response.ok){console.log("Record created");}}).catch(function(error){console.log(error.message);});
The text was updated successfully, but these errors were encountered:
It should be the equivalent of the MSCRM.SuppressDuplicateDetection header but as you wrote is not documented.
The MSCRM.SuppressDuplicateDetection is already added for the other syntaxes (Fetch, jQuery, XHR) by making the Detect Duplicates option to Yes.
What I can eventually do is to modify the comment // WARNING: Xrm.WebApi doesn't support Detect Duplicates
to indicate that suppressDupeDetection can be used but because is not documented I am not inclined to add it. Can you let me know where you found this option? also by DM. Thanks
Xrm.WebApi.online.execute
supports passing propertysuppressDupeDetection
which enables duplicate detection. It is not documented, but works. Would you be interested in adding this to the DRB?The text was updated successfully, but these errors were encountered: