-
Notifications
You must be signed in to change notification settings - Fork 16
pacx workflow get
github-actions[bot] edited this page Sep 6, 2026
·
1 revision
Returns the definition of a workflow (Power Automate Flow)
pacx flow getThis command returns the definition of a single workflow. For a Power Automate Flow that is the json definition with its trigger, actions and connection references, for a classic workflow it is the xaml definition.
Use
pacx workflow list first if you do not know the exact name.```Powershell
pacx workflow get --name "My Flow"
Definitions tend to be large, so you can write them to a file instead of the console. This is handy to compare the same flow between two environments, or to keep it next to the rest of your source code.
```Powershell
pacx workflow get --name "My Flow" --output C:\temp\myflow.json
If more than one workflow has the same name, you can tell them apart by the solution that contains them.
pacx workflow get --name "My Flow" --solution "My Solution Name"You can also use the id instead of the name. It is the second guid in the url when you open a flow in the designer, and it is also shown by
pacx workflow list.```Powershell
pacx workflow get --id 507db5fe-17f1-f011-8406-6045bd95f82d
## Arguments
| Long Name | Short Name | Required? | Description | Default value | Valid values |
|------------|------------|-----------|------------------------------------------------------------------------------------------------------------------|---------------|--------------|
| `name` | `n` | N | The unique name of the workflow to retrieve. Provide either the name or the id. | - | String |
| `id` | `i` | N | The id of the workflow to retrieve, as found in the url of the flow designer. Provide either the name or the id. | - | Guid |
| `solution` | `s` | N | The solution that contains the workflow. Only needed when more than one workflow has the same name. | - | String |
| `output` | `o` | N | If specified, the definition is written to this file instead of the console. The folder must exist. | - | String |
- pacx auth
- pacx column
- pacx completion
- pacx customapi
- pacx data
- pacx forms
- pacx history
- pacx key
- pacx optionset
- pacx org
- pacx plugin
- pacx project
- pacx publish
- pacx rel
- pacx ribbon
- pacx script
- pacx settings
- pacx solution
- pacx table
- pacx tool
- pacx unifiedrouting
- pacx usersettings
- pacx view
- pacx webresources
- pacx workflow