SubmitField() instead of record.load and setValue()

Returns the parent record’s internal ID after updating and submitting one or more body fields on an already-existing NetSuite entry.

Neither loading nor submitting the parent record is required while using this method.

For example:

var uw_item_recordId = record.submitFields({

type: record.Type.INVENTORY_ITEM,

id: item_internal_id,

values: {

custitem_export_item: false, //checkbox

custitem_un_id:item_UPC_code //text

},

options: {

enableSourcing: false,

ignoreMandatoryFields : true

}

});

The governance limit for transaction records: 10 units, Custom records: 2 units, All other records: 5 units

Leave a comment

Your email address will not be published. Required fields are marked *