Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
NetSuite recycling 1.0 in 2.0?
NetSuite apparently uses 1.0 functions internally for some 2.0 functions?
[ATTACH=JSON]{"alt":"Click image for larger version Name:timage (2).png Views:t1 Size:t64.1 KB ID:t425661","data-align":"none","data-attachmentid":"425661","data-size":"full","title":"Proof"}[/ATTACH]
Here is what nlapiGetCurrentLineItemIndex does as a bonus.
[ATTACH=JSON]{"alt":"Click image for larger version Name:tScreenshot_1.png Views:t1 Size:t24.3 KB ID:t425662","data-align":"none","data-attachmentid":"425662","data-size":"full","title":"Screenshot_1.png"}[/ATTACH]
Here is a snippet to load 2.0 in the console for anyone wanting to test it / look at the source code
require(['N']) var currentRecord = require('N/currentRecord'); cr = currentRecord.get(); var record = require('N/record'); var search = require('N/search'); var runtime = require('N/runtime'); var dialog = require('N/ui/dialog'); var format = require('N/format'); 0