Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Updated Java Scripts

$
0
0

Hi Community,

i am trying with updated java scripts

i want to get the user name with below code

function test(executionContext)
{
var GlobalContext= executionContext.getGlobalContext();
var name = Xrm.Utility.GlobalContext.userSettings.userName();
alert(name);
}

But, i am not able to get the username and got the error like

TypeError: executionContext.getGlobalContext is not a function at test 

Thanks in Advance


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>