Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

is possibile to disassociate a quote from a quote product?

$
0
0

I have tried to do this:

var url = '/' + Xrm.Page.context.getOrgUniqueName() + "/XRMServices/2011/OrganizationData.svc/QuoteSet(guid'" + parentId + "')/";

   var option = "$links/quote_details(guid'" + childid + "')";

   var oData = url + option;

$.ajax({

       async: false,

       type: "POST",

       contentType: "application/json; charset=utf-8",

       datatype: "json",

       url: oData,

       beforeSend: function (xmlHttpRequest) {

           xmlHttpRequest.setRequestHeader("Accept", "application/json");

           xmlHttpRequest.setRequestHeader("X-HTTP-Method", "DELETE");

       },

       success: function (data, textStatus, r) {

           alert("success");

       },

       error: function (r, textStatus, errorThrown) {

           alert("Error: " + r.responseXML.text);

       }

   });

but I have this error

"Attribute: quoteid cannot be set to NULL"


Viewing all articles
Browse latest Browse all 82002

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>