Import XML via Script instead of manual button

karan chhabra5
Tera Contributor

Hi,

I need to import XML data/customization from a instance to another. I am able to fetch details in an XML attachment using data sources but need to import XML using a script instead of manual Import XML button.

Please help with the solution or any other way outside ServiceNow.

Thanks

 

2 REPLIES 2

Prasant Kumar 1
Kilo Sage

Hi ,

Follow the below links , it might help you.

https://docs.servicenow.com/bundle/orlando-platform-administration/page/administer/import-sets/refer...

 

If i was able to solve your query please mark my answer correct and helpful.

Thanks & Regards

Prasant kumar sahu

karan chhabra5
Tera Contributor

Hi Prashant,

Thanks for the quick response. I went through the link and I believe it is importing data into Staging/Import Set Table. But we have to make transform Map to map it to target table which is additional overhead as we may have 100-1000 of tables to be imported. Hence, we wont be creating individual transform Maps for each table. It is quite time consuming and length process.

We are basically looking for a functionality like XML Import which directly imports all data into target table without any additional overhead.All we need to do is import XML, Nothing else.

Thus , we looking to automate this XML import either through Script or anything.

Looking forward for your quick response.