All I'm trying to do is model.save (for the SS2 Mo...
# suitecommerce
v
All I'm trying to do is model.save (for the SS2 Model) in the frontend view. The backend service has very limited content:
Copy code
/**
* @NApiVersion 2.0
* @NModuleScope Public
*/
define(['N/record'], function (record) {
    "use strict";
    return {
        service: function (ctx) {
            log.debug('in 2.0 Service', JSON.stringify(ctx));
            log.debug('ctx', JSON.stringify(ctx));
            ctx.response.write(JSON.stringify({message: 'Hello SS2 World!'}));
        }
    };
});