derekfinlinson / xrm-webapi

Dynamics 365 Web Api TypeScript module
MIT License
27 stars 13 forks source link

Unable to execute batch update records with batchOperation #35

Closed lvhv91 closed 4 years ago

lvhv91 commented 4 years ago

Based on the source code it seems that the batchOperation function can only create multiple records in bulk. For updating records it requires the HTTP PATCH method, currently it's set to POST: (https://github.com/derekfinlinson/xrm-webapi/blob/66fb684ba92a9a6a093145f6ab5e476c211b3198/src/webapi.ts#L705

Is there a way to override this value or could it be that I have overlooked a configuration?

derekfinlinson commented 4 years ago

This is fixed in #36. You can specify which HTTP method to use for each change set