Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
![]() |
Retrieves the collection of the child resource groups of the specified resource group (scheduling group).
The relevant classes are specified in the following table.
| Type | Class |
| Request | RetrieveSubGroupsResourceGroupRequest |
| Response | RetrieveSubGroupsResourceGroupResponse |
| Entity | resourcegroup |
Remarks
To perform this action, the caller must have access rights on the resource group (scheduling group) entity instance. For a list of required privileges, see RetrieveSubGroupsResourceGroup Privileges.
Example
The following code example shows how to use the RetrieveSubGroupsResourceGroup message.
[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;
// Create the request.
RetrieveSubGroupsResourceGroupRequest request = new RetrieveSubGroupsResourceGroupRequest();
service sv = new service();
// Create the column set.
ColumnSet colSet = new ColumnSet();
colSet.Attributes = new string[] {"name", "resourcegroupid"};
// Set up the query.
request.Query = new QueryExpression();
request.Query.ColumnSet = colSet;
request.Query.EntityName = EntityName.resourcegroup.ToString();
// ResourceGroupId is the GUID of the resource group.
request.ResourceGroupId = new Guid("2B951FBC-1C56-4430-B23B-20A1349068F3");
// Execute the request.
RetrieveSubGroupsResourceGroupResponse response = (RetrieveSubGroupsResourceGroupResponse)service.Execute(request);
[Visual Basic .NET]
' Set up the CRM Service.
Dim service As New CrmService()
service.Credentials = System.Net.CredentialCache.DefaultCredentials
' Create the column set.
Dim cols As New ColumnSet()
cols.Attributes = New String() {"name", "resourcegroupid"}
' Create the request object.
Dim retrieve As New RetrieveSubGroupsResourceGroupRequest()
' Set the properties of the request object.
retrieve.ColumnSet = cols
' ResourceGroupId is the GUID of the resource group.
retrieve.ResourceGroupId = New Guid("2B951FBC-1C56-4430-B23B-20A1349068F3")
' Execute the request.
Dim retrieved As RetrieveSubGroupsResourceGroupResponse = CType(service.Execute(retrieve), RetrieveSubGroupsResourceGroupResponse)
Related Topics
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in