---
schema_version: "1"
id: 2f049ad2788b2a48d9011ef83a96936749b1cafaf68bfef9fa4123b0ba40ddee
title: ConnectApi.PicklistValues
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_picklist_values.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_picklist_values.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: b18803dfec420a0132a0ca96abec4cd26abbb0e0d31022dddf79abb573df3111
description: Picklist values for a field, scoped to a record type. If a picklist is dependent, this response includes the values of its immediate controlling field and how they map to the picklist.
---
# ConnectApi.PicklistValues

Picklist values for a field, scoped to a record type. If a picklist is dependent, this response includes the values of its immediate controlling field and how they map to the picklist.

<table class="featureTable sort_table" summary="">
          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d1137355e26">Property Name</th>
              <th class="featureTableHeader vertical-align-top " id="d1137355e28">Type</th>
              <th class="featureTableHeader vertical-align-top " id="d1137355e30">Description</th>
              <th class="featureTableHeader vertical-align-top " id="d1137355e32">Available Version</th>
            </tr>
          </thead>
          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d1137355e26" data-title="Property Name"><samp class="codeph apex_code">controllerValues</samp></td>
              <td class="entry" headers="d1137355e28" data-title="Type">
                <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_map.htm#apex_methods_system_map" title="Contains methods for the Map collection type.">Map</a>&lt;String, Integer&gt;
              </td>
              <td class="entry" headers="d1137355e30" data-title="Description">If the picklist is dependent, this property is a map of its immediate controlling field’s
                picklist values to their indexes.<ul class="ul bulletList">
                  <li class="li">If the controlling field is a picklist, the string is the picklist value and
                    the integer is the value’s index.</li>

                  <li class="li">If the controlling field is a checkbox, the values in the map are <samp class="codeph nolang">"false": 0</samp> and <samp class="codeph nolang">"true": 1</samp>.</li>

                </ul>
                If the picklist is independent, the map is empty.</td>
              <td class="entry" headers="d1137355e32" data-title="Available Version">66.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1137355e26" data-title="Property Name"><samp class="codeph apex_code">defaultValue</samp></td>
              <td class="entry" headers="d1137355e28" data-title="Type"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_picklist_value.htm" title="Picklist value."><samp class="codeph apex_code">ConnectApi.​PicklistValue</samp></a></td>
              <td class="entry" headers="d1137355e30" data-title="Description">Default value for the picklist, or <samp class="codeph nolang">null</samp> if there isn’t
                one.</td>
              <td class="entry" headers="d1137355e32" data-title="Available Version">66.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1137355e26" data-title="Property Name"><samp class="codeph apex_code">url</samp></td>
              <td class="entry" headers="d1137355e28" data-title="Type">String</td>
              <td class="entry" headers="d1137355e30" data-title="Description">User Interface API resource that represents this payload.</td>
              <td class="entry" headers="d1137355e32" data-title="Available Version">66.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1137355e26" data-title="Property Name"><samp class="codeph apex_code">values</samp></td>
              <td class="entry" headers="d1137355e28" data-title="Type">
                <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list" title="Contains methods for the List collection type.">List</a>&lt;<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_picklist_value.htm" title="Picklist value."><samp class="codeph apex_code">ConnectApi.​PicklistValue</samp></a>&gt;
              </td>
              <td class="entry" headers="d1137355e30" data-title="Description">List of values for this object, record type, field combination.</td>
              <td class="entry" headers="d1137355e32" data-title="Available Version">66.0</td>
            </tr>
          </tbody>
        </table>

#### See Also

- [ConnectApi.PicklistValuesCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_picklist_values_collection.htm "Collection of picklist values for all the picklists of a record type.")