Configuring and Using E-mail Templates in the Scheduler

image_pdfimage_print

When it executes tasks, the Scheduler sends e-mail notifications that you can configure with variable blocks in Jedox Web. These e-mails can contain information about task name and status, ETL job or project names, start date/time, end date/time, duration and error messages that have occurred during the task.

Creating and configuring a template

To configure an e-mail template, follow these steps:

  1. Go to Jedox Web > Scheduler > Templates. The Templates tab opens, allowing you to see already created templates and create new ones:

  2. Click Add New to create a new template.
  3. Name your template. For example, Default ETL Success.
  4. Add the content of your e-mail in the E-mail template section. Click any of the buttons under the text editor to insert a variable.
  5. Click Save. Your template is now available in the templates list.

Additionally, you can edit an existing template by selecting it from the list and making changes in the text editor.

You can delete a template by clicking the Delete button above the template list.

Note: You cannot delete default templates.

You can use the following variables for template configuration:

Variable Definition
Task Name The name of the scheduled task.
Task Status The status at the end of the task, e.g: Completed successfully.
Start Date The date the scheduled task was started.
End Date The date the scheduled task has ended.
Start Time The time the scheduled task was started.
End Time The time the scheduled task has ended.
Duration The time it took for the task to finish.
Message The message with which the integrator task was finalized.
Error Message The error message with which the scheduled task was finalized.
ETL Job Name The name of the integrator task.
ETL Project Name The name of the integrator project on which the task was performed.
ETL Job Status Code The status code at the end of the integrator task.
ETL Job Status The status at the end of the integrator task, e.g: Completed successfully.

Important: ETL job name, ETL project name, ETL job status code and ETL job status can only be used for scheduled Integrator tasks.

Receiving warning messages from Integrator tasks

You can configure a success template to display more information regarding successful tasks that finish with warnings by using the following two variables in a Success template:

  • ETL Job Status
  • ETL Job Status Code

For example:

This template will return a message like the one in the example below:

Subject: Jedox Task Task_Test_Templates
Body: Jedox Task Task_Test_Templates is finished.

Integrator job ended with status 10 Completed successfully.

or

Subject: Jedox Task Task_Test_Templates
Body: Jedox Task Task_Test_Templates is finished.

Integrator job ended with status 20 Completed with warnings.

If a variable is left empty, the output will display the variable name.

Assigning templates to tasks

You can assign templates to the report recipients when you create a task. To do that, click on the template icon on the wizard and select the templates you want to assign for successful and failed tasks:

Additionally, you can send notifications to a custom e-mail address. In this case, only default templates are used.

For more information about scheduling tasks, see Scheduling a task as a batch PDF and Scheduling a task as a Jedox Integrator Job.

You can also assign templates from the Tasks section in the Scheduler. In the Notifications tab of every task you select, click the Template icon and assign the desired templates to the users you want. For Batch PDFs, you can also select a group or several groups of users.

image_pdfimage_print