---
title: "Databoard Export Scheduling"
canonical: "https://technology.bytangram.com/space/TGKB/1207599105/Databoard%20Export%20Scheduling"
format: markdown
---
This feature in WorkBook allows you to set a schedule to automatically export a predefined databoard result on a specific date/time or periodically and save it to your desired storage.

To set a new schedule you will need access to the **settings **module >** advanced tools **> **databoard export scheduling**.

> ℹ️ Please reach out to your WorkBook system administrator or your Consultant if you cannot access the module/menu.

> ⚠️ Prior to this setup:
> ⚠️ 
> ⚠️ - Make sure you have a databoard created and enabled under **settings** module **> advanced tools > databoards** so that you can select it in the below steps.
> ⚠️ - Make sure you have your storage set up under **settings** module **> folders, reports, and documents > storage and folders**.** **[https://tangram.atlassian.net/wiki/spaces/TGKB/pages/674889775](https://tangram.atlassian.net/wiki/spaces/TGKB/pages/674889775)

| **ON THIS PAGE YOU WILL FIND:** |
| --- |
| > Macro (toc) |

---

## CREATE A NEW EXPORT SCHEDULE

From the menu ‘**Databoard export scheduling’** > click on the icon :create-new-row: to add a new schedule 

- Ensure that the line you want to update is selected from the **list view**
- Fill in the **details** of the new export schedule to the sidebar

![image](media://fe8b6733-9afb-4e5a-884e-d98a6f5ef72d)

| **FIELD** | **DETAILS** |
| --- | --- |
| **Name**: | The name of the schedule. This name will also be used for the relevant agent which will be created automatically by the system. |
| **Databoard**: | Select the databoard that you want to export periodically using this schedule. |
| **Databoard view:** | Select the view of the databoard that you want to export. |
| **Next run date:** | The expected date for the system to run the export.<br>> 📝 The time cannot be set in here but will be handled via the agent. This step will be explained later in this article |
| **Repeat level:** | Select the frequency level that you want this export to be run (by Hour, Day, Week, Month, etc.) |
| **Repeat interval: ** | Enter the number of intervals that you want this export to be run corresponding to the Repeat level selected above. |
| **Active (checkbox):** | To mark if this schedule is active (selected) or inactive (not selected). |
| **Destination type:** | Select either Regular file or Database table |


***DESTINATION TYPES = REGULAR FILE***

If selecting **‘Regular file’**, the following fields will be displayed for your input:

- **Storage provider:** select the storage that you want to keep the exported file
- **Filename**: enter the name you want to save the exported file as, followed by the file extension. For example, if you want to export a CSV file, then type in “file-name.csv” (e.g. All jobs.csv)
- **Overwrite options:**
  - **None:** no overwriting is allowed. If there is a file using the same name that exists in the destination storage, the agent will throw an error message and no file will be exported
  - **Overwrite file:** allow to overwrite the existing file if there is a file using the same name in the destination storage
  - **New file:** every time the export runs, the system will generate a new file using the provided filename set above and the subfix is the date and time when exporting (e.g. All jobs_5192021-120120-AM.csv)

![image](media://6118af90-c0c3-4de3-b805-6fb36dd1637d)

### ***DESTINATION TYPES = DATABASE TABLE***

If selecting ‘**Database Table’**, the following field will be displayed for your input: 

- **Table name:** enter the name you want to save the exported table as.

![image](media://551f9921-1451-4a12-b9b1-cd238583e909)

---

## SET UP AGENT

To set up the agent, you will need access to the **settings **module >** advanced tools **> **agent setup**.

> ℹ️ Please reach out to your WorkBook system administrator or your Consultant if you cannot access the module/menu.

Once you have finished creating a new schedule to export the databoard, WorkBook will automatically create a new agent with the same name as the schedule to trigger the export. 

- From the menu **agent setup** > look for and select the agent that has the same name as the schedule (you can also use the search box)

***From the upper grid: ****complete the following:*

- **Title**: Notice the agent has been created using the same name with the schedule.
- **After execution, notify user by email: **the following options are available:
  - **None**: do not notify
  - **Always**: always send an email to the specified user to update the result (successful or failed with an error)
  - **In case of error:** only send out an email to the specified user if there is an error occurred
- **Email send to:** enter the email of the specified person who will receive status updates from WorkBook. This is used in combination with the previous field
- **Test mode (checkbox): **The agent will be created in test mode. It is required to remove the test mode checkbox so that the schedule can be fully activated

***From the sub-grid: ****complete the following:-*

- Go to the **Scheduling** tab: notice that the system has filled in the information automatically based on what you entered before from the **databoard export schedule**.

> 📝 It is possible to edit the information here, too.

- **Active**: select this checkbox to activate the agent
  - **Next run date (UTC):** the date (in UTC time zone) when the agent is expected to run next
  - **Start time (UTC): **the time (in UTC time zone) when the agent is scheduled to run
  - **Start time (Local): **WorkBook will convert the UTC time into the local time zone that is set on your computer for reference purposes

> 📝 You can enter time either in the UTC or local fields, WorkBook will then convert the time and fill in the other field accordingly.

- **Type**: this field is the same as the **repeat level** in the **databoard export scheduling** menu where you set the frequency that you want this export to be run.
  - **Interval:** this field is the same as the **repeat interva**l in the **databoard export scheduling** menu, where you set the number of intervals that you want this export to be run, used in combination with the **type **field above
  - **Comment**: a free text field allow you to put more detail on this agent

> 📝 You cannot set the start time to run the export from the menu **databoard export scheduling**. It needs to be handled via the agent setup.

![image](media://c0c912ed-2261-480d-beab-8bd244540343)

> ⚠️ Ensure that the **test mode **checkbox is removed and the **active** checkbox in the sub-grid is selected, so that the agent can be executed on the scheduled date and time.

The screenshot below shows a quick example of how the exported files look like in Google Drive.

![image](media://51a93641-1969-45b4-b9a0-94c4fec07f8a)

---

### Related articles

> Macro (contentbylabel)