what XML do you mean <@U5H9HECTS>? If I'm creating...
# suitescript
s
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
@stalbert if you go to a netsuite record and type in &xml=true, it'll show an xml page of that record
I was hoping to get something like that from a record.load()
s
Oh, you need it in XML, not JSON (as you probably know you can JSON.stringify(record) to get JSON out.
I generally reach for JSONIX for JSON<->XML in NS
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