Hi guys, i need your help!!! How do you get data f...
# suitecommerce
b
Hi guys, i need your help!!! How do you get data from the backend in the new SCA core >= 2022.2 using SuiteScript files? The file i have is not working and logs are throwing errors in the ssp execution log. Functions are not being called at all inside those files.
s
🙏 2
b
Hi Steve, thank you so much for your response. So i am up to the point of replacing the fetch with the fake data with urlRoot.
Copy code
this.urlRoot = function urlRoot () {
            return Utils.getAbsoluteUrl(
                getExtensionAssetsPath(
                    "Modules/UserPreferences/SuiteScript2/Example.UserPreferences.Service.ss"
                ), true
            )
        }
I did that but i am getting this error: Impossible to parse backend error - Request.
Worked fine until I replaced the fake fetch with the urlRoot.
b
You probably need to deploy the SS2 SSP to your domain
🙏 1
b
Yes that did it! 🙂 Thank you so much!!
@Steve Goldberg About your tutorial, i am in the part of trying to save the value of the option selected (color or size). The deployment of the ss2 application to the domain fixed the issue on the get. But i am getting the same back end error now for the post but i am getting a permissions issue on the custom record type.
I changed the role and permissions but still getting that error.