Skip to content

Instantly share code, notes, and snippets.

@emregulcan
Last active October 17, 2018 20:14
Show Gist options
  • Select an option

  • Save emregulcan/d50466e5d1992ee94a547755a9ba1680 to your computer and use it in GitHub Desktop.

Select an option

Save emregulcan/d50466e5d1992ee94a547755a9ba1680 to your computer and use it in GitHub Desktop.
this simple function detects Dynamics 365 current UI is Unified Interface or not
function isUnifiedInterface() {
var globalContext = Xrm.Utility.getGlobalContext();
var applicationUrl = globalContext.getCurrentAppUrl();
var clientUrl = globalContext.getClientUrl();
if (applicationUrl !== clientUrl) {
return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment