Generate a report using a JavaScript

Donald Jayaward
Tera Contributor

Hi,

Can we create a report in ServiceNow using a JavaScript.?

I used to do a similar task by creating an intermediate table. JavaScript populates the table and build a report to extract data.

 

Can we get rid of the middleman which is creating the table?

 

Thanks, Donald Jayawardena

5 REPLIES 5

newhand
Mega Sage

HI @Donald Jayaward 

It depends on where is the report be shown.

If in a portal widget, or ui page of course you can ,just collect the data for the report and set the data to the graph,

you don't need a intermediate table.

 

if in a normal form, i have no idea about this....

 

 

 

 

Please mark my answer as correct and helpful based on Impact.

Thanks Newhand

 

I want to build a list view report.

 

Hope there is no way we can build the report without first writing the data to a table.

 

Regards,

 

Donald Jayawardena

@Donald Jayaward 

In fact , am doing the similer thing as you are doing ....

The default report function is very weak, can just make some simple reports.

 

But the portal widgets can do everything ...

So i created a portal widget and put it into my dashboard..

 

The below link shows how to put portal widget into the dashboard。

You can read this if you need.

https://www.servicenow.com/community/developer-articles/add-portal-widget-to-dashboard/ta-p/2330147

 

Please mark my answer as correct and helpful based on Impact.

Mike_R
Kilo Patron
Kilo Patron

Can you give an example of a report you're trying to create?

It's a little hard for me to understand what you're trying to accomplish and why you couldn't just use the reporting or PA module.