XRM object is globally available.
CRM2016
Xrm.Page
verison 9
ExecutionContext.getFormContext
CRM2016
Xrm.Page.context.getUserId
verison 9
Xrm.Utility.getGlobalContext().userSettings.userId
CRM2016
Xrm.Page.context
verison 9
Xrm.Utility.getGlobalContext
CRM2016
Xrm.Page.context.getUserId
verison 9
Xrm.Utility.getGlobalContext().userSettings.userId
CRM2016
openEntityForm
verison 9
Xrm.Navigation.openForm'
CRM2016
Xrm.Page.context.getUserLcid
verison 9
Xrm.Utility.getGlobalContext().userSetings.languageId