isOnPremises (Client API reference)
Returns a boolean value indicating if the model-driven apps instance is hosted on-premises or online.
Syntax
var globalContext = Xrm.Utility.getGlobalContext();
globalContext.isOnPremises();
Return Value
Type: Boolean
Description: true if the model-driven apps instance is on-premises; false otherwise.
Related articles
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for