Scheduling Reports from Omni Reporting Tool
Overview
The Scheduler feature is now available in the Omni Reporting Tool. Essential reports can be scheduled at specified time intervals and sent to email addresses or GCS/AWS buckets or to SFTP according to business or operational requirements.
Supported Destinations
Email Addresses
GCS Buckets
AWS Buckets
SFTP
Schedulers can only be configured by the users with app.admin privilege
Schedules Page
All the schedules of the org and it’s success/failure runs can be viewed here.
At what time the next schedule will run is also shown under
Next Schedule
Status of the schedule whether enabled or disabled can be toggled here (and inside the schedule edit panel as well).
Once a schedule is deleted, it will no longer visible in UI.
Disabled schedules (by toggling off) will still be part of the screen. Can be re-enabled anytime just by toggling it on.
Similar to the reporting
Request Status
, schedules' status can also be viewed. Click on button on the top left of the schedules page to view the status of the schedule runs.
What is a Pipeline?
Pipeline is a configuration framework in Omni Reporting Tool that holds the credentials and necessary details to connect with the GCS or AWS or SFTP.
Setting up a Pipeline
Navigate to
Pipelines
panel and click onAdd Pipeline
Button
Provide the necessary details to setup GCS or AWS connections
Field Details:
Pipeline Name
- a name given to the connection to identify this uniquelyPipeline Type
- Allowed types are GCS and AWS as of nowBucket Name
- the bucket name to which the pipeline needs to be connected withBucket URL
- URL of the bucketCredentials
- GCS credentials as a JSON file to connect to GCSRegion
- Region of the AWS BucketAccess Key
- Access Key of Amazon AWS S3 BucketSecret Key
- Secret Key of the Amazon AWS S3 BucketHost
- Host address of the SFTP server. (IP or DNS entry)Username
- username to login to SFTP serverPassword
- password to login to SFTP server
Depending on the Pipeline Type
, only a few fields from the above needs to be configured
Click on
Test Connection
button to test the connection.
Pipeline Cannot be saved without test connection being successful
[AWS or GCS] Testing connection will create a sample file in the location specified in the configuration. Successful creation of page implies successful test connection.
[SFTP] Testing connection happens based on auth. Files/folders won’t be created/validated in the sftp location
Click on
Save Changes
to save the configured pipeline.
How to Schedule?
Navigate to
Schedules
panel and click onAdd Schedule
Button
Choose the report to be scheduled from the
Select Report
dropdown
Provide necessary details of the the filters and schedule time
Schedule Time
Choosing Weekly will allow to select any particular week or Every-Day as the options from the drop-down.
Choosing Monthly will allow to select any particular day of a month or Every-Day or Last-Day as the options in drop-down.
Relative DateTime Filters
Unlike in the usual report explorer, the scheduler panel will have relative date-time filters.
Available Options:
Now
Today
Yesterday
1 Week
15 Days
1st of Current Month
1st of Last Month
Usage examples:
Case 1: Need the previous day’s data
From: Yesterday
To: Yesterday
Case 2: Need today’s data till now
From: Today
To: Now or Today (Today’s end is in future and it works same as Now technically)
Case 3: Need yesterday’s and today’s data
From: Yesterday
To: Now or Today
Case 4: Need Last month’s complete data
From: 1st of Last Month
To: 1st of Current Month (which takes 00:00:00 as the time field only in this particular case)
Case 5: Need data of 1st week of this month
From: 1st of Current Month
To: 1 Week
Email as Recipient’s destination
Choose Email if the report needs to be scheduled to email. Provide e-mail addresses one after one. Click adjacent to the Input bar after every email address to add it as the recipient list.
Custom Email Subject can be configured to uniquely identify the schedule. This comes more handy if the same report has multiple schedules with multiple different filters in it.
AWS or GCS or SFTP as the Recipient’s destination
Choose the pipeline to which the report needs to be sent. Refer the above section on how to set up a pipeline.
Provide a
Folder Name
to which the files need to send.Failing to provide the folder name will result in writing all the files in the root folder of the bucket that is configured in the pipeline.
[SFTP] If a folder name is configured, please make sure the folder exists in the SFTP server. Scheduler cannot create/write file to non-existing folder.
Same as multiple mail addresses, multiple pipelines can be attached to a single schedule. Click on button to add.
The file generated as a part of schedule will be posted in all the mapped pipelines in the respective mentioned folders.
Handling Scheduler Failures
In case of email schedules, all the reports generated should be less than or equal to 50 MB in size. The file sizes are handled as below:
For reports with less than equal to 15 MB in size, the report is attached directly as an attachment.
For reports with file size greater than 15 MB and less than equal to 50 MB, file will be compressed and attached as a .zip in the attachment.
For reports with file size exceeding 50 MB, the report will not be sent as an email. Schedule will fail.
To handle this in email type schedules, please go back to the schedule panel and choose the filters in more granular level.
In case of pipeline [GCS or AWS] schedules, the connection might not be successful to the configured bucket. Please check if the bucket configured in the pipeline is no longer accessible or deleted.
In case of pipeline [SFTP] schedules, please make sure the folder name mentioned is existing. If not, the file cannot be written in the said location.