Skip to main content
Join the Agentforce Hackathon on Nov. 18-19 to compete for a $20,000 Grand Prize. Sign up now. Terms apply.
Tempo stimato

Place an Outlet Attribute into a Feature

A Feature Premier

As you learn in Configurable Bundles in Salesforce CPQ, features are a way to organize options in a bundle so that it’s easier to tell which products are related. For example, a laptop bundle can have three features: Processor, Memory, and Storage.

Product Configuration page for Laptop bundle

Sometimes, a configuration attribute is closely related to options in a specific feature. For example, our Smartwatch bundle has a feature for charging options. AW Computing wants to offer wall chargers to customers located across the globe, but that means supporting a variety of outlet standards.

Outlets with related country flags

One option is to create a bunch of additional charger SKUs, one for North America, one for Germany, and so on. Or, the company can create one SKU and use a configuration attribute to identify the outlet standard. Since the configuration attribute is closely related to the charging options, we put it into the Charging Options feature.

Product Configuration page for the Smartwatch bundle with attribute in Charging Options feature

As part of this project you are going to repurpose an existing Global Picklist Value Set for outlet standards. We already created this value set for you, so you just have to use it when creating the underlying field for the Outlet Standard attribute. There’s one value in the set we don’t want to use (Type L), but you learn how to exclude it later.

Setup page for the Outlet Standard picklist value set, with TypeL crossed out

You start by navigating to the Product Option object to make a new field.

  1. Click Setup gear icon and click Setup. The Setup page opens in a new tab.
  2. Click Object Manager.
  3. Click Product Option.
  4. Click Fields & Relationships.
  5. Click New.
  6. Click Picklist.
  7. Click Next.
  8. For Field Label, enter Outlet Standard.
  9. For Values, choose Outlet Standard.
    This is the Picklist Value Set that we made for you. It includes five picklist choices already. The value set name happens to match our Field Label, but that’s not a requirement. We just named it that way to simplify this project. Also, note that the Field Name should be Outlet_Standard. This is important because it contributes to the API name of the field, which we reference later.
  10. Click Next.
  11. Click Next to keep field-level security as is.
  12. Click Save.

Now that you created the field, it’s time to add the API name into the Target Field on the Configuration Attribute object.

  1. Click Object Manager.
  2. Click Configuration Attribute.
  3. Click Fields & Relationships.
  4. Click Target Field.
  5. In the Values list, click New.
  6. Enter Outlet_Standard__c.
  7. Check the box next to Record Type Name.
  8. Click Save.
    Close the Setup tab to get back to the Salesforce CPQ tab.

OK, now you’re ready to make the configuration attribute. Let’s do it!

  1. In the navigation bar, click Products.
  2. Click Smartwatch.
  3. Click the Related tab.
  4. In the Configuration Attributes related list, click New.
  5. Click Next to leave the record type as Configuration Attribute.
  6. For Attribute Name, enter Outlet Standard.
  7. For Target Field, choose Outlet_Standard__c.
  8. Check Required.
    Once again, this is an attribute needed by the AW Computing fulfillment team, so you need to be sure the sales rep chooses a value. Note: CPQ bases its behavior on this field, and ignores the Required property of the underlying product option field.
  9. For Row Order, enter 10.
  10. For Feature, find and choose Charging Options.
    This is how you tell CPQ that the Attribute should appear in the box dedicated to the Charging Options feature.
  11. For Hidden Values, enter TypeL.
    This is the API name of one of the values in the premade picklist value set. For this example, you should exclude Type L because it’s only used in Italy, and they can use the compatible Type C plug that’s common throughout Europe.
  12. Click Save.

Excellent, your admin work is done, and sales reps now see the Outlet Standard attribute in the Charging Options feature. You can test your work by returning to Q-00045 and adding the Smartwatch again. You’ll find that you must choose a value, and that Type L is not present in the list of choices.

In this example we decided to use the Hidden Values field to identify which values shouldn’t be available in the picklist. You can instead list the values that can be viewed with the Shown Values field.

Configuration attribute record with four values in the Shown Values field

If you have lots of values that are selectable with only a few that shouldn’t be, you’ll probably want to use Hidden Values for the exceptions. If you have a limited number of values that you want to allow, and future additions to the picklist value set should not be included, you want to use the Shown Values field.

You can only use one or the other. If you try to use both at the same time, CPQ will default to the Hidden Values field.

Note

If you use Default Field to pre-set the value of the picklist to something that’s supposed to be hidden, it will still appear as a choice. If the sales rep chooses a different value and saves it, the defaulted value is hidden and can’t be selected again.

You’ve done an excellent job creating a variety of configuration attributes to collect information relevant to the Smartwatch bundle. In the next unit you learn how to create global attributes so we can give customers the option to customize their watch bands.

Resources

Condividi il tuo feedback su Trailhead dalla Guida di Salesforce.

Conoscere la tua esperienza su Trailhead è importante per noi. Ora puoi accedere al modulo per l'invio di feedback in qualsiasi momento dal sito della Guida di Salesforce.

Scopri di più Continua a condividere il tuo feedback