| external help file | Module Name | online version | schema |
|---|---|---|---|
AMSoftware.Crm.PowerShell.Commands.dll-Help.xml |
AMSoftware.Crm |
2.0.0 |
New-CrmOptionSet
SYNOPSIS
Add a new global optionset.
SYNTAX
NewOptionSetByInputObject (Default)
New-CrmOptionSet [-InputObject] [-PassThru] []
NewOptionSet
New-CrmOptionSet [-Name] [-DisplayName] -Values [-Description ]
[-Customizable ] [-PassThru] []
DESCRIPTION
Add a new global optionset.
EXAMPLES
PARAMETERS
-Customizable
Whether the optionset is customizable.
Type: System.Boolean
Parameter Sets: NewOptionSet
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Parameter Sets: NewOptionSet
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Description
The description for the optionset.
Type: System.String
Parameter Sets: NewOptionSet
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Parameter Sets: NewOptionSet
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DisplayName
The displayname for the optionset.
Type: System.String
Parameter Sets: NewOptionSet
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Parameter Sets: NewOptionSet
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-InputObject
The OptionSetMetadata object for the new optionset.
Type: Microsoft.Xrm.Sdk.Metadata.OptionSetMetadata
Parameter Sets: NewOptionSetByInputObject
Aliases: OptionSet
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Parameter Sets: NewOptionSetByInputObject
Aliases: OptionSet
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Name
The name for the optionset.
Type: System.String
Parameter Sets: NewOptionSet
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Parameter Sets: NewOptionSet
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PassThru
Returns an object that represents the OptionSetMetadata. By default, this cmdlet does not generate any output.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Values
The OptionSetValues for the new optionset.
Type: AMSoftware.Crm.PowerShell.Commands.Models.PSOptionSetValue[]
Parameter Sets: NewOptionSet
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Parameter Sets: NewOptionSet
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.