< Back
Get-CrmGlobalOptionSet
Post
NAME Get-CrmGlobalOptionSet
SYNOPSIS
Retrieves a global OptionSet.
SYNTAX
Get-CrmGlobalOptionSet [-conn <CrmServiceClient>] [-OptionSetName] <String> [<CommonParameters>]
DESCRIPTION
The Get-CrmGlobalOptionSet cmdlet lets you retrieve a global OptionSet.
PARAMETERS
-conn <CrmServiceClient>
A connection to your CRM organization. Use $conn = Get-CrmConnection <Parameters> to generate it.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OptionSetName <String>
A logicalname for a global 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, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
-------------------------- Example 1 --------------------------
Get-CrmGlobalOptionSet -conn $conn -OptionSetName incident_caseorigincode
This example retrieves incident_caseorigincode global OptionSet.
Options : {, , , ...}
Description : Microsoft.Xrm.Sdk.Label
DisplayName : Microsoft.Xrm.Sdk.Label
IsCustomOptionSet : False
IsGlobal : True
IsManaged : True
IsCustomizable : Microsoft.Xrm.Sdk.BooleanManagedProperty
Name : incident_caseorigincode
OptionSetType : Picklist
IntroducedVersion :
MetadataId : 08fa2cb2-e3fe-497a-9b5d-ee887f5cc3cd
HasChanged :
ExtensionData : System.Runtime.Serialization.ExtensionDataObject
-------------------------- Example 2 --------------------------
Get-CrmGlobalOptionSet incident_caseorigincode
This example retrieves incident_caseorigincode global OptionSet by omitting parameter names.
When omitting parameter names, you do not provide $conn, cmdlets automatically finds it.
Options : {, , , ...}
Description : Microsoft.Xrm.Sdk.Label
DisplayName : Microsoft.Xrm.Sdk.Label
IsCustomOptionSet : False
IsGlobal : True
IsManaged : True
IsCustomizable : Microsoft.Xrm.Sdk.BooleanManagedProperty
Name : incident_caseorigincode
OptionSetType : Picklist
IntroducedVersion :
MetadataId : 08fa2cb2-e3fe-497a-9b5d-ee887f5cc3cd
HasChanged :
ExtensionData : System.Runtime.Serialization.ExtensionDataObject
-------------------------- Example 3 --------------------------
PS C:\\>$optionset = Get-CrmGlobalOptionSet incident_caseorigincode
PS C:\\>$optionset.Options | % {[string]$_.Value + ":" + $_.Label.LocalizedLabels.Label}
This example retrieves incident_caseorigincode global OptionSet and stores to variable, then query its value and
display name.
1:Phone
2:Email
3:Web
2483:Facebook
3986:Twitter
RELATED LINKS
SYNOPSIS
Retrieves a global OptionSet.
SYNTAX
Get-CrmGlobalOptionSet [-conn <CrmServiceClient>] [-OptionSetName] <String> [<CommonParameters>]
DESCRIPTION
The Get-CrmGlobalOptionSet cmdlet lets you retrieve a global OptionSet.
PARAMETERS
-conn <CrmServiceClient>
A connection to your CRM organization. Use $conn = Get-CrmConnection <Parameters> to generate it.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OptionSetName <String>
A logicalname for a global 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, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
-------------------------- Example 1 --------------------------
Get-CrmGlobalOptionSet -conn $conn -OptionSetName incident_caseorigincode
This example retrieves incident_caseorigincode global OptionSet.
Options : {, , , ...}
Description : Microsoft.Xrm.Sdk.Label
DisplayName : Microsoft.Xrm.Sdk.Label
IsCustomOptionSet : False
IsGlobal : True
IsManaged : True
IsCustomizable : Microsoft.Xrm.Sdk.BooleanManagedProperty
Name : incident_caseorigincode
OptionSetType : Picklist
IntroducedVersion :
MetadataId : 08fa2cb2-e3fe-497a-9b5d-ee887f5cc3cd
HasChanged :
ExtensionData : System.Runtime.Serialization.ExtensionDataObject
-------------------------- Example 2 --------------------------
Get-CrmGlobalOptionSet incident_caseorigincode
This example retrieves incident_caseorigincode global OptionSet by omitting parameter names.
When omitting parameter names, you do not provide $conn, cmdlets automatically finds it.
Options : {, , , ...}
Description : Microsoft.Xrm.Sdk.Label
DisplayName : Microsoft.Xrm.Sdk.Label
IsCustomOptionSet : False
IsGlobal : True
IsManaged : True
IsCustomizable : Microsoft.Xrm.Sdk.BooleanManagedProperty
Name : incident_caseorigincode
OptionSetType : Picklist
IntroducedVersion :
MetadataId : 08fa2cb2-e3fe-497a-9b5d-ee887f5cc3cd
HasChanged :
ExtensionData : System.Runtime.Serialization.ExtensionDataObject
-------------------------- Example 3 --------------------------
PS C:\\>$optionset = Get-CrmGlobalOptionSet incident_caseorigincode
PS C:\\>$optionset.Options | % {[string]$_.Value + ":" + $_.Label.LocalizedLabels.Label}
This example retrieves incident_caseorigincode global OptionSet and stores to variable, then query its value and
display name.
1:Phone
2:Email
3:Web
2483:Facebook
3986:Twitter
RELATED LINKS