Learn to Publish the Journey Using PowerShell

Create a connection by the below command.

$conn = Get-CrmConnection -InteractiveMode

Fill in the credentials to log in to your Environment.

Login

Create Organization Requests with msdynmkt_PublishJourney.

$req = [Microsoft.Xrm.Sdk.OrganizationRequest]::new("msdynmkt_PublishJourney") 

Add Parameter (JourneyId) to $req.

$req.Parameters.Add("journeyId", "f07b0477-804e-ee11-be6e-6045bd0064a5") 

Execute the request.

$req = $conn.Execute($req) 

Final Code

$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) 

Final View

Journey


Similar Articles