Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 29, 2022. It is now read-only.

Latest commit

History

History
167 lines (123 loc) * 3.45 KB

New-CrmOptionSet.md

File metadata and controls

167 lines (123 loc) * 3.45 KB
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

-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

-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

-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

-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

-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

-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

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.

INPUTS

Microsoft.Xrm.Sdk.Metadata.OptionSetMetadata

AMSoftware.Crm.PowerShell.Commands.Models.PSOptionSetValue[]

OUTPUTS

Microsoft.Xrm.Sdk.Metadata.OptionSetMetadata

NOTES

RELATED LINKS

Get-CrmOptionSet

New-CrmOptionSetValue

Remove-CrmOptionSet

Remove-CrmOptionSetValue

Set-CrmOptionSet

Set-CrmOptionSetValue

OptionSetMetadata Class