How to call service proxy in scriptcode?

Is it possible to call service proxy in scriptcode?

Yes, it’s simple, just call method callService on context and pass service name with parameters. Remember to assign result of execution to a variable.

var results = context.callService('service_name', {'param1': ['value1'], 'param2': ['value2']});
2 Likes