Hi, Can i create an xml for the records found in gliderecord ? And can i create table to store xml files? OR can i export all records via xml to other SNOW intance. Thanks in Advance

abhay9095
Kilo Contributor

Hi, Can i create an xml for the records found in gliderecord ? And can i create table to store xml files? OR can i export all records via xml to other SNOW intance. Thanks in Advance

22 REPLIES 22

Sorry Abhay. Please reach out to PS team


pneuvil1
Mega Guru

So far it doesn't look like this question has been answered. Is there an API call were it will take the entire contents of a record and create an xml string from it.

 

For example 

var x = GlideRecord (cmdb_ci);

x.get(somesysid);

var xmlString = someXMLAPI (x);

 

Seek and you shall find, and I did.

here is an example:

 

var x = GlideRecord('cmdb_ci_computer');
x.query();
x.next();
var s = gs.unloadRecordToXML(x, true);
gs.print (s);