0
我想從html網頁資源中使用javascript獲得fetchxml
的值。我使用crm 2015.代碼塊位於picture的附件中。Crm 2015 Javascript上下文沒有從fetchxml中定義
在fetchxml之後,我嘗試使用soap函數獲取值。 它給我的錯誤
Error: Contex is not available
我加入了xrmservicetoolkit
對CRM 2015和jQuery和JSON文件。問題是什麼?我該如何解決這個問題?任何人都可以幫助我嗎?
var fetch = "<fetch version='1.0' mapping='logical'><entity name='quote'>";
fetch += "<all-attributes />";
fetch += "<filter type='and'>";
fetch += "<condition attribute='new_anabayi' operator='eq' value='" + id + "' />";
fetch += "<condition attribute='statuscode' operator='eq' value='1' />";
fetch += "<condition attribute='customertypecode' operator='eq' value='7' />";
fetch += "</filter></entity></fetch>";
var fetchData = XrmServiceToolkit.Soap.Fetch(fetch);
請將您的代碼添加爲*文本*,而不是屏幕截圖 –
請參閱[問]和[mcve]。 – Mat