I am encountering an issue with scheduling tasks for reports, specifically email reports.
Let's say the report has three parameters: Tenant, Start Date, and End Date.
We want these reports to be emailed weekly (e.g., from 2025-01-01 to 2025-01-07), filtered by tenant, and sent to the corresponding tenant’s email address.
In our software, we've integrated MyDBR, and tenant filtering happens automatically based on the login. For example, when a client logs in at http://www.ourproduct.com/abc1client, their data is automatically filtered, and emails are sent to abc1.client@ourproduct.com.
When a tenant like abc1client logs in, they only see their own data—not data from other tenants. They can set the date range and view their specific results.
What we are trying to achieve is a scheduled task (email report) that works in the same way—automatically filtering the data by tenant and sending the report to the respective tenant’s email address, using our RBAC setup.
I am seeking help on how to accomplish this using any existing methods or documentation available in MyDBR.