what XML do you mean @screnshaw? If I'm creating a record in SS from some arbitrary inbound XML I typically map that XML to JSON with properly named fields then
_.assign(a,b)
to populate the NS record.
s
screnshaw
05/16/2018, 5:07 PM
@stalbert if you go to a netsuite record and type in &xml=true, it'll show an xml page of that record
screnshaw
05/16/2018, 5:07 PM
I was hoping to get something like that from a record.load()
s
stalbert
05/16/2018, 5:26 PM
Oh, you need it in XML, not JSON (as you probably know you can JSON.stringify(record) to get JSON out.
stalbert
05/16/2018, 5:26 PM
I generally reach for JSONIX for JSON<->XML in NS
stalbert
05/16/2018, 5:28 PM
Of course, standard disclaimer about the output of JSON.stringify() on a record being unsupported and undocumented so relying on the result for business is folly