Last active
October 17, 2018 20:14
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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