Tasks
Last updated
Last updated
A schedule can consist of multiple tasks. We already know when to send it, now we need to specify what to send in the email. Tasks consist of the email settings, content, recipients, and Tableau views and filters.
The steps to create a new task are described below. Detailed information is available through the “?” symbol in the application.
The subject line of a an email can contain the date using the following format: {YYYY-MM-DD hh:mm:ss}. It also allows placeholders. Example: "Daily Update {YYYY-MM-DD} {CITY}". Note: when lines are left empty, they will be pulled from the .env file used by MailScheduler.
Add recipients for the task, either through mailing lists or separately with email addresses. Using this last option only adds the email to this specific task without saving it as a recipient or as part of a mailinglist. For advanced configuration such as recipient or mailinglist filters, instead add the recipient to a mailinglist.
A Task consists of views and an email body (message). A task can only access views from workbooks within the site that is associated with the Schedule the task is part of.
Select the workbook and view to be added to the task. For more information on applying filters in a View, see the Filters section of the guide. By selecting the checkbox, the corresponding export format is attached to the mail. All PDFs that are exported will be merged before they are attached, with the order of views from top to bottom being used to determine the order for the PDF. You can edit and delete the view by clicking the buttons in front of the view.
When creating a view, select the relevant workbook and view and add filters if required (for more details on filters, see the relevant chapter). The filename will also be used if you export a CSV, PNG, or Excel file.
PDF filename and CSV options only apply when one or more views use the PDF or CSV format.
In the message, we can create the email content, this will be the message your users will receive in their email. Each element in the email can consist of either an image or text, with the ability to save templates for reuse.
Images are only for the header/footer. They cannot be added to the body text, but you can add inline images of the dashboard.
Add your content in the rich text box. You can format your message by changing the style, linking websites, and adding inline images.
Several dynamic values can be added as seen here:– Date: {YYYY-MM-DD} -> 2023-04-17– Date with a time diff, for example, yesterday: {YYYY-MM-DD:-1 day}– The recipient name: {NAME}. You can add more placeholders. Please check the Placeholders section.
If you want to add an inline dashboard image, click the image icon and select a view you have added to the task. Similarly, you can add a placeholder by selecting the a->z icon.
Add an image that is placed in the folder 'img', next to the phar file on the server. Be sure to specify the size of the image.
Here, you can also format the image you’re attaching to your task. This can be a company logo, for example. Create a label so you can reuse it in another task, and a filename that will be the name where the file is saved in your folder. Decide on the size and alignment of the image to give your message the best look. Uploaded images can be found and managed in the “Templates” tab.
You can insert a placeholder by clicking on the a->z icon. Select a placeholder that you have created in the Config menu under placeholders.
Reuse a template from the list. Here will show all the labels of your stored text and images to reapply to message elements as you see fit. Templates can be linked to a task via the import/export schedule tool. You cannot create a new template from a csv file. This must be done in the MailScheduler front-end. Templates with views only work within a task targeting the same workbook, as these views are only available within this workbook.
Manage templates and upload images in the Templates tab.