How To : Get Business Unit & Organization Id's of a Calling User in Microsoft Dynamics CRM 2011 in .NET With WhoAmIRequest

The following code will show you how to getĀ Business Unit & Organization Id's of a Calling UserĀ in Microsoft Dynamics CRM 2011 in .NET With "WhoAmIRequest."

Code:

WhoAmIRequest Request = new WhoAmIRequest();
WhoAmIResponse Response= (WhoAmIResponse)_serviceProxy.Execute(Request);

Image