Loading
The Trailblazer Community is now read-only Read More
Create a Custom Field on Product2

Create a Custom Field on Product2

To store the Base64-encoded image string on the Product2 object, create a custom field.

Required Editions

Available in: Lightning Experience
Available in: Enterprise and Unlimited Editions with Life Sciences Cloud, Life Sciences Cloud for Customer Engagement Add-on license, and the Life Sciences Customer Engagement managed package.
User Permissions Needed
To create a custom field on Product2: Life Sciences Commercial Admin
  1. From Setup, select Object Manager.
  2. Select Product2.
  3. Click Fields & Relationships, and then click New.
  4. Select the data type as Long Text Area, and then click Next.
  5. Enter a field label.
    For example, Image Base64.
  6. For length, enter 131072.
  7. For Visible Lines, enter 5.
  8. Click Next.
  9. Enable field-level security as needed.
  10. Save your changes.
  11. Add the field as the product image field for mobile.
    1. From the App Launcher, select Admin Console.
    2. Select Products.
    3. Select Product Configuration.
    4. From Product2 Field Name, select the field you created.
    5. Save your changes.
 
Loading
Salesforce Help | Article