top of page

CRM 2015 – Javascript – GetGlobalContext function and ClientGlobalContext.js.aspx




You can use the GetGlobalContext function when programming with web resources to gain access to context information. To have the function in your HTML web resource, include a reference to the file ClientGlobalContext.js.aspx. The GetGlobalContext function returns the same context object found in the Xrm.Page.context. An example from the MSDN below: <head> <title>HTML Web Resource</title> <script src="../ClientGlobalContext.js.aspx" type="text/javascript" ></script> <script src="Scripts/ContosoScript.js" type="text/javascript"></script> <link href="Styles/ContosoStyles.css" rel="stylesheet" type="text/css" /> </head>

More information please go to the url: https://msdn.microsoft.com/en-us/library/gg328541.aspx


3 views0 comments

Recent Posts

See All
bottom of page