Loading

Modify Width of HTML Email Templates With Salesforce Data Loader

Publiseringsdato: Jun 14, 2026
Beskrivelse

Salesforce HTML Email Templates store layout and width properties in HTML attributes. When templates were created with a fixed width (e.g., 550px), this cannot be edited directly in the Salesforce UI. The Salesforce Data Loader tool allows bulk export and update of email template HTML content, enabling you to modify the width attribute programmatically.

Follow the steps below to modify the width of the HTML Email Templates with Data Loader.

 

Løsning

The following steps use Salesforce Data Loader to export HTML Email Templates, identify the width attribute in the HTML, modify it in a spreadsheet tool, and reimport the updated template.

Use Data Loader to change the width of HTML Email Templates

1. Log in to Data Loader.
2. Click 'Export All'.
3. Check 'Show All Salesforce Objects' and select the Email Template object, choose your export destination, then click Next.
4. Click Select All Fields, then click the Finish button.
5. Open your export file in the CSV tool of your choice (example: Excel, Google Sheets, etc).

There is a field (column) called 'TEMPLATE TYPE.' This column will show you which of your email templates are HTML.

6. Once you've identified the HTML templates, the field that we want to modify is the column called 'HTML VALUE.'
7. In that field you’ll see values that define the email as in the example below. You can modify the 'width attribute in the HTML to make your template wider.
 

Example :

<table height="400″ width="550" cellpadding="5″ border="0″ cellspacing="5″ >

<tr height="400″ valign="top" >

<td style=" color:#000000; font-size:12pt; background-color:#FFFFFF; font-family:arial; bLabel:main; bEditID:r3st1;" tEditID="c1r1″ locked="0″ aEditID="c1r1″ >


8. Once you modify that HTML tag, you can use the Data Loader to update the template with the new width value using the same CSV file with the updated value.
 

Knowledge-artikkelnummer

000386541

 
Laster
Salesforce Help | Article