Bhubaneswar, Odisha, India
+91-8328865778
support@softchief.com

Get Client URL in JavaScript for Dynamics 365 CE scripts

Get Client URL in JavaScript for Dynamics 365 CE scripts

To get client URL use below script.

var globalContext = Xrm.Utility.getGlobalContext();
globalContext.getClientUrl();

It will return the URL like this https://[org].crm.dynamics.com.

hope this helps.

Follow my blog for more trending topics on Dynamics 365, Azure, C#, Power Portals and Power Platform. For training, Courses and consulting, call to us at +91 832 886 5778 I am working more for community to share skills in Dynamics 365 and Power Platform. Please support me by subscribing my YouTube Channel. My YouTube Channel link is this : https://www.youtube.com/user/sppmaestro