Skip to content

Commit 1b4c93e

Browse files
Release v1.6.11
1 parent 504d18d commit 1b4c93e

File tree

6 files changed

+26
-12
lines changed

6 files changed

+26
-12
lines changed

dist/dynamics-web-api-callbacks.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dynamics-web-api-callbacks v1.6.10 (c) 2020 Aleksandr Rogov */
1+
/*! dynamics-web-api-callbacks v1.6.11 (c) 2020 Aleksandr Rogov */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -2745,21 +2745,28 @@ function DynamicsWebApi(config) {
27452745

27462746
/**
27472747
* Executes a batch request. Please call DynamicsWebApi.startBatch() first to start a batch request.
2748+
* @param request
27482749
* @param {Function} successCallback - The function that will be passed through and be called by a successful response.
27492750
* @param {Function} errorCallback - The function that will be passed through and be called by a failed response.
27502751
*/
2751-
this.executeBatch = function (successCallback, errorCallback) {
2752+
this.executeBatch = function (successCallback, errorCallback, request) {
2753+
2754+
request = request || {};
2755+
27522756
ErrorHelper.batchNotStarted(_isBatch);
27532757
ErrorHelper.callbackParameterCheck(successCallback, "DynamicsWebApi.executeBatch", "successCallback");
27542758
ErrorHelper.callbackParameterCheck(errorCallback, "DynamicsWebApi.executeBatch", "errorCallback");
2759+
ErrorHelper.parameterCheck(request, "DynamicsWebApi.executeBatch", "request");
27552760

27562761
_isBatch = false;
27572762

27582763
var onSuccess = function (response) {
27592764
successCallback(response.data);
27602765
};
27612766

2762-
_makeRequest('POST', { collection: '$batch' }, 'executeBatch', onSuccess, errorCallback);
2767+
request.collection = '$batch';
2768+
2769+
_makeRequest('POST', request, 'executeBatch', onSuccess, errorCallback);
27632770
};
27642771

27652772
/**

dist/dynamics-web-api-callbacks.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dynamics-web-api.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dynamics-web-api v1.6.10 (c) 2020 Aleksandr Rogov */
1+
/*! dynamics-web-api v1.6.11 (c) 2020 Aleksandr Rogov */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -2274,13 +2274,20 @@ function DynamicsWebApi(config) {
22742274

22752275
/**
22762276
* Executes a batch request. Please call DynamicsWebApi.startBatch() first to start a batch request.
2277+
* @param request
22772278
* @returns {Promise} D365 Web Api result
22782279
*/
2279-
this.executeBatch = function () {
2280+
this.executeBatch = function (request) {
2281+
2282+
request = request || {};
2283+
2284+
ErrorHelper.parameterCheck(request, 'DynamicsWebApi.executeBatch', 'request');
22802285
ErrorHelper.batchNotStarted(_isBatch);
22812286

2287+
request.collection = '$batch';
2288+
22822289
_isBatch = false;
2283-
return _makeRequest('POST', { collection: '$batch' }, 'executeBatch')
2290+
return _makeRequest('POST', request, 'executeBatch')
22842291
.then(function (response) {
22852292
return response.data;
22862293
});

dist/dynamics-web-api.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dynamics-web-api",
3-
"version": "1.6.10",
3+
"version": "1.6.11",
44
"description": "DynamicsWebApi is a Microsoft Dynamics CRM Web API helper library",
55
"keywords": [
66
"crm",

0 commit comments

Comments
 (0)