DefinitelyTyped/xrm/clientglobalcontext.d.ts
David Berry 053b2838a1 Added Xrm API for TypeScript
Microsoft Dynamics CRM v6, v7.0, and v7.1 definitions inclusive.
2015-04-07 10:02:25 -06:00

14 lines
697 B
TypeScript

// Type definitions for Microsoft Dynamics xRM ClientGlobalContext.js.aspx
// Project: http://msdn.microsoft.com/en-us/library/gg328255.aspx
// Definitions by: David Berry <https://github.com/6ix4our/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="xrm.d.ts" />
/**
* Gets the xRM application context, for HTML web resources
* @returns {Xrm.Context} The application context for the user's current session.
* @remarks The ClientGlobalContext.js.aspx page will include some global event handlers. These event handlers will
* cancel the onselectstart, contextmenu, and ondragstart events.
*/
declare function GetGlobalContext(): Xrm.Context;