Hello everyone, I am trying to call '_*nlapiGetWeb...
# suitescript
a
Hello everyone, I am trying to call '_*nlapiGetWebContainer()*_' from a Restlet written in SuiteScript 1.0 but I am getting the following error: '_*TypeError: Cannot find function nlapiGetWebContainer in object com.netledger.app.common.scripting.version1.SuiteScriptEngineImplV1@46ca7115*_'. What can be the reason? Thanks!
b
restlets arent for suitecommerce
a
okay.. thanks..
d
You'd need to use SSP to access Commerce API calls. nlapiGetWebContainer() will just return a reference to nlobjWebContainer. You'll need to use a method to get anything meaningful back, ie. nlapiGetWebContainer().getShoppingSession().isLoggedIn();
a
Okay, thank you!