Power Automate Skill
Purpose: Provide veteran-level depth for flow-engineer (and any agent touching flows) on design patterns, troubleshooting, solution-aware best practices, expressions, error handling, performance, and integration with the broader Power Platform ALM story.
When to Use
- Designing or reviewing complex cloud flows (especially solution-aware ones).
- Troubleshooting intermittent failures, throttling, approvals, child flows, or Dataverse trigger issues.
- Needing reference on expressions, run-after configuration, or performance patterns.
- Ensuring flows follow ALM hygiene (connection references, env vars, solution packaging).
How to Use This Skill
- Read this
SKILL.md for the overall playbook and decision framework.
- Consult specific
resources/*.md files on-demand for deep reference (expressions, error handling, etc.).
- Combine with
solution-alm-engineer guidance for packaging, env vars, and pipelines.
Core Playbook
1. Flow Architecture Principles
- Top-level Try-Catch-Finally on every production flow.
- Child flows for any reusable logic used 2+ times.
- Scopes liberally for readability and targeted error handling.
- Prefer solution-aware flows with connection references and environment variables.
- Keep flows lean — refactor large ones into child flows + parent orchestrator.
2. Expression & Dynamic Content Mastery
- Use
outputs(), body(), triggerOutputs() correctly.
- Compose early and often for intermediate values (makes debugging easier).
- Master
coalesce(), if(), equals(), formatDateTime(), split(), join().
- Avoid hard-coded GUIDs, site URLs, list IDs — move to env vars or parameters.
3. Error Handling & Resilience
- Always configure run after on failure paths.
- Use parallel branches for independent actions + join.
- Implement retry policies thoughtfully (exponential backoff for transient errors).
- For Dataverse triggers: use proper filter expressions and depth control to avoid infinite loops.
4. Performance & Scale
- Increase Apply to each parallelism explicitly (often to 50).
- Use batching / Dataverse Web API for bulk operations instead of sequential loops.
- Watch connector throttling limits (consult resources).
- Consider Logic Apps or Azure Functions for very high-volume or complex orchestration.
5. ALM & Solution Hygiene (Critical for git/ADO)
- Never hard-code connections — always use connection references.
- Use environment variables for everything that changes per environment.
- Test import on a fresh environment.
- Keep flow JSON changes reviewable (small, focused changes preferred).
Recommended Resources (read on demand)
resources/expressions-and-dynamic-content.md
resources/error-handling-scopes-child-flows.md
resources/solution-aware-flows-connection-refs.md
resources/dataverse-triggers-best-practices.md
resources/throttling-and-performance.md
This skill expands the knowledge base for the flow-engineer agent and supports the enhanced ALM guidance in solution-alm-engineer.
1---2name: power-automate3description: Veteran-level reference for Power Automate work — expressions, error handling + scopes, child flows, solution-aware flows + connection references, Dataverse triggers, throttling, approvals, performance patterns. Used by `flow-engineer` (primary) and any agent touching flows.4metadata:5 source: https://skillmd.com/skills/mcorbett51090/power-automate6---78# Power Automate Skill910**Purpose:** Provide veteran-level depth for `flow-engineer` (and any agent touching flows) on design patterns, troubleshooting, solution-aware best practices, expressions, error handling, performance, and integration with the broader Power Platform ALM story.1112## When to Use1314- Designing or reviewing complex cloud flows (especially solution-aware ones).15- Troubleshooting intermittent failures, throttling, approvals, child flows, or Dataverse trigger issues.16- Needing reference on expressions, run-after configuration, or performance patterns.17- Ensuring flows follow ALM hygiene (connection references, env vars, solution packaging).1819## How to Use This Skill20211. Read this `SKILL.md` for the overall playbook and decision framework.222. Consult specific `resources/*.md` files on-demand for deep reference (expressions, error handling, etc.).233. Combine with `solution-alm-engineer` guidance for packaging, env vars, and pipelines.2425## Core Playbook2627### 1. Flow Architecture Principles28- **Top-level Try-Catch-Finally** on every production flow.29- **Child flows** for any reusable logic used 2+ times.30- **Scopes** liberally for readability and targeted error handling.31- Prefer **solution-aware flows** with connection references and environment variables.32- Keep flows lean — refactor large ones into child flows + parent orchestrator.3334### 2. Expression & Dynamic Content Mastery35- Use `outputs()`, `body()`, `triggerOutputs()` correctly.36- Compose early and often for intermediate values (makes debugging easier).37- Master `coalesce()`, `if()`, `equals()`, `formatDateTime()`, `split()`, `join()`.38- Avoid hard-coded GUIDs, site URLs, list IDs — move to env vars or parameters.3940### 3. Error Handling & Resilience41- Always configure **run after** on failure paths.42- Use parallel branches for independent actions + join.43- Implement retry policies thoughtfully (exponential backoff for transient errors).44- For Dataverse triggers: use proper filter expressions and depth control to avoid infinite loops.4546### 4. Performance & Scale47- Increase **Apply to each** parallelism explicitly (often to 50).48- Use batching / Dataverse Web API for bulk operations instead of sequential loops.49- Watch connector throttling limits (consult resources).50- Consider Logic Apps or Azure Functions for very high-volume or complex orchestration.5152### 5. ALM & Solution Hygiene (Critical for git/ADO)53- Never hard-code connections — always use **connection references**.54- Use **environment variables** for everything that changes per environment.55- Test import on a fresh environment.56- Keep flow JSON changes reviewable (small, focused changes preferred).5758## Recommended Resources (read on demand)59- `resources/expressions-and-dynamic-content.md`60- `resources/error-handling-scopes-child-flows.md`61- `resources/solution-aware-flows-connection-refs.md`62- `resources/dataverse-triggers-best-practices.md`63- `resources/throttling-and-performance.md`6465This skill expands the knowledge base for the `flow-engineer` agent and supports the enhanced ALM guidance in `solution-alm-engineer`.