FrameworkTemplate/SolutionTemplate/Scripts/PostAction.ps1
<#
.SYNOPSIS Executes post-deployment actions after a solution has been successfully imported. .DESCRIPTION This script runs automatically after the solution import/deployment process completes. Use this to perform post-deployment operations like activating flows, configuring settings, or importing data. .PARAMETER Conn The connection object to the Dataverse environment. .PARAMETER EnvironmentName The name of the target environment where the solution was deployed. .PARAMETER Path The file path to the solution package. #> Param( [System.Object] [Parameter(Mandatory = $true)] $Conn, [string] [Parameter(Mandatory = $true)] $EnvironmentName, [string] [Parameter(Mandatory = $true)] $Path ) $ProgressPreference = 'SilentlyContinue' . (Join-Path $PSScriptRoot "DeploymentFunctions.ps1") Write-Host "Executing Post Action for environment: $EnvironmentName" Write-Host "Solution Path: $Path" # Add your custom post-deployment logic here |