From c921fdf447db51131bd55a4b2217c963c4232936 Mon Sep 17 00:00:00 2001 From: headcase-fo <77319070+headcase-fo@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:33:59 +0100 Subject: [PATCH] Update tutorial-perform-transactionless-copy.md fixed the syntax of the script --- .../tutorial-perform-transactionless-copy.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/power-platform/admin/unified-experience/tutorial-perform-transactionless-copy.md b/power-platform/admin/unified-experience/tutorial-perform-transactionless-copy.md index 0750f9444b..583c6dda55 100644 --- a/power-platform/admin/unified-experience/tutorial-perform-transactionless-copy.md +++ b/power-platform/admin/unified-experience/tutorial-perform-transactionless-copy.md @@ -70,12 +70,12 @@ Write-Host "Creating a session against the Power Platform API" Add-PowerAppsAccount -Endpoint prod -TenantID $TenantId -ApplicationId $SPNId -ClientSecret $ClientSecret - $copyToRequest = \[pscustomobject\]@{ + $copyToRequest = [pscustomobject]@{ SourceEnvironmentId = $SourceEnvironmentID TargetEnvironmentName = "Copied from source" CopyType = "FullCopy" - SkipAuditData: true - ExecuteAdvancedCopyForFinanceAndOperations: true + SkipAuditData = $true + ExecuteAdvancedCopyForFinanceAndOperations = $true } Copy-PowerAppEnvironment -EnvironmentName $TargetEnvironmentID -CopyToRequestDefinition $copyToRequest