Loading
Salesforce now sends email only from verified domains. Read More
Omnistudio Document Generation
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
          Map Rich Text Tokens in Omnistudio Data Mapper for Omnistudio Document Generation

          Map Rich Text Tokens in Omnistudio Data Mapper for Omnistudio Document Generation

          Use rich text tokens in Microsoft Word document templates, to insert rich text content in the generated DOCXand PDF files. The rich text token format is {{RTB_<richtexttokenname>}}, for example, {{RTB_Header}}.

          1. Create a Microsoft Word document with rich text tokens.

            Place rich text tokens anywhere in the document template, such as in a paragraph, table, text box, header, or footer. In the rich text field, you can format text by using different fonts, colors, ordered and unordered lists, and hyperlinks. Place the rich text tokens on a new line in the document template. Here's an example of a DOCX document with rich text tokens.

            Image tokens used in the header and in a table in a document template.
          2. Create a Microsoft Word template.
            1. In Token Mapping Method, select Data Mapper.
            2. Enter a mapping Data Mapper bundle name.
              The Data Mapper Transform maps the field with the ID to the token in the document template. The Data Mapper Transform then transforms the tokens with actual data in the document.
            3. Enter a data extract Data Mapper bundle name.
              The Data Mapper Extract retrieves the field with the ID of the image to be used in tokens.
          3. To open the Data Mapper Extract on a new browser tab, click the Link icon. icon next to the Data Extract Data Mapper Bundle Name field.
            1. Create a Data Mapper Extract.
            2. Define the Initial Extraction.
              Extract tab of the Data Mapper Extract where we specified contract as the object to be queried and Id as the filter.
            3. Define Data Mapper Extract Output.
            4. In EXTRACT JSON PATH, select the source field for extraction.
            5. In OUTPUT JSON PATH, specify the output path.
              Data mapping from the extraction step JSON to the output JSON on the Output tab.
            6. Add all rich text tokens source fields.
            7. On the PREVIEW tab, enter the Salesforce object ID and click Execute to verify that the response pane shows a JSON structure containing the desired output.
              Preview tab where the mapping that you provided for the rich text is executed.
            8. On the OUTPUT tab, copy the Current JSON Output, and save it to use it later in your Data Mapper Transform.
              The Current JSON Output pane shows the structure that your output mappings specify.
          4. Click the Link icon. icon next to the Mapping Data Mapper Bundle Name field to open the Data Mapper Transform on a new tab.
            Note
            Note

            Map data on the Transforms tab in one of these ways: If the input and output names match, Use Quick Match to Map Data. See ​Use Quick Match to Map Data. Else, specify each mapping individually. See, Data Mapper Transform Data Mappings.

            1. Create a Data Mapper Transform.
            2. On the Transform tab, in the Input JSON panel, paste the Current JSON Output code that you copied from the Data Mapper Extract.
            3. Click Quick Match.
              The fields in the Input Mappings column come from the JSON code (Current JSON Output of the extractor). The fields in the Output Mappings column come from the tokens in the document template.
              The Input Mappings and Output Mappings columns.
            4. Click Auto Match to match the input and output fields.
              If the fields don't match automatically, drag fields from the Input column to the Output column.
              The Matched Mapping column is populated when the fields from the Input column to the Output column are matched.
            5. Save your changes.
           
          Loading
          Salesforce Help | Article