From d97a42143923cd6242d50d0ba549762a6fbc6653 Mon Sep 17 00:00:00 2001 From: Iain Lomax Date: Wed, 23 Oct 2024 10:04:40 +0100 Subject: [PATCH] refactor: replace ExecuteMultiple with ExecuteMultipleSolutionHistoryOperation #89 --- .../Services/ProcessDeploymentService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Capgemini.PowerApps.PackageDeployerTemplate/Services/ProcessDeploymentService.cs b/src/Capgemini.PowerApps.PackageDeployerTemplate/Services/ProcessDeploymentService.cs index a9805b3..c09076b 100644 --- a/src/Capgemini.PowerApps.PackageDeployerTemplate/Services/ProcessDeploymentService.cs +++ b/src/Capgemini.PowerApps.PackageDeployerTemplate/Services/ProcessDeploymentService.cs @@ -124,8 +124,7 @@ private void ExecuteSetStateRequests(IEnumerable requests, do { var timeout = 120 + (remainingRequests.Count * 10); - var executeMultipleRes = string.IsNullOrEmpty(user) ? - this.crmSvc.ExecuteMultiple(remainingRequests, true, true, timeout) : this.crmSvc.ExecuteMultiple(remainingRequests, user, true, true, timeout); + var executeMultipleRes = this.crmSvc.ExecuteMultipleSolutionHistoryOperation(remainingRequests, user, this.logger, timeout); successfulResponses = executeMultipleRes.Responses .Where(r => r.Fault == null)