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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Is Est. Gross Profit (Line) Scriptable?
Is it possible to script est gross profit on the line item level. The help documentation seems to indicate otherwise but I'm hoping it is out of date. There were two old enhancement requests I found in the user group but when I search for them they don't come up.
It is scriptable via a search but running a script and then populating sublists is not working out. I get my search results ok and loading the record is not a problem but I think I'm doing something wrong on my for loop:
for (var i = 0; searchresults != null && i < searchresults.length; i++) { objRecord.setLineItemValue('item', 'altsalesamt', i+1, searchresults[i].getValue('estgrossprofit')); } 0