Dynamic Email Dispatch

Feature Overview: Send Dynamic Email

The Send Dynamic Email feature is a Flow-based extension that enables users to:

  1. Select a pre-configured DRTE Rich Text/HTML template.
  2. DRTE Generate real-time data tables or lists via SOQL queries.
  3. Personalize the content in a "What You See Is What You Get" (WYSIWYG) editor before sending.
  4. Auto-Log the communication to the Salesforce Activity Timeline.

Configuration Guide (Admin)

1. The Object Action

To make the feature accessible, create a record-level action:




2. Template Definition (Rich Text Button / Doc Template)

The core of the logic lives in the Template record.





3. Data Integration (Dynamic Tables)

Create a document section of Table type with SOQL Query. Instead of manual entry, use the Dynamic Table Configuration Builder:


Use Case Gallery

The flexibility of the DRTE extension allows for various applications beyond simple briefings:

Use Case

Data Source (SOQL)

Target Audience

Project Status

Milestones__c & Tasks__c

Stakeholders / Clients

Collections/Invoicing

Invoices__c where Status = 'Overdue'

Finance Contacts

Onboarding Checklist

Requirements__c where Completed = False

New Customers

Case Summary

Cases related to an Account

Success Managers


User Workflow

Step 1: Initialize

The user clicks the custom button (e.g., Send Dynamic Briefing) on any record. This passes the recordId into the engine.




Step 2: Template Selection

The user chooses from a list of templates filtered by the current object. This ensures the user only sees relevant email formats.


Step 3: Real-Time Preview & Edit

The engine executes the SOQL queries and renders the document sections dynamically. The user can:



Step 4: Dispatch & Log

Upon clicking Send Email Now, the extension:

  1. Sends the email via the Salesforce platform.
  2. Creates an Email Message and Task record.
  3. Attaches the final HTML content to the record's Activity History for future reference and compliance.





💡 Best Practices

Testing: Use the Test SFDC Record Id field on the Template record to verify that your SOQL query returns the expected data before deploying to users.


Redirecting you to the article... Click here if you are not redirected automatically.