Automatically export records from a table into a scheduled report

matthew_hughes
Kilo Sage

We've got a department table that has over 1000 entries. I'm wanting to export these automatically as an XML file. At the moment I can only do it via the below method.

matthew_hughes_1-1702470699625.png

 

I'm wanting to include the list of departments as an XML file in a scheduled report. However, when I click on the list of available formats, the following appear:

 

matthew_hughes_2-1702470803614.png

 

I was just wondering if anyone knows how I can get an XML file automatically created and included in a scheduled report.

 

9 REPLIES 9

AndersBGS
Tera Patron
Tera Patron

Hi @matthew_hughes ,

 

According to ServiceNow OOTB standards, this is not possible: https://developer.servicenow.com/dev.do#!/learn/courses/utah/app_store_learnv2_reportanalytics_utah_... Scheduled reports are automatically run at a pre-defined frequency and emailed as files to a list of recipients. Scheduled report formats are CSV, XLS, PNG, and PDF.

 

if my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

HI @matthew_hughes 

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

Shamma Negi
Kilo Sage
Kilo Sage

There is no OOB option available for this.

Scheduled reports are automatically run at a pre-defined frequency and emailed as files to a list of recipients. Scheduled report formats are CSV, XLS, PNG, and PDF.

 

Custom option : 

https://<instance_name>.service-now.com/incident_list.do?XML&sysparm_query=category=inquiry

 

It generates the XML data of the table.

Regards,Shamma Negi

Ankur Bawiskar
Tera Patron
Tera Patron

@matthew_hughes 

I would love to understand the business requirement here.

Why would you share xml of record to users via email using scheduled report?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Michael George
Tera Guru

I, too, would like to hear the business case for this, but in the meantime, I'll toss out another idea. Use the rest API against the table with appropriate filters and request XML as the output type. If you need it on a schedule, create a scheduled job to run a script to do the interfacing with the API.