external help file | Module Name | online version | schema |
---|---|---|---|
AMSoftware.Crm.PowerShell.Commands.dll-Help.xml |
AMSoftware.Crm |
2.0.0 |
Get the metadata of a global optionset.
Get-CrmOptionSet [[-Name] <String>] [-Exclude <String>] [-CustomOnly] [-ExcludeManaged] [<CommonParameters>]
Get-CrmOptionSet [-Id] <Guid[]> [<CommonParameters>]
Get the metadata of a global optionset. For attribute specific optionsets use Get-CrmAttribute.
PS C:\> Get-CrmOptionSet | Select Name -ExpandProperty Options | Select Name, Label, Value
Get all global optionsets with the labels and values of the options.
Retrieve only the metadata for optionsets that are marked as custom.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: GetOptionSetByFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Exclude the metadata for optionsets whose Name matches the provided pattern.
Type: System.String
Parameter Sets: GetOptionSetByFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
Do not retrieve metadata for optionsets that are marked as managed.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: GetOptionSetByFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The MetadataId of the optionset to retrieve.
Type: System.Guid[]
Parameter Sets: GetOptionSetById
Aliases: MetadataId
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
The Name of the optionset to retrieve the metadata for.
NOTE: This parameter is case sensitive. i.e. it must match the case of the Name exactly.
Type: System.String
Parameter Sets: GetOptionSetByFilter
Aliases: Include
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
The Name parameter is case sensitive. i.e. it must match the case of the LogicalName exactly.