Dynamics 365 Detect Unified Interface from JavaScript

Jared Johnson, 05 June 2018

With the introduction of the new Unified Interface in Dynamics 365, you may want to be able to detect if the current form is being rendered in the Unified Interface or not in JavaScript.

It is possible to do this with an internal function: Xrm.Internal.isUci(). This function will return true if called from within the Unified Interface, and false if not.


Being an internal function, this function is not supported code. However, since a likely reason to want to run this in the first place is due to not wanting some existing unsupported code to run in the Unified Interface (or the opposite with some new unsupported code that targets the Unified Interface…) that’s probably not a deal breaker for using this.