We’re introducing three new skills for the Power Pages agentic code plugin for GitHub Copilot and Claude Code CLI that together unlock a missing capability in AI‑assisted site building: server‑side logic. Until now, the plugin could scaffold sites, define data models, wire up Web APIs, configure authentication, and handle deployment but all business logic, cloud flows, and implementation decisions were still manual. These new skills change that predicament.
Meet /add-server-logic, /add-cloud-flow, and /integrate-backend – three skills that complete the application stack. They build on an already working site by introducing secure server-side logic, Power Automate cloud flows, and intelligent backend orchestration for end-to-end functionality.
What’s new
/add-server-logicgenerates secure server-side JavaScript endpoints for validation, secret management, external API calls, and cross-entity operations./add-cloud-flowintegrates existing Power Automate cloud flows into your Power Pages site for approval workflows, notifications, and scheduled automation./integrate-backendanalyzes your prototype, determines the right approach (Web API, Server Logic, and/or cloud flow) for each feature, and orchestrates the complete build sequence.
/add-server-logic: secure server-side endpoints, generated end to end
Server Logic in Power Pages moves critical operations from the browser to the server for improved control, scalability, and security. It’s generally available, so it’s fully supported for production workloads. With server logic, your site can perform complex tasks and integrations without exposing sensitive logic or data on the client side. Server logic enables you to:
- Connect to external services. Integrate securely with REST APIs, Azure Functions, or other business systems, e.g., call the Stripe API to process a payment without exposing your API key. (Tutorial: interact with external services)
- Perform secure data operations. Query, update, or delete Dataverse records with consistent server-side validation, e.g., check inventory levels before accepting an order submission. (Tutorial: interact with Dataverse tables)
- Run custom logic. Calculate totals, enforce business rules, or enrich data with external lookups before returning results, e.g., aggregate data across multiple tables into a single global search response.
- Manage secrets server-side. Store credentials and API keys on the server, never in client code, e.g., authenticate with Microsoft Graph to upload documents to SharePoint. (Tutorial: interact with Microsoft Graph and SharePoint)
The /add-server-logic allows you to describe what you need in plain language, and it generates the server-side endpoint, web role assignments, table permissions, a typed client-side service, and component updates.
Here’s an example. Say your order form needs to validate inventory before accepting a submission:
You: "/add-server-logic Add validation that rejects orders when quantity exceeds inventory"
Plugin:
→ Creates server-logic/validate-order.js (server-side endpoint)
→ Assigns Authenticated Users web role
→ Verifies table permissions for cr_inventories
→ Creates src/services/serverLogic/validateOrder.ts (typed client)
→ Updates OrderForm.tsx to call validateOrder() before submit
Or say your site needs a global search that queries across multiple Dataverse tables (products, orders, and knowledge articles) and returns unified results. That kind of cross-entity aggregation can’t run from the browser in a single call:
You: "/add-server-logic Add a global search endpoint that searches across products,
orders, and knowledge articles and returns combined results"
Plugin:
→ Creates server-logic/global-search.js (server-side endpoint)
→ Queries cr_products, cr_orders, and cr_knowledge_articles
→ Aggregates and ranks results server-side
→ Assigns Authenticated Users web role
→ Verifies table permissions for all three tables (Read)
→ Creates src/services/serverLogic/globalSearch.ts (typed client)
→ Updates SearchPage.tsx to call globalSearch() on input
Before generating any code, a built-in Server Logic Architect agent analyzes your use case and presents a proposal for your review.
/add-cloud-flow: Power Automate integration from your site
Not everything belongs in a server-side endpoint. Approval workflows, email notifications, and event-driven automation are better suited to Power Automate cloud flows. The /add-cloud-flow skill integrates an existing cloud flow into your Power Pages site. It does not create new cloud flows. You build the flow in Power Automate, and the skill handles the integration: registering the flow with your site, generating the client-side code to trigger it, and wiring up data exchange between the page and the flow.
You: "/add-cloud-flow Connect the supplier approval flow to my application page"
Plugin:
→ Registers the existing cloud flow with your site
→ Generates client-side code to trigger the flow
→ Handles async workflow state and callback patterns
Whether it’s a manager approval step, an order confirmation email, or a nightly data sync, /add-cloud-flow handles the integration so you focus on the business process.
/integrate-backend: let AI choose the right approach
Start here if you’re not sure whether a feature needs Web API, Server Logic, or a cloud flow. /integrate-backend acts as your server-side architect. It analyzes your website, determines the right approach for each feature, and orchestrates the plugin skills to build everything in the correct order.
Take a supplier portal with product listings, order submission, a global search across products and orders, and an invoice approval workflow. Without /integrate-backend, you’d need to figure out that product listings are standard CRUD (Web API), global search requires cross-entity aggregation on the server (Server Logic), and invoice approvals need a multi-step flow (Power Automate). You’d also need to sequence the work: Dataverse tables before Web API, web roles before Server Logic, authentication before server-side endpoints.
The /integrate-backend skill automatically scans your entire website and recommends relevant business processes.
You: /integrate-backend
Plugin:
ANALYSIS
════════
# Feature Approach Reason
1 Product listings Web API Standard CRUD on cr_products
2 Order submission Server Logic Inventory validation + transaction
3 Global search Server Logic Cross-entity aggregation on server
4 Invoice approvals Cloud Flow Multi-step approval workflow
How it works
Every skill follows a propose-then-build workflow. An AI architect agent analyzes your request, designs the solution, and presents it for approval. No code is generated, and no infrastructure is created until you approve. This keeps you in control while eliminating manual configuration.
The decision framework is simple:
- Server Logic. Secrets or API keys, server-side validation, multi-table transactions, external or on-premises service calls, cross-entity search, rate limiting, or Dataverse plugin invocation.
- Cloud flow. Approval workflows, notifications, or scheduled processing.
- Web API. Everything else (standard CRUD operations).
Benefits
- Enhanced security. Business logic, secrets, and API keys stay on the server and are never exposed in the browser.
- Reduced manual configuration. Each skill generates endpoints, permissions, typed services, and component updates end to end.
- Intelligent approach selection.
/integrate-backenddetermines whether each feature needs Web API, Server Logic, or a cloud flow, so you don’t have to.
Get started
Install or update the plugin and PAC CLI
Install the latest plugin and PAC CLI, as both are required. Server logic support was introduced in the latest PAC CLI release, so older versions will not work with /add-server-logic. For the easiest setup, use Quick Install (recommended), which installs all Power Platform plugins, updates PAC CLI, and enables auto-update.
Get started with the Power Pages plugin for GitHub Copilot CLI and Claude Code.
We are looking for your feedback
Your feedback helps us improve the developer experience on Power Pages. Share your thoughts and reach out on the Power Pages Community Forum. You can also submit ideas through the Power Pages Ideas portal.