Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
Contributors/Aaron Barth/Pa list
Workflow building

Pa list

List Power Automate cloud flows in a Dataverse environment. USE FOR: "list flows", "show flows", "what flows exist", "find flows", "which flows are enabled", "which flows are disabled", "flows for agent". DO NOT USE FOR: exporting flow definitions (use pa-export), enabling/disabling flows (use pa-enable).

ByAaron BarthAaron BarthEngineer @ Microsoft
name:
pa-list
description:
List Power Automate cloud flows in a Dataverse environment. USE FOR: "list flows", "show flows", "what flows exist", "find flows", "which flows are enabled", "which flows are disabled", "flows for agent". DO NOT USE FOR: exporting flow definitions (use pa-export), enabling/disabling flows (use pa-enable).

Skill: List — Show Cloud Flows in the Environment

Lists Power Automate cloud flows (category 5) by querying the Dataverse workflow entity. Shows flow name, ID, state, and solution membership.


Basic Usage

python scripts/list_flows.py --dataverse-url https://org123.crm.dynamics.com

Or, if DATAVERSE_URL is set in .env or environment:

python scripts/list_flows.py

Default Behavior

By default, lists only enabled flows (statecode = 0, category = 5). Output format:

Found 3 cloud flows:
  [enabled]  Handle Customer Request    (a1b2c3d4-e5f6-7890-abcd-ef1234567890)
  [enabled]  Process Order              (b2c3d4e5-f6a7-8901-bcde-f12345678901)
  [enabled]  Send Notification          (c3d4e5f6-a7b8-9012-cdef-123456789012)

Options

Show all flows (including disabled)

python scripts/list_flows.py --all

Output includes state indicator:

Found 5 cloud flows:
  [enabled]  Handle Customer Request    (a1b2c3d4-...)
  [enabled]  Process Order              (b2c3d4e5-...)
  [disabled] Send Notification          (c3d4e5f6-...)
  [disabled] Old Integration Flow       (d4e5f6a7-...)
  [enabled]  Approval Workflow          (e5f6a7b8-...)

Filter by Copilot Studio agent (bot ID)

python scripts/list_flows.py --bot-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

This filters flows associated with a specific Copilot Studio agent by checking the clientdata for bot references. Useful when an environment has many flows and you only care about flows connected to a particular agent.


What the Script Queries

The script queries the Dataverse workflow entity:

GET /api/data/v9.2/workflows?$filter=category eq 5&$select=workflowid,name,statecode,statuscode,clientdata,resourcecontainerid
  • category eq 5 = cloud flows (not desktop flows, BPFs, etc.)
  • statecode: 0 = enabled, 1 = disabled
  • resourcecontainerid: present if registered with Flow API; null if Dataverse-only
  • clientdata: the full Logic Apps JSON definition (not returned in list, only in export)

Example: Quick Check After CPS Push

After a Copilot Studio push, use --all to see which flows got disabled:

python scripts/list_flows.py --all

If flows show as [disabled], use pa-enable to re-enable them.

More in this playbook

Delivery Itay GuttmanItay Guttman + 1CEO @ engini.ai

Safe to turn on

Use this skill when an agent or person is about to create, change or enable an automation inside someone else's account or a shared environment: "create this workflow", "build it in the customer's account", "turn it on", "go live", "deploy this automation". Produces a proposal the human approves, an automation created in the off state, and a short list of what only the human can finish.

Workflow buildingMIT Romuald CzłonkowskiRomuald CzłonkowskiFounder @ AiAdvisors

n8n agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output, output parser, RAG, vector store, a chat assistant/bot, or human-in-the-loop review. Covers Agent-vs-chain-vs-classifier choice, the model/memory/tools/outputParser slots, tool names/descriptions as prompt, structured output with autoFix, memory, RAG, human review, and chat topologies.

Workflow buildingMIT Romuald CzłonkowskiRomuald CzłonkowskiFounder @ AiAdvisors

n8n agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output, output parser, RAG, vector store, a chat assistant/bot, or human-in-the-loop review. Covers Agent-vs-chain-vs-classifier choice, the model/memory/tools/outputParser slots, tool names/descriptions as prompt, structured output with autoFix, memory, RAG, human review, and chat topologies.

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.