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

New-CrmOptionSet

Synopsis

Add global OptionSet

Syntax

New-CrmOptionSet [-OptionSet] <OptionSetMetadata> [<CommonParameters>]

New-CrmOptionSet [-Name] <String> [-DisplayName] <String> [-Values] <PSOptionSetValue[]> [-Description <String>] [-Customizable <Nullable`1[Boolean]>] [<CommonParameters>]

Description

Add a global OptionSet to an organization

Parameters

-OptionSet <OptionSetMetadata>

OptionSetMetadata object with new configuration

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

-Name <String>

Logicalname of the global OptionSet to update

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

-DisplayName <String>

Displayname for the OptionSet

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

-Values <PSOptionSetValue[]>

Values for the OptionSet

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

-Description <String>

Description for the OptionSet

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

-Customizable <Nullable`1[Boolean]>

Required? False
Position? named
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

Microsoft.Xrm.Sdk.Metadata.OptionSetMetadata

Notes

Examples

Related links

OptionSetMetadata Class https://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.metadata.optionsetmetadata.aspx

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