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 


    and HTML web resource like this



    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>


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