Hi guys! Hope you're doing great, it is Friday! Wa...
# suitecommerce
b
Hi guys! Hope you're doing great, it is Friday! Was wondering if you know how to get session.getSiteSettings(['siteid']).siteid; but in SuiteScript2. I am getting the error that session is not defined, so i found that this function
nlapiGetWebContainer()
is part of the shopping API/shopping session. But i am getting this error: ReferenceError: "nlapiGetWebContainer" is not defined. ****NOTE:* I am using SCA 2022.2. We are using ss2. Any ideas why this is generating that error? Or which function should be used instead? Thank you so much!
s
There is no direct replacement for nlapiGetWebContainer in SS2, you will need to refer to the API documentation to find the object and method you need. My recommendation is that you take a look in the Backend folder of your SCA source code to get an idea of how we do this
🙌 1
b
Thank you! 🙂