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.
SuiteScript 2.0 version of getShoppingSession()
I'm attempting to update the code on the back end of our custom web portal from SuiteScript 1.0 to SuiteScript 2.0. The problem is the first thing that I need to translate I can't seem to find a 2.0 equivalent for. The initial login procedure uses the nlapiGetWebContainer().getShoppingSession() to build a web session object which is then used to call the login method.
Now this is logging customers into our custom portal so I'm not sure the runtime.session is the same thing and that module does not provide any login method. I've looked through the documentation quite a bit and I can't find any SuiteScript 2.0 way of doing this. Can anyone point me in the right direction?
0