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.

Create Smartwatch Attributes for Size and Accent

Create Product Option Fields

AW Computing knows that some people prefer large smartwatches to get more screen real estate, while others want a more modest size. To accommodate this preference, you will create a Size attribute with two values, 40mm and 44mm. While you’re at it, you’ll create an Accent attribute to capture the preferred color of metal used for the watch housing. It’ll have three choices, Light Gray, Dark Gray, and Gold.

Before you can create a configuration attribute, it’s important to understand that configuration attributes are not actually fields, but are visible manifestations of fields. Think of it this way: When the Product Configuration page loads, what you see is really a page built from records—Product records, Option records, and Feature records. The page itself is not actually a record! And if the page isn’t a record, it can’t have its own fields. But what it can have is a representation of a field, and that’s what a configuration attribute is—a representation.

So before you create the representation, you need to create a field that acts as its inspiration. And that is always done on the Product Option object. You start by creating the Size picklist field.

  1. If you’re not already in Setup, click Setup 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 Size.
    This label is what users will see in the Product Configuration page.
  9. Click the radio button to Enter values, then enter each of these values on a separate line:
    40mm
    44mm
  10. Check Use first value as default value.
  11. Click Next.
  12. Click Next to keep field-level security as is.

Now you’re ready to save the Size field, and create the Accent field.

  1. Click Save & New.
  2. Click Picklist.
  3. Click Next.
  4. For Field Label, enter Accent.
  5. Click the radio button to Enter values, then enter each of these values on a separate line:
    Light Gray
    Dark Gray
    Gold
    Note that throughout this project you must use 'gray' and not 'grey' for the spelling in order to pass the challenge check at the end.
  6. Check Use first value as default value.
  7. Click Next.
  8. Click Next to keep field-level security as is.
  9. Click Save.

Great, you have two new fields on the Product Option object. Now you must make a change to the Configuration Attribute object to let CPQ know the new fields exist and can be used as inspiration for attributes. This is a one-time process you can do quickly.

  1. Click Object Manager.
  2. Click Configuration Attribute.
  3. Click Fields & Relationships.
  4. Click Target Field.
    This is a picklist that has the names of fields we can represent as attributes. You need to add the API names of your two new fields as values. We use API names because they typically don’t change, even if the Field Label does.
  5. In the Values list, click New.
  6. Enter these two values on separate lines:
    Size__c
    Accent__c
  7. Check the box next to Record Type Name.
    This makes the fields usable for both configuration and global attributes. You might not need to use every field for one or the other, but it doesn’t hurt to have the option for later.
  8. Click Save.

Alright, you’re finally at the point where you can create configuration attributes. Good work!

Create Configuration Attribute Records

Configuration attributes are related (through a lookup) to the bundle where they appear. For that reason it’s easiest to create a configuration attribute by navigating to the Product record of the bundle.

  1. Click the App Launcher ( App launcher icon ), and then click the Salesforce CPQ tile.
  2. In the navigation bar, click Products, then choose the All Products list view.
  3. Click Smartwatch.
  4. Click the Related tab.
  5. In the Configuration Attributes related list, click New.
  6. Click Next to leave the record type as Configuration Attribute.
  7. For Attribute Name, enter Size.
    The attribute name isn’t really important, since users will see the Field Label of the field you created on the Product Option object.
  8. For Target Field, choose Size__c.
    This is the most important field, since it tells CPQ what field should be represented in the Product Configuration page.
  9. Check Required.
    The order fulfillment team needs this critical piece of information so they can deliver the right sized watch. Setting the attribute as required prevents the sales rep from forgetting to choose a value.
  10. For Row Order, enter 10.
    This tells CPQ how to order the list of attributes from top to bottom if you have more than one in a column. (We talk about columns in the next unit.) It’s best to use increments of 10, so that if you need to add a new attribute above the first, you can number it 5 without having to renumber all the other attributes.
  11. Click Save.

Excellent work, the Size attribute will now appear next time you configure the Smartwatch bundle. Before you check your work, let’s create the Accent attribute.

  1. In the Configuration Attributes related list, click New.
  2. Click Next to leave the record type as Configuration Attribute.
  3. For Attribute Name, enter Accent.
  4. For Target Field, choose Accent__c.
  5. Check Required.
  6. For Row Order, enter 20.
    This will place Accent directly below Size.
  7. Click Save.

OK, you now have two attributes in the Smartwatch bundle. Every good admin checks their work, right? Let’s add Smartwatch to a pre-made quote and see how it looks.

  1. From the navigation bar, click Quotes, then choose the All list view.
  2. Click Q-00045.
  3. Click Edit Lines.
    The first time the page loads, it can take a few minutes. Subsequent page loads are faster.
  4. Click Add Products.
  5. Check Smartwatch.
  6. Click Select.
    At this point you see the fruits of your labor. Two configurable attributes that you can change to suit what your customer wants. You don’t want to save the quote yet, so for now just abandon it.
  7. From the navigation bar, click Home.

Product Configuration page for Smartwatch with two attributes

Anytime you create a new configuration attribute you’ll go through the same three steps you went through for Size and Accent:

  • Create a field on the Product Option object.
  • Add the API name of the field to the Target Field field on the Configuration Attribute object.
  • Create a configuration attribute record on the bundle product.

In the next unit you create an Engraving attribute that allows customers to add custom text on the underside of the watch.

Resources

Salesforce 도움말에서 Trailhead 피드백을 공유하세요.

Trailhead에 관한 여러분의 의견에 귀 기울이겠습니다. 이제 Salesforce 도움말 사이트에서 언제든지 새로운 피드백 양식을 작성할 수 있습니다.

자세히 알아보기 의견 공유하기