jkabot
define(['N/currentRecord'], function(currentRecord) { function buttonOnClick() { var rec = currentRecord.get(); // rec.getValue( ... ) } });