Published at: 2026-09-17
Create an excel template
Use the variable generator to obtain variable codes, edit the Excel file locally, and upload it to create a custom Excel print template.
Overview
Excel print templates let you upload an Excel document directly (independent of the template designer) for printing. By using variable codes generated by the variable generator, you can freely design table formats in Excel. This template type is ideal for orders, quotes, reconciliation statements, and other scenarios that require data calculations and tabular layouts.
Before you begin
[!IMPORTANT] - Permission requirements: You must have system administrator permissions or be granted print template management permissions. - Format restrictions: Only.xlsand.xlsxfiles are supported, with a maximum file size of 10 MB. - Feature limitations: - Image fields, fields that reference images, and watermarks are not supported. - Headers, footers, and page numbers do not support online preview or direct printing (download the file and print locally). - Gray-scale features: - Formula calculations: Downloaded Excel files support arithmetic formula calculations. Supported field types include: Number, Amount (multi-currency), Percent, Roll-up Summary, and Formula. Amount and percent formats automatically follow Excel conventions. - List scope control: Set filter conditions for related list data when printing (requires gray-scale application).
Steps
Step 1: Open the creation page
- In Setup, go to Template Management > Print Templates.
- Click Create Excel Template on the left.

Step 2: Configure basic template information
On the creation page, configure the following:
- Template name: Enter a descriptive name.
- Related object: Select the business object to bind. You can download the system-preset Excel template as a starting point, or use a local blank Excel file.
- Scope: Set the employees who can use this template.
- Download file name:
- Custom naming: Concatenate fields, variables, and custom text from the current object (for example,
(Account Name)2022(Gender)). - Restrictions: Image, attachment, large attachment, signature, payment component, check-in component, and location fields are not supported. The name cannot contain the characters
\/:*?"<>|. - Default logic: If left blank, the download file name defaults to
Object Name - Primary Attribute.
- Custom naming: Concatenate fields, variables, and custom text from the current object (for example,

Step 3: Generate and copy variable codes
- Click View Variables or How to Create Excel to open the variable generator.
- Variables are divided into two categories:
- Related object list variables (detail list data):
- Select the related object and record type (if no record type is selected, all record types are included by default).
- Set the sort order: ascending or descending. The system defaults to descending order by “Last Modified Time” of the current object.
- Data scope filter: Click + Add Condition (up to 5 conditions) to filter all fields of the related object. If the corresponding resource package is enabled, “OR” relationships are supported.
- Code generation: After setting filters, the code below updates accordingly. Copy the generated list loop code and paste it into the corresponding cells in your local Excel template.
- Field variables (single-value fields):
- Find the field you want to print, copy the generated variable code, and paste it into the corresponding cell in your local Excel file.
- Related object list variables (detail list data):
[!WARNING] Make sure the copied variable name is complete. Otherwise, the system cannot recognize the variable and data will not be populated correctly.


Step 4: Upload the template and save
- Complete the Excel template layout and variable pasting locally, then save the file.
- Return to the system page and select the file in the Upload File area.
- Click OK to complete the creation.

Expected results
- The new Excel template appears in the template list.
- Authorized users on the detail page of the corresponding object can click Print, select this Excel template, and download an Excel file populated with actual data.
Template management operations
In the template list, you can manage templates as follows:
- Edit: Modify basic information or re-upload the Excel file.
- Set as default: Set the current template as the default template for printing.
- Delete: Remove custom templates that are no longer needed (preset templates cannot be deleted).
