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

How to solve 'Context is not available' in javascript in crm 2015

$
0
0

Hi, I want to get values from fetchxml using javascript in html web resource.I use crm 2015.The code block is in the attachment on picture. After the fetchxml, i try to get values with soap function. it gives me the error "Error: Contex is not available"I added the xrmservicetoolkit for crm 2015 and jquery and json files. What is the problem? How can ı solve this? Can anyone help me please?

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);


Viewing all articles
Browse latest Browse all 46379

Trending Articles



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