Loading
The Trailblazer Community is now read-only Read More
Create an Integration Definition for Product Images

Create an Integration Definition for Product Images

Before you use the Convert Product Image to Base64 flow, create and compile the Apex provider class, then create the integration definition. The action resolves the named credential by matching its configured URL with Display URL.

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 an integration definition for product images: Life Sciences Commercial Admin
  1. Create the Apex provider class.
    1. From Setup, in the Quick Find box, enter Apex Classes, and then select Apex Classes.
    2. Click New.
    3. Paste the sample ImageToBase64ConversionService Apex code, and then click Save. See Sample Code to Create an Apex Provider Class.
    4. Confirm that the class saves and compiles successfully.

    After you create and compile the Apex provider class, ImageToBase64ConversionService appears in the Apex / Provider Class dropdown when you create an integration definition.

  2. Create an integration definition.
    1. From Setup, in the Quick Find box, find and select Integration Definitions.
    2. Click New.
    3. For Developer Name, enter ImageToBase64ConversionID.
    4. For Label, enter Image To Base64 Conversion.
    5. Select Active.
    6. For Type, select Apex.
    7. For Apex / Provider Class, select ImageToBase64ConversionService.
    8. Save your changes.
 
Loading
Salesforce Help | Article