Exporting records without attachment data (not included)

cvelasquez
Tera Contributor

Hi:

Does anyone ever tried extracting xml data from ServiceNow without attachments? we need to extract large amounts of data from some of the main tables (incident, problem, etc.) on a regular basis, however we do not need attachments to be exported with it. Any good idea will be greatly appreciated.

Carlos

3 REPLIES 3

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

See one of my previous replies here:



Exporting XML without attachments?



https://<yourinstance>.service-now.com/incident_list.do?XML&useUnloadFormat=true



This gives you all records from incident table in XML format without the attachments.



See on wiki:



XML Web Service - ServiceNow Wiki


Sergiu:



thanks for the suggestion, I tried it and for some reason it is still bringing the attachments. The idea is to download just the incident xml data, no attachment data included.



Thanks, Carlos


I've just tried on my own instance and the XML resulted doesn't contain any attachments.


You can easily test this directly in your browser for   example for a small subset of data. In my test instance I went to:



https://<myinstance>.service-now.com/change_request_list.do?XML&useUnloadFormat=true



As I have a   small number of changes and some have attachments. In the XML returned I can see there are no attachments added.