i have a Problem with CRM and JavaScript. I would like to reference the sharepoint library in a JavaScript file. But it doesn´t work... How can i reference the sharepoint library?
For example:
/// <reference path="C:\sp.js" />
function testFieldChange() {
var serverUrl = Xrm.Page.context.getServerUrl();
ODataPath = serverUrl + "/xrmservices/2011/OrganizationData.svc";
// ... sharepoint code ...
Xrm.Page.getAttribute('test_field').setValue('Test');
}