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.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
What is the 2.0 equivalent of nlapiLoadRecord('location', locationID)?
I'm tying to get into the habit of manipulating objects in 2.0 instead of 1.0. But I couldn't find any information about Netsuite Locations in 2.0 documentation.
I tried to infer it by uploading the simple script below to our filing cabinet:
require(['N/record'], function (r) {r.load({'type': r.Type.LOCATION,"id": 1}) });however I get this error:
Fail to evaluate script: All SuiteScript API Modules are unavailable while executing your define callback.
So any guidance on accessing Location objects using 2.0 is greatly appreciated.
0