Share via


RetrieveSubsidiaryTeamsBusinessUnit Message

banner art

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

The relevant classes are specified in the following table.

Type Class
Request RetrieveSubsidiaryTeamsBusinessUnitRequest
Response RetrieveSubsidiaryTeamsBusinessUnitResponse
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 RetrieveSubsidiaryTeamsBusinessUnit Privileges.

Example

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

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

// Create the request object.
RetrieveSubsidiaryTeamsBusinessUnitRequest retrieve = new RetrieveSubsidiaryTeamsBusinessUnitRequest();

// Set the properties of the request object.
retrieve.ColumnSet = new AllColumns();

//The Business Unit whose subsidiary teams are being retrieved.
retrieve.EntityId = new Guid("18ECA720-493E-4800-BBFD-638BD54EB325");

// Execute the request.
RetrieveSubsidiaryTeamsBusinessUnitResponse retrieved = (RetrieveSubsidiaryTeamsBusinessUnitResponse)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 object.
Dim retrieve As New RetrieveSubsidiaryTeamsBusinessUnitRequest()

' Set the properties of the request object.
retrieve.ColumnSet = New AllColumns()

'The Business Unit whose subsidiary teams are being retrieved.
retrieve.EntityId = new Guid("18ECA720-493E-4800-BBFD-638BD54EB325");

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

Related Topics

CrmService Messages

© 2007 Microsoft Corporation. All rights reserved.