suitescript - How to get a list of internal id in netsuite -
is there proper way list of internal id in netsuite record?
var record = nlapiloadrecord('customer', 1249); var string = json.stringify(record); nlapilogexecution('debug', 'string ', string );
i can of id using json string looking proper way. prints data including internal id. there api or other way ?
the getallfields()
function return array of field names, standard , custom, given record.
var customer = nlapiloadrecord('customer', 5069); var fields = customer.getallfields(); fields.foreach(function(field) { nlapilogexecution('debug', field); })
Comments
Post a Comment