pacx workflow activate - neronotte/Greg.Xrm.Command GitHub Wiki

Activates one or more workflows (Power Automate Flow)

Aliases

pacx flow activate
pacx flow start

Usage

This command can be used to activate one or more workflows (Power Automate Flows) in the current environment. It's really useful in release pipelines, when Power Automate Flows gets deactivated after solution import.

You can activate a workflow by specifying its unique identifier using the

--id argument, or by specifying its unique name using the --name argument.If you want to activate all the workflows of a given solution, you can simply specify the solution that contains the workflows to activate using the

--solution argument. If not provided, the default solution is used.```Powershell

Activate a workflow by its unique identifier

pacx workflow activate --id 3fa85f64-5717-4562-b3fc-2c963f66afa6

Activate a workflow by its unique name

pacx workflow activate --name My_Unique_Workflow_Name

Activate all the workflows in a given solution

pacx workflow activate --solution "My Solution Name"

Activate all the workflows in the current default solution

pacx workflow activate

## Arguments

| Long Name  | Short Name | Required? | Description                                                                                          | Default value | Valid values |
|------------|------------|-----------|------------------------------------------------------------------------------------------------------|---------------|--------------|
| `id`       | `id`       | N         | The ID of the workflow to activate                                                                   | -             | Guid         |
| `name`     | `n`        | N         | The unique name of the workflow to activate                                                          | -             | String       |
| `solution` | `s`        | N         | The solution that contains the workflows to activate. If not provided, the default solution is used. | -             | String       |