Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Add Custom Images

          Add Custom Images

          To render logos, icons, and custom images in a PDF print, declare image attributes in the PrintLayout contract.

          Required Editions

          Available in Lightning Experience in Enterprise and Unlimited Editions that have Consumer Goods Cloud enabled.

          The supported attributes are:

          Attribute Description Data Type Required
          name Unique name of the image. String Yes
          type Specify Image. String
          mimeType Corresponds to the image type specified in Modeler for the selected imageId. String
          imageID Specify the image ID corresponding to the image ID available in the model. The supported types are PNG and SVG. String Yes

          If the print engine cannot resolve an image at runtime, a broken image icon is shown. Also, image attachments are not supported.

          Example
          Example For declaring the image of a custom logo to print in the PDF.
          <Declarations>
            <DataDeclaration name="myLogo" type="Image" mimeType="image/png" imageId="myLogo"></DataDeclaration>
          </Declarations>

          In an <img> tag, use the image myLogo with this syntax:

          <img src="{{path=Declarations::myLogo}}"/>
           
          Loading
          Salesforce Help | Article