Skip to main content
Build the future with Agentforce at TDX in San Francisco or on Salesforce+ on March 5–6. Register now.

Share Values with Global Value Sets

Learning Objectives

After completing this unit, you’ll be able to:

  • Create global value sets.
  • Manage global value sets.
  • Promote an existing field’s values to a global value set.

Sharing Makes for Easier Caring

Global value sets let you share the same picklist values with more than one picklist field. Imagine your bakery has several places where it needs to list ingredients. Assign the same set of ingredient values to more than one picklist field. Pick a single ingredient in one picklist field, and several ingredients in a custom multi-select field from the same value set.

An Ingredient field and a Shopping List field using the same values

Consistency of values across more than one picklist makes it easier to enter the right values, and your data is more reliable. As you change the values in a global value set, the revised values show up in all the picklists using it.

Create a Global Value Set

Global value sets are always restricted. You can’t convert them to unrestricted. This protects your values, because changing global value set values modifies the values for all the fields that reference the global value set.

While you can edit them, later, be mindful to create values that make sense across multiple fields.

  1. From Setup, enter Picklist in the Quick Find box, then select Picklist Value Sets.
  2. Next to Global Value Sets, click New

Create a global value set example

  1. Enter a label for the global value set. This name identifies the set in Setup, and appears as Values option when users create a picklist field.
  2. To tell users what these values are for, enter a specific description of the global value set. This text appears on the Picklist Value Sets list page in Setup.
  3. Enter the values, one per line.
  4. Optionally, choose to sort the values alphabetically or to use the first value in the list as the default value, or both. If you select both options, Salesforce alphabetizes the entries and then sets the first alphabetized value as the default.
  5. Click Save. To move values or re-alphabetize them, use Reorder.

Use the Global Value Set in a Picklist Field

Let’s go back and take a look at the page where you set a custom picklist’s properties.

  1. In Setup, click the Object Manager tab, and then select the object to contain the picklist field.
  2. Click Fields & Relationships.
  3. Click New. Select Picklist, and then click Next.
  4. Enter a Field Label.
  5. Keep the default Values option (Use a global value set) and then choose the global picklist you want to use from the picklist.
  6. Select other field settings as needed and click Next.
  7. Set field-level security for the picklist field, and then click Next.
  8. Choose the page layouts on which to include the picklist field, and then click Save.

Manage Values for Global Value Sets

As with other picklist values, you can reorder, replace, and change the default value of a global value set. You can also edit, delete, and deactivate individual values. Keep in mind, the changes apply to all picklist fields that use the global value set.

  1. From Setup, enter Picklist in the Quick Find box, then select Picklist Value Sets.
  2. Click the Label of the global value set to see its details. 

Edit a global value set example

Notice it looks and behaves just like a picklist field detail page. On this detail page, you can:

  • Click Edit at the top to change the Label, API Name, or Description of the set.
  • In the Values related list, you can change individual values and their properties. For example, click Edit next to a value to set it as the Default for the set.

Some things to consider about editing global value sets:

  • To replace a value, create the new value first. Then click Replace to start the process.
  • When replacing a value, the Replace all blank values option assigns the new value to all picklist fields that are currently blank.
  • Deleting a value in a global value set goes to the background jobs queue. When the job completes, your picklist is updated and you’re notified by email.
Note

Note

You can define a default value for the global value set. And individual fields that use the global value set can have their own default values, independent of the global value set’s default. This extends to formula default values, too. For example, the following is a formula to set an Opportunity priority to High for all users in the Fast Response Sales profile. Otherwise, the value uses the default set in the global value set.

IF($Profile.Name = "Fast Response Sales", "High", "")

Promote Existing Field Values to a Global Value Set

You don’t always know which picklist values make a good global value set before you’ve started using a picklist field. If you find that a particular set of values for one field makes a good set for another field, you can promote the existing value set to a global value set. Then, use it when you create a new custom picklist field.

  1. Go to the Fields & Relationships section of the object that contains the picklist you want to convert.
  2. Click the Field Label for the picklist.
  3. Click Edit.
  4. Click Promote to Global Value Set

Custom field values on separate lines

  1. Enter a label for the global value set.
  2. Accept the Field Name or edit it.
  3. Optionally, enter a description to identify it when using the values for other custom picklists.
  4. Click Promote to Global Value Set, again.

You see the value set in the Values section.

Global value sets offer efficiency and consistency across multiple picklists. But remember, global value sets are always restricted. Independent custom field values are more flexible, but higher maintenance.

We believe you’ve just about earned your cookie.

“”

You certainly know enough to pick the right picklist, and how to change a picklist as your needs change. Picklists are great for directing data entry and managing values for data consistency.

Resources

Share your Trailhead feedback over on Salesforce Help.

We'd love to hear about your experience with Trailhead - you can now access the new feedback form anytime from the Salesforce Help site.

Learn More Continue to Share Feedback