Is there any documentation on SS2 models and servi...
# suitecommerce
g
Is there any documentation on SS2 models and services? Specifically I can't figure out the service (.ss) url for an extension that uses SS2 and not SS1.
s
Copy code
Utils.getAbsoluteUrl(getExtensionAssetsPath("Modules/YourModuleName/SuiteScript2/YourModuleName.Service.ss"), true)
g
Thanks Steve, that's what it creates with extension:create but it didn't work. My only thought, I de-selected SuiteScript when creating the extension and only had SuiteScript 2. Could that be the issue?
s
What exactly is not working? Is it 404ing? If so, what happens when you visit the location in the file cabinet?
g
I'll set it up again. I gave up and went back to SS1.It returned a NetSuite Error page rather than the JSON. If I tried the link in the file cabinet it either displayed the source code or I think some kind of error, don't think it was 404 but it didn't find the page.
Ah... do I need to turn on SS2 for ecomm or something like that?
s
Yes, there are setup steps for it
g
Thanks. I'll try that out.
It works! When you know, you know. Thanks Steve.
s
netsuite halo