Skip to content
Advertisement

Tag: dynamics-365

How to get current user’s business unit in Dynamics 365

How can I get business unit details of the logged-in user with javascript? I tried Xrm.Utility.getGlobalContext().userSettings but I couldn’t get any information for business unit Answer If you write Xrm.Utility.getGlobalContext().userSettings I assume you are working with client-side javascript inside a Model-driven app. From the userSettings you can get the userId property, it returns the GUID of the current user. After

Advertisement