Hello, I am trying to create a client side model ...
# suitecommerce
a
Hello, I am trying to create a client side model by following the instructions from the link below: https://system.netsuite.com/help/helpcenter/en_US/APIs/SuiteCommerce/Extensibility/Frontend/SCModel.html but I am getting the following exception. ‘jQuery.Deferred exception: t.urlRoot is not a function TypeError: t.urlRoot is not a function’
m
Define urlRoot like this in your client-side model:
urlRoot: Utils.getAbsoluteUrl(getExtensionAssetsPath('services/My.Service.ss'))