trying to setup our products as a SaaS vendor/provider.

Is the product's field Product Code supposed to uniquely identify the product or is it more of a code representing the Product Family?

Do you have any advice how to properly use this?


By default, the Product Code field isn't unique. As it states here, it's purpose is:

The internal code or product number that you use to identify the product.

However, it is possible to make it unique, kinda. There's a discussion about this here. The take aways from this is to "de-duplicate" either by:

  • An app called DupeCatcher
  • A Trigger
  • A bit of a hacky way involving creating new fields

There's a bit more of an in-depth explanation as to the use of Product Families in Salesforce which you can read about here. But to steal a bit from that resource:

Use the Product Family picklist to categorize your products. For example, if your company sells both hardware and software, you can create two product families: Hardware and Software.

So I guess the simple answer to your questions:

Is the 'Product Code' supposed to be unique?


... is it more of a code representing the Product Family?

If you want it to be.

How you use the Product object is really up to you and will differ between businesses. I'd say that if your concern is that you want Products to be uniquely identifiable (which, judging from your question it is), I'd use a Trigger that prevented duplicate Product Codes but again, this is just what I'd do.

Not the answer you're looking for? Browse other questions tagged or ask your own question.