Power Platform Mentor
Powerful agent for power, platform, expert, providing. Includes structured workflows, validation checks, and reusable patterns for data ai.
Power Platform Mentor
An expert agent for Microsoft Power Platform development covering Power Apps (Canvas and Code-first), Power Automate flows, Dataverse modeling, and the broader Power Platform ecosystem for building enterprise business applications.
When to Use This Agent
Choose Power Platform Mentor when:
- Building Power Apps canvas or code-first applications
- Creating Power Automate flows for business process automation
- Designing Dataverse data models and security configurations
- Integrating Power Platform with Microsoft 365, Azure, and third-party services
- Implementing ALM (Application Lifecycle Management) for Power Platform solutions
Consider alternatives when:
- Building custom web applications outside Power Platform (use a web dev agent)
- Working with Power BI specifically (use a Power BI agent)
- Building Azure Functions or Logic Apps without Power Platform integration
Quick Start
# .claude/agents/power-platform-mentor.yml name: Power Platform Mentor model: claude-sonnet-4-20250514 tools: - Read - Write - Bash - Glob - Grep prompt: | You are a Microsoft Power Platform expert. Build enterprise applications with Power Apps, automate processes with Power Automate, and design Dataverse data models. Follow Microsoft best practices for governance, security, and ALM.
Example invocation:
claude --agent power-platform-mentor "Design a leave request system with a Power Apps canvas app, Power Automate approval flow, manager notifications, and Dataverse storage with proper security roles"
Core Concepts
Power Platform Components
| Component | Purpose | Best For |
|---|---|---|
| Power Apps Canvas | Drag-and-drop app builder | Custom UI, quick apps |
| Power Apps Code Apps | Code-first development | Complex logic, reusability |
| Power Automate Cloud | Cloud workflow automation | Approvals, notifications, integrations |
| Power Automate Desktop | Desktop RPA | Legacy system automation |
| Dataverse | Relational data platform | Structured business data |
| Power Pages | External-facing websites | Customer portals |
| AI Builder | AI model integration | Document processing, predictions |
| Copilot Studio | Conversational AI | Chatbots, virtual agents |
Dataverse Best Practices
Table Design:
βββ Use standard tables when they fit (Account, Contact)
βββ Custom tables for unique business entities
βββ Choice columns instead of related lookup tables for small sets
βββ Polymorphic lookups for flexible relationships
βββ Calculated/rollup columns for derived data
Security Model:
βββ Business Units β hierarchical org structure
βββ Security Roles β CRUD permissions per table
βββ Teams β group-based access
βββ Field-level Security β sensitive column protection
βββ Sharing β exception-based record access
Power Automate Flow Patterns
Trigger β Condition β Action β Notification
β β β β
Manual Branch Create Email
Schedule Switch Update Teams
Dataverse Loop HTTP Push
HTTP Filter Parse Adaptive Card
Email Compose Approve Mobile
Configuration
| Parameter | Description | Default |
|---|---|---|
environment | Target Power Platform environment | Development |
solution | Solution for component packaging | Default |
dataverse_prefix | Custom table/column publisher prefix | cr_ |
flow_error_handling | Default error handling pattern | Try-Catch scope |
app_type | Default app creation type | Canvas |
connection_refs | Use connection references | true |
alm_pipeline | ALM deployment pipeline | Azure DevOps |
Best Practices
-
Use solutions for every component, from day one. Solutions package Power Apps, flows, Dataverse tables, and other components together for ALM and deployment. Creating components outside solutions makes them difficult to move between environments. Use a single publisher prefix across your organization and establish naming conventions early. Moving components into solutions after the fact is painful and error-prone.
-
Design Dataverse tables before building apps. The data model shapes everything else. Define tables, columns, relationships, and security before creating the first screen. Use standard tables when they fit (Account, Contact) rather than creating custom equivalents. A well-designed data model makes app building straightforward; a poor one creates workarounds in every screen and flow.
-
Implement error handling in every Power Automate flow. Use Try-Catch scope patterns: wrap actions in a scope, add a parallel scope that runs on failure, and log errors to a tracking table. Without error handling, flows fail silently and users don't know their request wasn't processed. Configure flow owners and failure notification emails so problems are caught immediately.
-
Use environment variables and connection references for deployment. Hardcoded URLs, connection IDs, and configuration values break when moving solutions between environments. Environment variables store configuration per environment. Connection references allow flows to use environment-specific connections without modification. This separation is essential for proper dev β test β production deployment.
-
Follow the principle of least privilege for Dataverse security. Start with no access and add permissions intentionally. Create security roles per business function (Sales Rep, Manager, Admin) rather than per table. Use field-level security for sensitive columns like salary or SSN. Test security roles by impersonating users in different roles before going liveβoverpermissioned roles are a compliance risk.
Common Issues
Canvas app performance degrades with complex galleries and forms. Reduce the number of controls on screen (< 500 recommended), use delegation-compatible functions to push filtering to the server, and minimize the number of data sources per screen. Replace nested galleries with a single flattened collection. Use Concurrent() to load independent data sources in parallel. Pre-filter data in Dataverse views rather than client-side filtering.
Power Automate flows hit throttling limits during bulk operations. Flows that loop over hundreds of records hit the Power Platform API throttle (6,000 requests per 5 minutes per user). Use batch operations (Dataverse batch action) instead of individual create/update actions in loops. For large data operations, use Dataverse bulk delete/import tools or Azure Functions instead of row-by-row flow processing.
Solution import fails between environments. Missing dependencies (tables, connections, environment variables) cause import failures. Before export, run the solution checker to identify issues. Ensure all required components are in the solution or available in the target environment. Use connection references (not hardcoded connections) and environment variables (not hardcoded values). Test the import in a staging environment before production.
Reviews
No reviews yet. Be the first to review this template!
Similar Templates
API Endpoint Builder
Agent that scaffolds complete REST API endpoints with controller, service, route, types, and tests. Supports Express, Fastify, and NestJS.
Documentation Auto-Generator
Agent that reads your codebase and generates comprehensive documentation including API docs, architecture guides, and setup instructions.
Ai Ethics Advisor Partner
All-in-one agent covering ethics, responsible, development, specialist. Includes structured workflows, validation checks, and reusable patterns for ai specialists.