Create

Create Scheduled Report

Initialization

To create a scheduled report, you must first initiate the Vizzly SDK.

Initializing the Vizzly SDK

Ensure you have loaded the Vizzly package by following the prerequisite steps in our initializing guide.

If needed, you will also then be able to fetch the Vizzly instance using the following code.

const vizzly = Vizzly.use();

Usage

After initializing the services package, you can create a scheduled report;

const dashboardAccessToken: string = "<< Dashboard access token returned for each dashboard with write scope. >>";
const reportId: string = "<< A completely unique ID of the report. We recommend a string UUID. >>";
const newCron: string = "0 0 * * MON";
 
await vizzly.updateScheduledReport(dashboardAccessToken, reportId, newCron)

Note; dashboardAccessToken is not the token created by your identity logic, instead it is the token returned after fetching dashboards.