# Schedules

### Schedules

Schedules determine when tasks are triggered, tasks determine what is sent and to whom it is sent. Sending out an email starts with configuration of the Schedule, followed by the underlaying Tasks. Before being able to create a schedule, the following resources must be configured (see relevant chapters):

* A Server
* A Token
* A Site

<figure><img src="/files/R0MvMykueivolZWvmMEB" alt=""><figcaption></figcaption></figure>

Adding Tasks can only be done after the Schedule has been created and saved. In the Schedule overview, navigate to the newly created Schedule to add Tasks.

#### Frequencies

The frequency determines when the schedule will trigger its tasks. There are several options:

* Hourly: Specify the time at which the schedule will trigger each hour, between what hours each day and if it should be triggered on weekdays, weekends or both

  <figure><img src="/files/G18rh7Dt1nAEDhFxmu3i" alt=""><figcaption></figcaption></figure>
* On days of the week: Once per day at a specified time, the schedule will trigger. Which days of the week can be specified aswel.
* Every Month: once per month, on a specified day or on the first workday of the month, the schedule will trigger. Specify the time of day aswel.

  <figure><img src="/files/DliruWrcz3Zc1WC09ZiM" alt=""><figcaption></figcaption></figure>
* Every Quarter: once per quarter, on a specified day or on the first workday of the quarter, the schedule will trigger. Specify the time of day aswel.

  <figure><img src="/files/9vWZwJY0H1wejL4qnEoB" alt=""><figcaption></figcaption></figure>
* Using Cron expressions:You can use, for example, the following expression:

  ```
  0 9 * * * (every day at 9:00 AM)
  ```

  For more information, or learn about cron expressions, please refer to the [Crontab Guru](https://crontab.guru/) website.

#### Export/Import of Tasks

Tasks can be imported and exported to or from a schedule under “additional settings”. Exporting results in a CSV file that can be edited and reimported to the same or a new schedule.

<figure><img src="https://appsfortableau.infotopics.com/wp-content/uploads/2023/11/Screenshot-at-1-3.png" alt=""><figcaption></figcaption></figure>

#### Edit Tasks in CSV

To edit an existing task, leave the task\_id in place. To create a new task, Leave it empty to create a single view in a task. When using multiple views in one task, please give it a fake id that does not yet exist in the database.

<figure><img src="/files/ZZtr7EOJbwp9sl9xlr9p" alt=""><figcaption></figcaption></figure>

Task\_id, task\_name, filename, emails, mailing\_lists, and save are settings that apply to one task. So multiple views within the same task should be similar. Otherwise, the MailScheduler will take the final row into account.

The view\_id will be empty for new tasks. To update an existing view, leave the id the same. We recommend using each view in only 1 task and do not reuse a view. By filling the view\_url (case sensitive!), the MailScheduler will search for the exact name match on your Tableau. You can put filtering queries in the query column, and multiple export types are supported: pdf-v, xls, csv, image.

When you are done editing the CSV file, import it again. Select choose file, select the CSV file, and hit upload.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.infotopics.com/mailscheduler/features/schedules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
