Exemple #1
0
        protected override ICrmOperationResult ExecuteCommand()
        {
            var response = ExecuteOrganisationRequest();
            var executeMultipleResponse = response as ExecuteMultipleResponse;

            if (executeMultipleResponse != null)
            {
                BatchResponse = executeMultipleResponse;
                var opResult = new BatchCrmOperationResult(executeMultipleResponse, Operations);
                if (opResult.HasMoreResults)
                {
                    opResult.NextOperationResult();
                }
                return(opResult);
            }

            throw new NotSupportedException();
        }
        protected override ICrmOperationResult ExecuteCommand()
        {
            var response = ExecuteOrganisationRequest();
            var executeMultipleResponse = response as ExecuteMultipleResponse;
            if (executeMultipleResponse != null)
            {
                BatchResponse = executeMultipleResponse;
                var opResult = new BatchCrmOperationResult(executeMultipleResponse, Operations);
                if (opResult.HasMoreResults)
                {
                    opResult.NextOperationResult();
                }
                return opResult;
            }

            throw new NotSupportedException();
        }