From Opportunity, get Parent Customer's Picklist values RRS feed

  • Question

  • Using CRM 2011, on prem.  I have code in place using rest and json to get attribute data for the Parent Customer of an Opportunity.  Everything is great for text and numeric fields.  I'm stuck on how to get the displayed values from a selected picklist.

    Using something like this:

    var contracttime =  retrievedAccount.New_ContractTime.Value;

    gives me the option value (in this case 7) where I really want what is displayed on the UI, which is '12:00 PM', the display value of the option.

    How can I get the display value?

    Thanks in advance.

    Thursday, November 3, 2011 4:29 PM