To create a new task, click the Create Scheduled Task button. In the new window enter the Name of the task and select how the info will be sent. Depending on your selection, different JSON structures will be written.

For the funcionality to properly work, you need to set the period, when the task will be executed. Click the Schedule Options button. You have two options:
In Scheduler you will be able to select from the system's predefined time options.
From the Repeats drop down list select how often the task will be executed:




Click the Submit button to save the settings.
In this tab enter Custom cron expression. For more information on what cron expression are, please read this document.

Click the Submit button to save the settings.
{info.fa-info-circle} Cron expression will not convert into the usual date format.
If you have selected to send a report to your email, click the Auto-fill parameters button and the specific JSON structure will appear in Command parameters:

Here you have to enter values instead of null.
Example:
{
"email_address": "theo.soraan@aaxelinsurance.com",
"email_subject": "Your report",
"email_body": "Your have received the generated report.",
"report_tag": "mid_vehicle",
"report_extension": "xlsx",
"file_options": {
"custom_name": "mid_vehicle_report",
"suffix": "Y-m-d",
"suffix_date": true,
"prefix": " ",
"prefix_date": false
}
}
Now the file_options object is not mandatory. It is used to specify a custom name of the generated file and the date of generation:
custom name - enter any name.suffix_date - if the value is true, then the generation date will be added after the file name.suffix - defines the date format. Only applicable if suffix_date is true.prefix_date - if the value is true, then the generation date will be added before the file name.prefix - defines the date format. Only applicable if prefix_date is true.Click Save to save the task.
If you have selected to send a report via sFTP to the server, click the Auto-fill parameters button and the specific JSON structure will appear in Command parameters:

Here you have to enter values instead of null.
Example:
{
"sftp_url": "customerftp.customer.com",
"sftp_port": 22,
"sftp_user": "sftp.insurance",
"sftp_pass": "R~29Z*58Jk+f",
"sftp_folder": "./",
"report_tag": "mid_vehicle",
"report_extension": "xlsx",
"adapter": "SFTP",
"file_options": {
"custom_name": "mid_vehicle_report",
"suffix": "Y-m-d",
"suffix_date": true,
"prefix": " ",
"prefix_date": false
}
Now the file_options object is not mandatory. It is used to specify a custom name of the generated file and the date of generation:
custom name - enter any name.suffix_date - if the value is true, then the generation date will be added after the file name.suffix - defines the date format. Only applicable if suffix_date is true.prefix_date - if the value is true, then the generation date will be added before the file name.prefix - defines the date format. Only applicable if prefix_date is true.Click Save to save the task.
If you have selected to send information to another system through an API, click the Auto-fill parameters button and the specific JSON structure will appear in Command parameters:

Here you have to enter values instead of null.
Example:
{
"url": "google.com",
"method": "POST",
"token": "token",
"parameters": {
"searchQuery": "insurance charts",
}
}
Click Save to save the task.