Load NetSuite System Note

The trick to load a system note is to create a search that returns a single result.

//get one system note record
var ss = search.create({
	type: search.Type.SYSTEM_NOTE,
	columns: ['date', 'recordtype', 'record', 'field', 'oldvalue', 'newvalue'],
	filters: [['role', 'is', '3']] //administrator
	}).run().getRange(0,1);

Leave a comment

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