Process XML Import via Script?

pfeifn
Kilo Expert

Is there an out of box way to process an XML import file via script rather than GUI? ( instead of going to "Import XML" have a script that pulls the file by location or content and processes it? )

Thanks!

1 ACCEPTED SOLUTION

No good global solution was found unfortunately. You could probably get away with doing it for 1 or a handful of tables if you are really careful, but it is probably not worth it in that regard. 

I checked with SN and they said the actual import process cannot be called via script. Disappointing, hopefully one day "releases" into service-now will be able to be automated! 

View solution in original post

9 REPLIES 9

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I'm not sure you can do that exactly, but what are you trying to accomplish overall with this? There may be a different method you can use like a REST API integration, etc.

Part of our release process sometimes involves importing XML files after update sets have been committed, looking to make it simpler.

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

You may find this older post useful.  It describes how to upload an update set via API but it should work as well for XMLs of records too:

https://community.servicenow.com/community?id=community_question&sys_id=a68447a9dbd8dbc01dcaf3231f96...

sachin_namjoshi
Kilo Patron
Kilo Patron

Kingston and above comes OOB with import set REST based API.

You can use this import set REST API to import records .

find_real_file.png

 

Regards,

Sachin