Query Dynamics CRM Through JavaScript
…= Xrm.Page.context.getClientUrl() + “/XRMServices/2011/OrganizationData.svc/LeadSet(guid'” + Id + “‘)”; var req = new XMLHttpRequest(); req.open(“GET”, url, false); req.setRequestHeader(“Accept”, “application/json”); req.setRequestHeader(“Content-Type”, “application/json; charset=utf-8”); req.send(); if (req.readyState == 4 /* complete */) {…