Loading
Omnistudio Document Generation
Содержание
Выбрать фильтры

          Результаты отсутствуют
          Результаты отсутствуют
          Ниже приведены некоторые советы по поиску.

          Проверьте орфографию ключевых слов.
          Воспользуйтесь более общим поисковым запросом.
          Выберите несколько фильтров для расширения области поиска.

          Выполните поиск по всей справке Salesforce.
          Dynamic Images in Server-Side Document Generation

          Dynamic Images in Server-Side Document Generation

          Insert images such as product photos, barcodes, or pie charts in your generated DOCX and PDF documents by using image tokens in a Microsoft Word or Microsoft PowerPoint document template.

          Required Editions

          Available in: Lightning Experience
          Available in: Professional, Enterprise, Unlimited, and Developer Editions
          Warning
          Warning Dynamic images in server-side document generation may not work with Omnistudio Standard.

          Place image tokens anywhere within a document template, such as in paragraphs, tables, and text boxes. Use a token in a header or footer or within a repeating content section to pass an array of images. Define the height and width of the images in Omnistudio Data Mapper Transform. By default, image tokens are supported within the Token Data and Token Data Content Document fields of the Document Generation Process. You can also use a custom Apex class to load a blob for dynamic image rendering using IDs, URsL, or other strings and identifiers. Store images in Files, on the Documents tab of a contract, or in the Notes and Attachments section of an object as a contract document, or in rich text fields.

          Note
          Note In PPTX, if you want your text and image to render on the same line in a document, you must give the text and the dynamic image token in separate text boxes on the same line.
          Tip
          Tip

          If you don't have an OmniStudio license in your org, you can add dynamic images to generated documents by using Context Service. Add image tokens to your document template using the IMG_tokenname_src format. To control image dimensions, use IMG_tokenname_height and IMG_tokenname_width tokens. The src field accepts a Salesforce Content Document ID or file name. When multiple files have the same name, the first match is used. See Token Naming Conventions for Context Service Document Generation and Example: Generating a Contract Document by Using Context Service.

          To use default image dimensions without manually specifying height and width, transform context data with Data Processing Engine (DPE) and Context Service. SeeTransform Context Data for Document Generation. For an image-specific example, see Sample Context Definitions for Context Transformation in Document Generation

          To set up your dynamic images using Data Mappers, follow these instructions:

           
          Загрузка
          Salesforce Help | Article