Skip to content

Commit 2ba0b3e

Browse files
authored
Merge pull request #2870 from Sarthak-Agrawal/clarify-addsolutioncomponent-componenttype
Clarify ComponentType guidance for solution components
2 parents c3d702b + 8722a1c commit 2ba0b3e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

power-platform/alm/solution-api.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Work with solutions using the Dataverse SDK with Power Platform"
33
description: "Learn about the .NET APIs that are available to manage Microsoft Dataverse solutions with Power Platform."
44
author: marcelbf
55
ms.author: marcelbf
6-
ms.date: 06/30/2025
6+
ms.date: 05/15/2026
77
ms.reviewer: pehecke
88
ms.topic: how-to
99
search.audienceType:
@@ -301,7 +301,7 @@ _serviceProxy.Execute(createOptionSetRequest);
301301
This sample shows how to add an existing solution component to a solution.
302302

303303
The following code uses the <xref:Microsoft.Crm.Sdk.Messages.AddSolutionComponentRequest> to add the `Account` table as a solution component to an unmanaged solution.
304-
304+
305305
```csharp
306306
// Add an existing Solution Component
307307
// Add the Account entity to the solution
@@ -319,6 +319,8 @@ AddSolutionComponentRequest addReq = new AddSolutionComponentRequest()
319319
_serviceProxy.Execute(addReq);
320320
```
321321

322+
Use <xref:Microsoft.Crm.Sdk.Messages.AddSolutionComponentRequest> only when you know the correct `ComponentType` integer value for the component you want to add. Most common component types are defined in the `componenttype` global choice, which is used by the [SolutionComponent.ComponentType choice column](/power-apps/developer/data-platform/reference/entities/solutioncomponent#componenttype-choicesoptions), but some newer component types might not be listed there. When possible, create or update the component in the context of the target solution by using a `SolutionUniqueName` property or the `SolutionUniqueName` optional parameter. More information: [Associate a solution component with a solution using an optional parameter](/power-apps/developer/data-platform/optional-parameters#associate-a-solution-component-with-a-solution).
323+
322324
### Remove a solution component
323325

324326
This sample shows how to remove a solution component from an unmanaged solution. The following code uses the <xref:Microsoft.Crm.Sdk.Messages.RemoveSolutionComponentRequest> to remove a table solution component from an unmanaged solution. The `solution.UniqueName` references the solution created in [Create an unmanaged solution](#create-an-unmanaged-solution).

0 commit comments

Comments
 (0)