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

Get-CrmOptionSet

Synopsis

Get Global Optionset Metadata

Syntax

Get-CrmOptionSet [-Include <String>] [-Exclude <String>] [-CustomOnly] [-ExcludeManaged] [<CommonParameters>]

Get-CrmOptionSet [-Id] <Guid> [<CommonParameters>]

Get-CrmOptionSet [-Name] <String> [<CommonParameters>]

Description

Get the metadata for global optionsets

Parameters

-Include <String>

Filter for optionset to include based on the logicalname of the optionset.

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

-Exclude <String>

Filter for optionset to exclude based on the logicalname of the optionset.

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

-CustomOnly <SwitchParameter>

Get custom optionsets only

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

-ExcludeManaged <SwitchParameter>

Exclude managed optionsets from the result

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

-Id <Guid>

MetadataId of the optionset

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

-Name <String>

Logicalname of the optionset

Required? True
Position? 1
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

Get specific optionset

PS C:\> Get-CrmOptionset -Name incident_caseorigincode

Get metadata for a specific global optionset

All optionsets

PS C:\> Get-CrmOptionset

Get metadata for all global optionsets

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