Loading

Salesforce Mail Merge: Only One Instance of Opportunity Line Item Merge Fields Is Populated

Дата публикации: Jul 21, 2026
Описание

This article explains why only the first instance of Opportunity Line Item merge fields is populated when using Mail Merge in Salesforce.
When a Mail Merge Template in Salesforce contains Opportunity Line Item fields in more than one location, including the «OPPORTUNITY_LINEITEM_START» and «OPPORTUNITY_LINEITEM_END» merge fields, only the first set of these merge fields is populated. Subsequent instances of these merge fields in the same template remain empty after the merge is completed.

Решение

This behavior is by design in Salesforce Mail Merge. The «OPPORTUNITY_LINEITEM_START» and «OPPORTUNITY_LINEITEM_END» merge field markers define a single repeating block for Opportunity Line Items in a Mail Merge Template.
Rules for Opportunity Line Item Merge Fields:

  • All Opportunity Line Item merge fields must be placed within a single pair of «OPPORTUNITY_LINEITEM_START» and «OPPORTUNITY_LINEITEM_END» markers.
  • The «OPPORTUNITY_LINEITEM_START» and «OPPORTUNITY_LINEITEM_END» markers may only appear once in a given Mail Merge Template.
  • If these markers are used more than once in the same template, only the first instance will be populated. All subsequent instances will be ignored.

Extended Mail Merge Behavior
When Extended Mail Merge is enabled in your Salesforce organization, mail merge documents are delivered via email to the user who initiates the merge rather than being downloaded directly.
If a user is not receiving their mail merge document via email after enabling Extended Mail Merge, verify that all Opportunity Line Item merge fields are correctly placed within a single «OPPORTUNITY_LINEITEM_START» / «OPPORTUNITY_LINEITEM_END» block, and that these markers appear only once in the template.

Номер статьи базы знаний

000384435

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