Generate a report via script?

tim_schneider
Tera Contributor

Hi,

I've looked through documentation and done some searching but I'm a bit stumped. Does anyone know if it's possible to generate a standard ServiceNow report (Such as a pie chart) to a file (e.g. png, jpg, pdf) via script?

I'm looking to attach the result into an existing process, but it is desirable for the report to generate itself rather than forcing the user to go, view the report, export it, then attach it back into the process... but I'm having no luck finding a mechanism to do this without user-interaction.

Thanks.

14 REPLIES 14

Moy1
Kilo Guru

have you explored the possibility of triggering an 'on demand' scheduled report via an event?

Scheduled report didn't come to mind originally, because I always think of them as scheduled rather than on demand.

They seem fairly close, but I don't want it emailed, I want it attached to a record in the system... I suppose I could set an email back to the system itself & parse it with an inbound action but this seems like a very convoluted way to get a copy of a report...

Premkumar1
Giga Expert

It can be done by using scheduled reports.

Only to email the report out right? As far as I can tell there's no way to use a scheduled report to actually keep the generated output in the system...