Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : b9q1H6lGT88kQe+myONzJR

Dynamics 365 Detect Unified Interface from JavaScript

MagnetismXRM Profile Picture MagnetismXRM 6,230

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.

image

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.

Comments

*This post is locked for comments