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

Set-CrmOptionSetValue

Synopsis

Add or Update OptionSetValue

Syntax

Set-CrmOptionSetValue [-OptionSet] <String> [-Value <Nullable`1[Int32]>] [-DisplayName <String>] [-Description <String>] [<CommonParameters>]

Set-CrmOptionSetValue [-Entity] <String> [-Attribute] <String> [-Value <Nullable`1[Int32]>] [-DisplayName <String>] [-Description <String>] [<CommonParameters>]

Description

Add or update a value for 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 <Nullable`1[Int32]>

The number value of the OptionSetValue to add or update.
If not provided a new OptionSetValue is added with a generated value.
If provided any existing option will be updated or a new option is added if the value doesn't exist

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

-DisplayName <String>

Displayname of the new or update OptionSetValue

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

-Description <String>

Description of the new or update OptionSetValue

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

-Entity <String>

Logicalname of entity containing Picklist

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

-Attribute <String>

Logicalname of the Picklist attribute

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

Available parameters depend on the version of the connected organization and the SDK used

Examples

Related links

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