external help file | Module Name | online version | schema |
---|---|---|---|
AMSoftware.Crm.PowerShell.Commands.dll-Help.xml |
AMSoftware.Crm |
2.0.0 |
Validate a component in a solution.
Test-CrmSolutionComponent [[-SolutionComponent] <Entity>] [-Delete] [<CommonParameters>]
Test-CrmSolutionComponent [[-SolutionComponent] <Entity>] [-Dependencies] [<CommonParameters>]
Test-CrmSolutionComponent [[-SolutionComponent] <Entity>] [-Required] [<CommonParameters>]
Test-CrmSolutionComponent [[-ObjectId] <Guid>] [[-ComponentType] <Int32>] [-Delete] [<CommonParameters>]
Test-CrmSolutionComponent [[-ObjectId] <Guid>] [[-ComponentType] <Int32>] [-Dependencies] [<CommonParameters>]
Test-CrmSolutionComponent [[-ObjectId] <Guid>] [[-ComponentType] <Int32>] [-Required] [<CommonParameters>]
Validate a component in a solution.
The following validations can be applied:
-- Retrieve a collection of dependency records that describe any solution components that would prevent a solution component from being deleted.
-- Retrieves a list dependencies for solution components that directly depend on a solution component.
-- Retrieve a collection of solution components that are required for a solution component.
The type of component to test. Matches a value from the global optionset 'Component Type'(componenttype).
Type: System.Int32
Parameter Sets: TestDeleteSolutionComponent, TestDependenciesSolutionComponent, TestRequiredSolutionComponent
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Retrieve a collection of dependency records that describe any solution components that would prevent a solution component from being deleted.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: TestDeleteSolutionComponentEntity, TestDeleteSolutionComponent
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Retrieves a list dependencies for solution components that directly depend on a solution component.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: TestDependenciesSolutionComponentEntity, TestDependenciesSolutionComponent
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The id of the object in the solution to test.
This depends on the type of object represented by the solution copmponent. From metadata items the id is the Metadata Id, for other items it is the id of the record.
Type: System.Guid
Parameter Sets: TestDeleteSolutionComponent, TestDependenciesSolutionComponent, TestRequiredSolutionComponent
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Retrieve a collection of solution components that are required for a solution component.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: TestRequiredSolutionComponentEntity, TestRequiredSolutionComponent
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A record from the solutioncomponent entity describing the solution component to validate.
Type: Microsoft.Xrm.Sdk.Entity
Parameter Sets: TestDeleteSolutionComponentEntity, TestDependenciesSolutionComponentEntity, TestRequiredSolutionComponentEntity
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.