Hello everyone!
I'm trying to figure out how to use SuiteScript 2.X inside extensions, does anyone know if its possible to add a new field to the responde from the profile model/service from SS2.X?
The SS1 code would be something like:
Copy code
Application.on('after:Profile.get', function beforeProfileModelGet(Model, response) {
response.property = value;
});
Any help is appreciated, thanks in advanced!
e
eminero
03/31/2023, 11:42 PM
I do not think you can include Application module on SuiteScript 2.0 services/models. You could still use a 1.0 service and then call a Suitelet written en 2.0 SuiteScript version if you want to take advantage of any specific feature or performance. Basically SS 2.0 service/models would only help you with new features/extensions but not adding extra values to existing objects/modules.