Wednesday, March 7, 2012

How to use “ClientGlobalContext.js.aspx”


When you work with HTML web resources, There might be situations where you need data about the CRM. “ClientGlobalContext.js.aspx”  gives  the  Context information out side of the CRM FORM so if you are not giving your clientGlobalContext.js.aspx file path in you webresource  according to how you are hosting your web resource.So if the path you are given is incorrect then it will be throwing error like this  "Failed to Invoke: GetGlobalContext." or in html page it will show like the following image

So you have to give you javascript correctly like the below code

 type="text/javascript" src="../../ClientGlobalContext.js.aspx"


Here is a Link which will explain you how to give the clientGlobalContext.js.aspx path according to the webresource  created in your CRM

No comments:

Post a Comment