REST CRUD errorcallback

Sep 30, 2015 at 1:44 AM
Edited Sep 30, 2015 at 1:46 AM

My error callback never gets called. Can you please help me?
Snippet from examples in documentation:
    function (result) {
        accountId = result.AccountId;
    function (error) {
Should I put in errorHandler function return new Error, instead of throw new Error?

Best regards,
Nov 12, 2015 at 12:51 PM
This appears to be a bug in the current version of XrmServiceToolkit. As you say, the method "errorHandler" (around line 584) THROWS an error when it ought to just RETURN the error. I just changed this in my local version of XrmServiceToolkit.

This bug appears newly introduced. In earlier versions of XrmServiceToolkit, the error is returned correctly and not thrown.