I have a javascript which uses OData and Creates a record in PhoneCall entity. I have Subject attribute of this PhoneCall entity which need to be unique. I read about "SuppressDuplicateDetection" parameter in following link - https://msdn.microsoft.com/en-us/library/hh210213.aspx
How can I leverage this parameter inside my OData call?
Here's my javascript code -
var serverUrl = Xrm.Page.context.getServerUrl() + '/XRMServices/2011/OrganiationData.svc/PhoneCallSet'
$.ajax
({
type:"POST",
contentType: "application/json; charset=utf-8",
datatype: "json",
url: serverUrl,
data: phoneCallData,
beforeSend: function(xhr)
{
xhr.setRequestHeader("Accept", "application/json");
},
success: function (data, textSTatus, XmlHttpRequest)
{
//my success LOC
},
error: function (xmlHttpRequest, textSTatus, errorThrown)
{
//error handler
},
async: false
});