Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RetrieveSubsidiaryUsersBusinessUnit Message

CRM 1.2
banner art

Retrieves all user information from the child business units of the specified business unit.

The relevant classes are specified in the following table.

Type Class
Request RetrieveSubsidiaryUsersBusinessUnitRequest
Response RetrieveSubsidiaryUsersBusinessUnitResponse
Entity businessunit

Remarks

To perform this action, the caller must have access rights on the business unit entity instance. For a list of required privileges, see RetrieveSubsidiaryUsersBusinessUnit Privileges.

Example

The following code example demonstrates how to use the RetrieveSubsidiaryUsersBusinessUnit message.

[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create the request.
RetrieveSubsidiaryUsersBusinessUnitRequest retrieve = new RetrieveSubsidiaryUsersBusinessUnitRequest();
retrieve.EntityId = new Guid("18ECA720-493E-4800-BBFD-638BD54EB325");
retrieve.ReturnDynamicEntities = true;

// Execute the request.
RetrieveSubsidiaryUsersBusinessUnitResponse retrieved = (RetrieveSubsidiaryUsersBusinessUnitResponse) service.Execute(retrieve);
[Visual Basic .NET]
' Set up the CRM Service.
Dim service As New CrmService()
service.Credentials = System.Net.CredentialCache.DefaultCredentials

' Create the request.
Dim retrieve As New RetrieveSubsidiaryUsersBusinessUnitRequest()
retrieve.EntityId = new Guid("18ECA720-493E-4800-BBFD-638BD54EB325");
retrieve.ReturnDynamicEntities = True

' Execute the request.
Dim retrieved As RetrieveSubsidiaryUsersBusinessUnitResponse = CType(service.Execute(retrieve), RetrieveSubsidiaryUsersBusinessUnitResponse)

Related Topics

CrmService Messages


© 2007 Microsoft Corporation. All rights reserved.


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.