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