Home Docs Changelog Download Pricing Service Center Contact

How can I include SQL query results in the body of an email?

I have the following result from an SQL query, and I would like to find an easy way to display this table in the body of an email I send. Could you please help me with this?

You may insert the SQL query result table into the body of the email by following these steps.

Step 1: Right-click the location in the body template where you want to insert the table, then click the "Insert SQL Table" menu item.

Click "Insert SQL Table" to open the "Insert SQL Table" wizard

Step 2: Enter your SQL statement then click "Next".

Enter your SQL statement then click "Next"

The system will then run the SQL statement you entered and obtain the field information returned by the SQL statement.

Step 3: Select the fields you want to display in the table from the list on the left, and add them to the list on the right.

Select the fields you want to display in the table

Step 4: Set the style of the table, such as cell color, font, and column width.

Set table style

You can double-click a cell to set the column name and display options for the column.

Set column options

After completing the wizard, the system will display a table icon in the body template. You can double-click this icon to modify the content of the table.

The icon of the table

After the task runs, the system will execute the SQL statement you entered and convert the query results into a table displayed in the body.

The result after the task runs

Tip: You can place multiple tables like this in the email body.

Last updated on September 05, 2024

Cookie Settings

We use cookies to enhance your browsing experience, serve personalized content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies in accordance with our Cookie Policy.

You can change your preferences at any time by clicking on "Cookie Settings" in the website footer.

Cookie Preferences

Manage your cookie preferences. You can enable or disable different types of cookies below. Necessary cookies cannot be disabled as they are required for the website to function properly.

Necessary Cookies

Always active

These cookies are essential for the website to function and cannot be switched off. They are usually only set in response to actions made by you such as setting your privacy preferences, logging in or filling in forms.

Preferences Cookies

Makes the site easier to use

These cookies allow the website to remember choices you make and provide enhanced, more personal features.

Analytics Cookies

Helps us improve our website

These cookies help us understand how visitors interact with our website, which helps us improve our products and services.

Marketing Cookies

Used to track visitors across websites

These cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging.