There are 2 questions:
- How to correctly generate a dashboard via code?
- How to automatically send this created dashboard as a report in an email?
So far I am fumbling around by:
For question 1:
- Via an automation script I generate the json and store a file under the skyline dataminer\dasboards folder.
- I see the dashboard in the dashboards app.
- I do not see the dashboard in the scheduler > action > email > report/dasboard dropdown
So I'm doing something wrong or not enough (e.g. informing DataMiner of that file).
For question 2:
- No clue.
- I could only find info in the help for setting up an automation script using MailReportOptions. But I believe this is for the Old reporter and not the new Dashboards.
1) This is not officially supported. The newly created dashboard won't get synced in the cluster. In newer DataMiner versions, we also can't guarantee that dashboards created through your script will still work. If you need this, I think we should look into a way to do this properly by providing an API.
2) The "MailReportOptions" is indeed from the legacy Reporter, but should also work to generate a report from a dashboard. Specify the name of the dashboard (including folders separated with "/") as reportName. Unfortunately it's not possible yet to specify the url parameters (feed selections), you can create a task for this.
Just to inform that the files get Synced via System Center > Tools > sync file.
So it will also sync during the midnight sync.
We can move forward by creating the file, waiting on the sync and sending the report using it’s name via automation.
Thank you Wim for the explanation.
Hi Wim,
Will they eventually get distributed in the cluster by the midnight sync process, or do you mean not at all?