This project has moved. For the latest updates, please go here.

Remove-CrmOptionSetValue

Synopsis

Remove OptionSetValue

Syntax

Remove-CrmOptionSetValue [-OptionSet] <String> [-Value] <Int32> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Remove-CrmOptionSetValue [-Entity] <String> [-Attribute] <String> [-Value] <Int32> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Remove a value from an optionset

Parameters

-OptionSet <String>

Logicalname of the global OptionSet

Required? True
Position? 1
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Value <Int32>

The number value of the OptionSetValue to remove

Required? True
Position? 2
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Force <SwitchParameter>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-WhatIf <SwitchParameter>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Confirm <SwitchParameter>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Entity <String>

Logicalname of the entity containing the OptionSet

Required? True
Position? 1
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Attribute <String>

Logicalname of the Picklist attribute to remove the value from

Required? True
Position? 2
Default value  
Accept pipeline input? false
Accept wildcard characters? False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, InformationAction, InformationVariable,
WarningAction, WarningVariable, OutBuffer, PipelineVariable and OutVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

Outputs

Notes

This operation cannot be undone.

Examples

Global OptionSet

PS C:\> Remove-CrmOptionSetValue -OptionSet countries -Value 31

Removes to item with value 31 from the global optionset Countries

Picklist value

PS C:\> Remove-CrmOptionSetValue -Entity contact -Attribute gender -Value 2

Removes the option with value 2 from the picklist attribute Gender in the entity Contact

Related links

Last edited Mar 11 at 7:02 PM by amsoftware, version 2