Is there any difference in invoking service calls from Javascript vs using Invoke Service? I am changing a few of my calls to perform validation before the call. I want to ensure there is absolutely no difference in actual execution of the service.
Is there any difference in invoking service calls from Javascript vs using Invoke Service? I am changing a few of my calls to perform validation before the call. I want to ensure there is absolutely no difference in actual execution of the service.
Hello!
There is no difference. But please don't forget the try-catch block in case if the service happens to be some sort of error.
I.e. call this way
pretry {
restserviceName.execute({});
} catch (e) {
console.error(e);
hideSpinner();
};/pre