When exporting a dashboard via the web app I can see that this is using an API to request/convert the report as a PDF.
Is this possible to do via C#?
I know the export could also be done via the "Actions" of an automation script. But this has some limitations like not be able to change the name after the creation of the report, which is something we want to do, along with some other things.
Is there any documentation on these methods?
Hi Geovanny
Generating a PDF is process with multiple steps, one of which is stitching the different parts together using the ComposePDF call you found. While it is technically possible to create all these steps yourself using a custom script, I would not recommend it. It would require spinning up a headless browser and advanced knowledge of the files that are generated.
You can find documentation on all API methods at https://DMAIP/API/v1/Internal.asmx?op=ComposePDF. Note that this API contains all internal methods, which are always subject to change.
Hi Geovanny,
Is it not an option to use MailReportOptions as explained in this question:
Filenames for attachments in automation scripts
Hope it helps?
Hi Miguel, no the MailReportOptions allows to attach the report/dashboard but not to control the name of the report which is what we want. Do you know of something else we can do here? The PDF gets attached to the email but with the same generic name "Report.pdf"