Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Exporting XML without attachments?

greg54
Tera Expert

Hi,

I am curious if you can export XML from a table without it including attachments? I am finding when I export even a small data set in our environment, I am getting all of the sys_attachment and sys_attachment_doc entries as well which is causing the XML files to be massive. Is there any way to get only the table you are exporting?

I am assuming it would be with a sysparm_XXXX in the URL, but I am not able to find a defined list of these.

Any help is greatly appreciated!

3 REPLIES 3

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

Hi Greg,



What about using something like:



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



Regards,


Sergiu


Thank you very much!!!


Hi Greg,



If you found my post useful can you mark it as such or answered if the case?



Regards,


Sergiu