
I've added following script in HTML webresource of CRM online trial to get global context but it is not working and throws exception. Failed to load resource: the server responded with a status of 404 () .
Any idea to get this done?
<script type="text/javascript" src="ClientGlobalContext.js.aspx"></script>
<script type="text/javascript">
function getLoggedInUserRoles() {
try {
debugger;
var parameters = GetGlobalContext().getQueryStringParameters();
} catch (e) {
alert("Error: "+e.Message);
}
}
</script>
*This post is locked for comments
I have the same question (0)Probably you have folder structure introduced for web resources. Try adding forward slashes to map the right path.
<script src="../ClientGlobalContext.js.aspx" type="text/javascript" ></script>