Notifications
Announcements
No record found.
Hi,
We need check the js code run on UCI or not. Please help me a supported js code for check.
Thanks,
*This post is locked for comments
I've had the same problem and I opted to use the follow script
var globalContext = Xrm.Utility.getGlobalContext();globalContext.getCurrentAppProperties().then(successCallback, errorCallback);
I dont know if it is a correct way, but i works for me.
Saludos
We are using the below snippet to identify is it UCI or not.
function isUCI(){ var globalContext = Xrm.Utility.getGlobalContext(); var t1 = globalContext.getCurrentAppUrl(); var t2 = globalContext.getClientUrl(); if (t1 !== t2) return true; return false; }
Hello,
It's a bit unsupported but works fine and used with Microsoft - Xrm.Internal.isUci() when executed from Classic UI returns false and true when executed from UCI.
Xrm.Internal.isUci() do the job for me. Ty Andrew Butenko !
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2