Description
Returns the localized string name for the optionset defined by 'entitylogicalname.attributelogicalname' and optionsetvalue based on the langauge settings for the current user. You can also pass in language code (LCID).
Signature
GetOptionSetName('entitylogicalname.attributelogicalname', 'optionsetvalue')
Example
GetOptionSetName('opportunity.rating', 1) Returns 'Hot'
Parameters
Name | Type | Description | Required |
---|---|---|---|
entitylogicalname.attributelogicalname | xxxx | xxxx | xxxx |
optionsetvalue | xxxx | xxxx | xxxx |
The following yields a casting exception:
However an easier way to get at the data you want is to use the FormattedValues property bag. So to get the label of the OptionSet Value that you want just post-fix '_fmt' to the reference as shown below.
[account.statuscode_fmt]