add_solution_component
Adds an existing Dataverse component to a visible unmanaged solution after validating its type, dependencies, and current membership; previews changes and requires a plan hash to execute.
Instructions
Default preview of adding one existing component to a visible ordinary unmanaged solution. Validates the actual object/type, current CSDL and complete visible membership/required-dependency baseline. Types: 1 Entity, 2 Attribute, 9 global Option Set, 10 Entity Relationship, 14 Entity Key, 26 Saved Query, 60 System Form, 61 Web Resource, 90–93 plugin types/assemblies/steps/images. Attribute/Key requires logical_name. Fixed AddRequiredComponents=false/DoNotIncludeSubcomponents=true; implicit parent shells may still be added. Execute with planHash plus explicit unprotected Action; reread membership and report observed deltas without claiming export completeness.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Default true; no add Action is sent. | |
| dry_run | No | Default true; no add Action is sent. | |
| componentId | No | Native object/metadata GUID, NOT the solutioncomponent membership row GUID. | |
| logicalName | No | ||
| component_id | No | Native object/metadata GUID, NOT the solutioncomponent membership row GUID. | |
| expectedHash | No | Current preview planHash, required to execute. | |
| logical_name | No | ||
| componentType | No | ||
| expected_hash | No | Current preview planHash, required to execute. | |
| component_type | No | ||
| solutionUniqueName | No | ||
| solution_unique_name | No | ||
| allowUnprotectedWrite | No | Explicitly accept the native Action concurrency window; no atomic solution/dependency lock is claimed. | |
| allow_unprotected_write | No | Explicitly accept the native Action concurrency window; no atomic solution/dependency lock is claimed. |