Wednesday, December 28, 2011

Determine the User, Business Unit, and Organization Id's of a Calling User in Microsoft Dynamics CRM 2011 in VB .NET With WhoAmIRequest

Since it's the holidays we won't cover anything too difficult today. :)  BUT... this is leading up to something much greater in the near future so stay tuned.

This illustration shows how to determine the user, business unit, and organization id's of a calling user in Microsoft Dynamics CRM 2011 with WhoAmIRequest.  This example will be given in VB.NET

Ok, here is what the code looks like!

In VB.NET

Dim req As New WhoAmIRequest()
Dim resp As WhoAmIResponse = DirectCast(slos.Execute(req), WhoAmIResponse)


Thats all there is to it!
-

No comments:

Post a Comment