Loading
Salesforce Document Generation
目錄
選取篩選

          沒有結果
          沒有結果
          以下是搜尋小祕訣

          檢查關鍵字的拼字。
          使用較常見的搜尋字詞。
          選取較少篩選條件以擴大您的搜尋。

          搜尋所有 Salesforce 說明
          Create a Group by Transformation for Document Generation

          Create a Group by Transformation for Document Generation

          Group line items based on selling model type.

          Required Editions

          Available in: Lightning Experience
          Available in: Professional, Enterprise, Unlimited, and Developer Editions
          User Permissions Needed
          To configure group transformation for Document Generation: DocGen Designer with Admin Persona

          Use Case: A quote contains five line items, where three line items have selling model type set to evergreen and two line items have selling model type set to term defined. Use Group By transformation to show line items grouped by the model type in the document output.

          Before you begin:

          1. Create a quote with varied selling model types.
            Quote line items showing Selling Model Type values such as Evergreen and TermDefined.
          2. Open the context definition.
          3. Add nodes.
            Context Definition showing Quote Line Item node configuration.
            1. Quote
            2. Quote Line Item
          4. Map the required fields in the Quote Line Item, including selling model types.
            Grouping depends on the mapped attribute.
            Context Definition showing field mapping for Quote Line Item, including Selling Model Type.
          5. From the Transform tab, select the transform you created.
            When you open the DPE definition from the Transform tab, the Data Source node is preconfigured with the context data structure. It uses context as the source type, the selected context definition as the source object. It retrieves context data at run time based on the provided identifier, such as a Quote ID.
            The Data Source node and Data Source Subtype nodes are preconfigured and mapped to the context definition to retrieve context data at run time by using the Context Instance Identifier, such as the Quote ID.
          6. Configure JSON writebacks.
            Make sure that the model type is mapped in the context definition and selected in the subtype node.
            1. Quote Writeback
              Quote is the root object and doesn’t require hierarchy. It acts as the container for all child records.
              • For Source Node, select Quote
              • For Target Type, select JSON
              • For JSON Structure, select Simple
            2. Quote Line Item Writeback
              Quote Line Item is grouped based on selling model type to organize records into sections.
              • For Source Node, select QuoteLineItem.
              • For Target Type, select JSON
              • Enter a JSON name.
              • For JSON Structure, select Group
              • Enter a JSON name.
              • For Group By, select Selling Model Type to configure the group configuration.
          7. Configure a Composite Writeback node.
            Sequence defines how data is nested in the final JSON. Parent nodes must be processed before child nodes.
            1. For Target Type, select JSON
            2. Define the sequence as Quote → Quote Line Item.
            3. Map Node Field to ParentReference (Quote Line Item field).
              This mapping links datasets across levels. Without it, child nodes don’t attach to their correct parent hierarchy.
              Composite Writeback configuration showing sequence Quote to Quote Line Item with parent reference mapping.
              • Map Parent Field to Quote ID
              • Map Node Field to Parent Reference
          8. Save and activate the transformation.
            Data Processing Engine flow showing Quote and Quote Line Item subtype nodes, writebacks, and final composite output.
          9. Generate a document using the transformation.
            1. In the document template, for Context Transformation Name, select the transformation.
            2. Make sure that the template tokens align with the grouped JSON structure.
            3. Configure the template to show grouped sections by using the grouping field as the header.
              The template must reference the calculated field by using the alias defined in the formula node. The alias must exactly match the field name in the JSON output.
            4. For the input, enter the Quote ID.
              The Quote ID acts as the Context Instance Identifier to retrieve and transform data at run time.
            5. Generate the document.
              Generated document showing line items grouped by Selling Model Type into separate sections.
              Line items are grouped based on selling model type. Evergreen items appear together in one section, and term-defined items appear together in a separate section.
           
          正在載入
          Salesforce Help | Article