Syntax error? RRS feed

  • Question

  • I'm trying to use the XrmServiceToolkit's retrieveRecord function and am getting a Syntax error on line 7 of the following code.

    function getMyRecord() {
        var ClientSite = new Array();
        ClientSite = Xrm.Page.getAttribute("new_clientsite").getValue();
        var id = ClientSite[0].id.toString();
        var type = "new_clientsite";
        var select = "new_WebServer";
        var lookupValue = XrmServiceToolkit.Rest.retrieveRecord(id,type,select,null,,,true);

    The XrmToolkit and related js files are above this function on the form's list of functions.

    • Edited by JamesA-CHI Monday, August 27, 2012 12:10 AM altered code, same error
    Sunday, August 26, 2012 8:31 PM


All replies