You are here:
Adding Product Attributes to an Object
Product Attributes are designed for use with objects related to CPQ. However, you can add Product Attributes to any custom object by adding the JSONAttribute field and configuring the DRJSONAttributeSObjects setting. You must be in Lightning Experience to follow these instructions.
- To add the JSONAttribute field to a custom object:
- In Setup, click Object Manager.
- Click the name of the custom object to which you want to add Product Attributes.
- Click Fields & Relationships, then click New.
- Select Text Area (Long) and click Next.
- Set the Field Label to JSONAttribute and the Length to the maximum value, 131072, then click Next.
- Check the boxes for the profiles that require access to the attribute, then click Next.
- Check the boxes for the Visualforce pages that will display the attribute, then click Save.
- To add the custom object to the DRJSONAttributeSObjects setting:
- In Setup, in the Quick Find box, type Custom Settings, then click Custom Settings.
- Click G in the alphabet listing, then click Manage next to General Settings.
- Create or edit the DRJSONAttributeSObjects setting:
-
If the setting doesn't exist, click New, specify DRJSONAttributeSObjects as the Name and the object name as the Value, then click Save.
-
If the setting exists, click DRJSONAttributeSObjects, click Edit, add a comma and the object name to the end of the Value, then click Save.
-
You must specify the full object name, for example vlocity_cmt__MyCustomObject__c.
-
NoteWhen you create Attribute Categories, you won't see this object name in the Applicable Types list, so set Applicable Types to Any.

