Hey there, newbie here. If I'm looking to run getL...
# suitescript
d
Hey there, newbie here. If I'm looking to run getLineCount({sublistId: 'addressbook'}); in the browser console, how do i run it on the record i currently have open?
e

https://www.youtube.com/watch?v=ZAN8clhKxIw

j
use something like this in your browser console
Copy code
require(['N/currentRecord'], function(currentRecord) {
  var rec = currentRecord.get();
  var n = rec.getLineCount({ sublistId: 'addressbook' });
  console.log(n);
});
d
Thanks