XrmServiceToolkit.Soap.Fetch signature change in v2.2


It would be nice if there would be some kind of useful documentation, and a change log reflecting the changes to the former version.
There was a parameter added in between the fetchCore and the callback, fetchAll namly, that causes a lot of difficulties with former version.
so (fetchXml, false,/true callback) is now necessary.


YoYoFreakCJ wrote Feb 29, 2016 at 11:30 AM

Updating the TypeScript definitions accordingly would be welcomed as well, it currently doesn't define the added parameter at all.

wrote Feb 29, 2016 at 11:31 AM

con_ssc wrote Apr 11, 2016 at 11:46 AM

I had a look at the changes and the changes was made due to the fact that now the async flag was dropped in favor of checking if there is a callback function called. If not the call will be sync. So the callback was set to be always the last argument to not have "null" arguments in between, and that is why the fetchAll got put in between which breaks some older version calls.