Custom Objects for B2B Commerce for Visualforce

To support B2B Commerce for Visualforce use cases and avoid interfering with standard objects, the managed package installs several custom objects in your org. For example, B2B Commerce installs a custom product object, ccrz__E_Product__c, that exists in parallel with the standard product object. If your org already uses the standard product object, installing B2B Commerce doesn't affect how the standard product object is used. If you want, you can even synchronize your standard product object with the B2B Commerce custom product object.

To avoid name collisions with other custom objects, all B2B Commerce for Visualforce custom object and field names are prefixed with the ccrz namespace, as in ccrz__E_Order__c.

Extend Custom Objects

You can extend B2B Commerce for Visualforce custom objects in the following ways:

  • Add subscriber fields to any B2B Commerce custom object. Avoid duplicating the non-namespaced field name. For example, the ccrz__E_Order__c has the field ccrz__Comments__c. If you add a subscriber field to ccrz__E_Order__c, name it something other than Comments__c. You can add subscriber fields as part of a change set.
  • Modify the default picklist values. You can only make these changes manually across all of your environments, and can't complete them as part of a change set.

Field Data Types

When you're adding data to custom object records, each field on each object requires a specific data format. When you're returning existing data from those records with an API call, the value for each field comes back in a specific format. This guide identifies the input and output format for each field, using the following conventions:

  • Input on object— The field's type for adding data to the object, such as Text or Checkbox. Some field types enforce a maximum length, such as 255 characters.
  • Input or output with API—The data type for the field's value when passing data to or returning data from methods of the B2B Commerce for Visualforce API. For example, the value entered in a text-type field is stored in memory as a string primitive data type. For more details, see Primitive Data Types.

Available Objects