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
Problem accessing itemid
I'm currently working on a .ss script which we're using within product web pages on our web site. In order to be usable, I'm having to avoid loading full product records, as this leads to seconds of lag. Instead, I'm using nlapiLookupField as per Netsuite's best practice guidelines, but am having an issue getting product itemid value in the SSP context.
If I run nlapiLookupField('inventoryitem','12345','itemid') from the browser console, Netsuite correctly returns the itemid. If I do the same thing in the .ss script, it returns null.
If I run nlapiLookupField('item','12345','itemid'); from the console, it returns the correct result. If I run it in .ss, it returns the item's display name instead.
0