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.