Tuesday 12 December 2017

How to Check CRM instance is online or OnPremise

Most of the time during the troubleshooting we may need to know whether the instance is online or OnPremise. Based on that we may need to go for different troubleshooting methods. So first we need to identify is it online or premise. Here is the simple JS code which you can run on you browser console to identify

var globalContext = Xrm.Utility.getGlobalContext();
 var instance = globalContext.isOnPremises();
Xrm.Navigation.openAlertDialog({ text: instance });// or you can use simple alert method "alert(instance );"



If the result is False - your instance is Online CRM
If it is True - your instance is CRM is on OnPremise

1 comment: