Has anyone implemented a 2.0 service into an SCMA ...
# suitecommerce
a
Has anyone implemented a 2.0 service into an SCMA extension? I am trying to setup a basic backend model, but the service request keeps failing. When I navigate to the URL it is requesting for the service, it just redirects me to the home page (almost like the service isn't being served). I verified the file is in the manifest, but I'm not really sure what else to check.
a
I was actually referencing that quite a bit, but I got stuck right after deploying/fetching the model for the first time. I'm going back and comb through to see if I missed a minor detail somewhere.
Even the baseline extension created with
gulp extension:create
is exhibiting the exact same issue when fetching a model. I wonder if this is an issue with 2.0 + SCMA?
h
@Alex Cook have you deployed your SS2.0 SSP Application in NetSuite to the domain you're developing on?
💯 2
a
facepalm I knew I was missing something simple. That was it, thanks @Harley!
🙌 1
h
Glad to hear it helped! It's an easy step to forget I find.
c
@Alex Cook I'm having the same issue. Was there anything else you had to do other than deploy the SSP Application to the domain?
a
No, that was the only step I needed to take to resolve my issue. Have you deployed / activated the extension yet?
c
Oh yea. Many times.
did you have to create the ssp application to host the 2.x service?
a
This client is using SCMA, so I used the pre-existing 2.x SSP application that came with the bundle.
👍🏻 1
Did you make sure to add in the parameter to indicate the URL is for a 2.0 service?
Copy code
return Utils.getAbsoluteUrl(
    getExtensionAssetsPath(
        'Modules/QuoteToInvoice/SuiteScript2/QuoteToInvoice.Service.ss'
    ), true
)
(the "true" parameter)
c
I'm working on a 2019.1 application version. There isn't a 2.x ssp application by default. I created it manually and the deploy isn't putting files in the 2.x folders.
I think I'm barking up the wrong tree.
a
Ah, yeah it looks like it. Well that is unfortunate. I knew 2.0 was relatively new to SCA, but I didn't realize it was that new.