Script to export reports to individual XML Files

madhuv
Tera Contributor

Hi ,

We have a requirement to delete old unused reports (10000+). But Management wants to keep the back up of old reports in the individual XML files, lets say if 100 reports are there , they want to have 100 xml files of each report. Do we have any bulk export mechanism or any scripting to keep take them all individually and save them with their respective names, instead of taking all into XML.?

 

Regards

Madhu

9 REPLIES 9

@madhuv 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate answer as correct & helpful to close the thread.

If not, please let us know if you need some more assistance.

Regards
Ankur

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

Hi Ankur,

 

Thans. But , it couldnot make me arrive at the solution, the provided script helps opening the XMLs into new window , but the XMLs have to be manually saved . Since target records are around 10000+ it would be difficult to get them saved like this.

 

Regards

Madhu

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Madhu,

you can either take bulk export of those 100 records via Export XML

For making individual export you can use Export set functionality but that would require MID Server and also file name won't be based on the respective names

Regards
Ankur

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

Bhagyashri Sort
Kilo Guru

Hi,

Please refer below link, it might be helpful to you.

Custom XML Export in ServiceNow

 

Mark it correct and helpful.

Thanks

Bhagyashri Sorte.

Hi. Opened the link: https://www.servicenow.com/community/contentarchivals/contentarchivedpage/message-uid/2327293

and it said "This Content was Archived"