Bind a flow's connection
cs_bind_flow_connectionBinds a flow's connection reference to a real connection so the flow can be switched on; optionally activate it in the same call after binding.
Instructions
Point one of a flow's connection references at a real connection, which is the step that lets a flow be switched on. Picks the reference and the connection for you when there is only one of each, and asks when there is a choice. Handles both shapes: a flow that names a connection directly is edited in place, while a flow that came from a solution has its connectionreference row bound instead. Pass activate: true to turn the flow on in the same call once it is bound. Changes a live environment: requires confirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | Flow (workflow) id (cs_list_flows) | |
| search | No | Narrow the candidate connections by display name or owner | |
| confirm | No | Required to actually perform a change in a live environment. Without it the tool returns a dry run. | |
| activate | No | Turn the flow on after binding; default false | |
| clientId | No | Entra app (client) id for MSAL. Defaults to CPS_CLIENT_ID, then the first-party VS Code id. | |
| tenantId | No | Entra tenant id. Defaults to the workspace sync metadata, then CPS_TENANT_ID. | |
| connector | No | Connector id, e.g. shared_office365, to choose the reference by connector instead | |
| reference | No | Which connection reference to bind; only needed when the flow has more than one | |
| workspace | No | Path to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory. | |
| connectionId | No | The connection to bind (its name from cs_list_connections); default: the only usable one for this connector | |
| dataverseUrl | No | Dataverse URL; default: from the workspace or the environment | |
| environmentId | No | Power Platform environment id (GUID). Defaults to workspace sync metadata or CPS_ENVIRONMENT_ID. |