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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
SuiteWorld | October 25–28, 2026 | Las Vegas
Registration opens June 9. Be ready when passes drop. Get the green light now - Convince your boss
Registration opens June 9. Be ready when passes drop. Get the green light now - Convince your boss
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