locked
reference XRMServiceToolKit is undefined from html web resource RRS feed

  • Question

  • Hi ,

    I have been facing a weird problem from last two days refrecing xrmservicetoolkit.

    I have created new JS resource as 

    http://xxxxxx:5555/xxxx/WebResources/csx_XrmServiceUtil.js

    and HTML web resource like this

    http://xxxxx:5555/xxxx/WebResources/csx_searchresults

    

    and referecing serviceutil like this

    <SCRIPT type=text/javascript src="ClientGlobalContext.js.aspx"></SCRIPT>

    <SCRIPT type=text/javascript src="csx_XrmServiceUtil.js"></SCRIPT>

    But when i try to access service util method it says UNDEFINED. 

    var retrievedContacts =parent.XrmServiceToolkit.Soap.Fetch(fetchXml);

    I tried adding

    <SCRIPT type=text/javascript src="../csx_XrmServiceUtil.js"></SCRIPT>

    and

    <SCRIPT type=text/javascript src="/WebResources/csx_XrmServiceUtil.js"></SCRIPT>

    But nothing worked out.When i debug i can see 

    I have no clue that why it is not able to reference. Can any body suggest me on this.

    Thanks in advance,

    Sreeni


    Sreeni Pavalla

    Saturday, January 18, 2014 8:38 AM

All replies

  • Here is the error i am getting while debugging


    Sreeni Pavalla

    Saturday, January 18, 2014 8:39 AM