title: CRM 2011 - Duplicate Detection while saving using javascript
body: <p>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 -
  <a href="https://msdn.microsoft.com/en-us/library/hh210213.aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/hh210213.aspx</a></p>
  
  <p>How can I leverage this parameter inside my OData call?</p>
  
  <p>Here's my javascript code -</p>
  
  <pre><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
  });
  </code></pre>