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.
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