Loading
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
          Define Document Properties

          Define Document Properties

          Define the document properties of the generated PDF by using a literal value or a binding pointing to data in the declaration section.

          Required Editions

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

          The table lists the supported properties in DocumentProperties. All properties are optional.

          Property Description Data Type
          title Title of the document String
          author Name of the author String
          subject Subject of the document String
          keywords Keywords associated with the document String
          creator Creator of the document String
          producer Producer of the document String
          creationDate Date the document was created Numeric
          modDate Date the document was last modified Numeric

          Sample code using a literal value:

          <Declarations>
            <!-- left out as not relevant for this example -->
          </Declarations>
          <DocumentProperties>
            <Property key="title" value="A documentTitle"/>
          </DocumentProperties>
          

          Sample code using a binding pointing to data in the declaration section:

          <Declarations>
            <DataDeclaration name="header" type="LuPrintPreviewHeader"></DataDeclaration>
          </Declarations>
          <DocumentProperties>
            <Property key="keywords" value="{{Declarations::header.keyword}}"/>
          </DocumentProperties>
          
           
          Loading
          Salesforce Help | Article