Create a connection by the below command.
C#
$conn = Get-CrmConnection -InteractiveModeFill in the credentials to log in to your Environment.

Create Organization Requests with msdynmkt_PublishJourney.
C#
$req = [Microsoft.Xrm.Sdk.OrganizationRequest]::new("msdynmkt_PublishJourney")Add Parameter (JourneyId) to $req.
C#
$req.Parameters.Add("journeyId", "f07b0477-804e-ee11-be6e-6045bd0064a5")Execute the request.
C#
$req = $conn.Execute($req)Final Code
C#
$conn = Get-CrmConnection -InteractiveMode
$req = [Microsoft.Xrm.Sdk.OrganizationRequest]::new("msdynmkt_PublishJourney")
$req.Parameters.Add("journeyId", "f07b0477-804e-ee11-be6e-6045bd0064a5")
$res = $conn.Execute($req)



Join the conversation! Your thoughts help the community grow.