Skip to content

Product Group

Certain business use cases may require keeping a product group on invoice line items, like, for example, G/L account or center assignments.

Generally, there are two ways to add this information:

  • If the invoice line item is based on a price book entry, you can create a custom field ON_ProductGroup that retrieves the value of the Product Family field using a formula, like, for example, TEXT(PricebookEntry.Product2.Family).
  • For other items, or if the Product Family field is empty, you can use product groups defined in corresponding custom settings.

JustOn supports creating product groups using the custom setting Product Group. These product groups can then be added to subscription items or selected when manually creating an invoice line item. The individual custom setting records are available as values in the corresponding Product Group picklist.

Each product group setting specifies the following information:

Field Description
Name The unique name for the custom setting record. At the same time, specifies the name of the product group to be available for selection. When set, the product group can be printed to the invoice PDF and is available as G/L account or center assignment criterion.
Description An optional description of the product group.

Create a Product Group record for each product group to be available for selection.

  1. In Setup, open Custom Settings.

    In Salesforce Lightning, navigate to Custom Code > Custom Settings.

    In Salesforce Classic, navigate to Develop > Custom Settings.

  2. Click Manage in the row of Product Group.

  3. Click New.
  4. Specify the information as necessary.
  5. Click Save.

    This creates the new product group setting.