Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

Save report as PDF using HTTP Request

Dynatrace Mentor
Dynatrace Mentor


Is it possible to generate a URL and saves it as a PDF?

Something like: http://localhost/lsEntryName=Report+Name&dmiAction...


I'm trying to create a batch file launched on alert which sends the alert email with a DMI PDF attachment, I have the former but am struggling to generate a PDF report on demand

Any insight would be greatly appreciated,

Kind Regards,



Dynatrace Champion
Dynatrace Champion
@Brett Barrett

is this something your DCRUM REST solution could help with / be extended to encorporate?

I don't believe so because the REST interface is generally for building queries. What Carl needs is to be able to access the generatePDF() method on demand from an external API call. Maybe there's a way to hack the CAS to make it work or, more simply, a way to make it understand the format=pdf?

Actually there is a way to do that 🙂 Here is an example:

How to construct it:

1. Load a report from menu or dashboard - You will have something like


2. Change LSServlet => LSSaveAs

3. Add


to URL

4. Generate UID (with /DiagConsole#/diag/UID+GENERATE ) and append to URL


Nice!! Thanks, Sebastian, I'm going to save this for later.

Thanks Sebastian, nice "trick" 🙂