# Solving Dynamics 365 — Power Platform guides, full text > A practical reference for Microsoft Dynamics 365, Business Central, and the Microsoft business apps ecosystem — guides, comparisons, pricing, troubleshooting, and a glossary. 65 guides in this category. Author: Emil Björk, Microsoft business apps consultant, Gothenburg. Site index: https://www.solvingdynamics365.com/llms.txt. Every guide, every category: https://www.solvingdynamics365.com/llms-full.txt. --- # AI Builder document automation, in depth How AI Builder's document automation works — pre-built models, custom training, output structure, and the right way to integrate it with Dynamics 365. Source: https://www.solvingdynamics365.com/guides/ai-builder-document-automation-in-depth Section: Power Platform / Copilot & AI Published: 2026-05-01 Updated: 2026-08-25 **Document automation** in AI Builder turns PDF, image, and Office document inputs into structured data that flows into Power Apps, Power Automate, and Dynamics 365. It's the workhorse AI capability behind invoice processing, ID-document capture, receipt extraction, and dozens of other business automations. Understanding what it does well — and where it falls short — saves projects. ## Pre-built models Microsoft ships ready-to-use models trained on millions of documents: - **Invoice processing** — extracts vendor name, address, invoice number, date, total, tax, line items, currency. Works for most standard invoice layouts in major languages. - **Receipt reader** — extracts merchant, date, total, line items, payment method. - **ID reader** — extracts ID number, name, date of birth, expiry from passports, driving licences, national IDs of supported countries. - **Business card reader** — extracts contact data from a business card image. - **Text recognition (OCR)** — generic OCR for any printed or handwritten text. Pre-built models require no training; call them and they return structured JSON. ## Custom models When the document layout is specific (a particular vendor's invoice, a custom shipping document, a tailored expense form), you train a **custom document processing model**: 1. Upload sample documents (typically 5–50 examples per layout). 2. Tag the fields to extract — click on the value in each sample, name the field. 3. Train. AI Builder processes for 10–30 minutes and emits a model with reported accuracy. 4. Test on held-out samples; retrain if accuracy is low. 5. Publish. Custom models support both **field-level extraction** (single values like Invoice Total) and **table extraction** (line items with multiple columns). ## Hybrid: pre-built + custom For unusual vendor invoices that the pre-built invoice model handles poorly, train a custom model just for those vendors and route to it conditionally. Combining the two is common. ## Integration with Dynamics 365 The standard pattern: 1. A document arrives — uploaded to BC's Incoming Documents, dropped in a SharePoint folder, attached to a Dataverse record, or received as an email attachment. 2. A Power Automate flow triggers, passes the document to an AI Builder model. 3. The model returns the structured extraction. 4. The flow validates, transforms, and creates the appropriate Dynamics 365 record — a draft purchase invoice in BC, a Dataverse case, an expense entry in Project Operations. 5. A human reviews, corrects (the corrections feed back as model retraining data), and posts. ## Output structure Each model returns a JSON object with field names, values, and confidence scores. Flows can branch on confidence — high-confidence extractions auto-post; low-confidence go to human review. ## Accuracy and feedback Custom models report training and held-out accuracy. Real-world accuracy depends on document quality (scanned vs digital), layout consistency, and language. Build the feedback loop: every human correction is retraining data; periodic retraining keeps the model current. **Limits.** - Hand-written documents are harder than typed. - Very poor scan quality degrades all models. - Languages beyond the top 20 have less coverage in pre-built models. - Very complex multi-table layouts may need pre-processing (split into pages, region-of-interest) before extraction. ## Credits AI Builder runs on a credit model — each model invocation consumes credits from the tenant's pool. Budget credits against expected volume; capacity add-ons are available. ## Operational reality Don't aim for 100% automation. Aim for 80% extraction accuracy with 20% human review; productivity gains are dramatic, edge cases stay safe. --- # AI Builder explained Microsoft's no-code AI model library inside the Power Platform — pre-built models, custom training, and what AI Builder is good at. Source: https://www.solvingdynamics365.com/guides/ai-builder-explained Section: Power Platform / Copilot & AI Published: 2026-05-01 Updated: 2026-09-04 **AI Builder** is the no-code machine-learning capability inside the Power Platform. It exists to put trained ML models in the hands of makers — citizen developers, business analysts, power users — without needing data scientists, Python notebooks, or Azure ML knowledge. For Dynamics 365 customers, AI Builder is the cheap, fast way to add AI to a Power App or Power Automate flow without an enterprise data-science programme. ## Pre-built models Microsoft ships ready-to-use models for common business tasks: - **Form processing** — extract structured data from invoices, receipts, IDs, and custom forms with a UI for training on samples. - **Object detection** — locate and count objects in images (boxes, pallets, equipment). - **Sentiment analysis** — score text for positive/negative/neutral tone across many languages. - **Key phrase extraction** — pull out salient terms from text. - **Language detection** — identify the language of a document. - **Text translation** — translate between languages. - **Business card reader** — extract name, title, email, phone from a card image. - **Receipt reader** — extract structured line items from receipt photos. - **Text recognition (OCR)** — extract printed and handwritten text from images. - **Category classification** — classify text into a custom taxonomy. ## Custom models Beyond the pre-built set, AI Builder supports **custom-trained models** for prediction, category classification, entity extraction, and form processing. Training is point-and-click: provide labelled data from Dataverse or a file, the system trains, and reports accuracy. Re-training on a schedule keeps models current. ## Where models run Trained models live as **AI Builder assets** in an environment. They're invoked from: - **Power Automate** flows — call the model as an action; pass inputs, receive outputs. - **Power Apps** — invoke the model from a button or screen. - **Dataverse plug-ins** — call from server-side logic. - **Direct APIs** — for programmatic use. ## Integration with Dynamics 365 Common use cases: - **Invoice automation** — receipts and invoices arrive in a shared mailbox, AI Builder extracts data, a flow posts a draft vendor invoice in Business Central or F&O. - **Lead enrichment** — AI Builder predictions enrich incoming leads with a quality score. - **Customer feedback** — sentiment analysis on case descriptions, with auto-prioritisation. - **Inspection** — object detection during field service inspections flags missing or defective components. ## A worked example: vendor invoice OCR The canonical AI Builder story is invoice OCR. The end-to-end shape: 1. Vendors send PDFs to `invoices@company.com`. A shared mailbox is a monitored source in Power Automate. 2. A cloud flow triggers on new email, filters on attachments with a PDF content type, and drops them into a SharePoint library keyed by month. 3. The flow calls an AI Builder **custom form-processing model** trained on samples from your biggest 20-30 vendors. It returns invoice number, invoice date, currency, subtotal, VAT, total, purchase-order reference (when present), and a line-item collection. 4. A Dataverse row is created in a staging table with confidence scores per field. Any field under a threshold (default 0.75) routes the row to a review queue as a model-driven app; anything above threshold posts straight through. 5. The flow then calls the Business Central or Finance and Operations API to create a draft vendor invoice with the extracted lines, and stamps the source PDF onto the record so an approver can eyeball the original. The two things that make this work are the confidence threshold and the reviewer app. Without a threshold, one bad extraction posts a wrong number to the ledger. Without a reviewer UI, the "human in the loop" becomes an email chain no one owns. ## Custom models Beyond the pre-built set, AI Builder supports **custom-trained models** for prediction, category classification, entity extraction, and form processing. Training is point-and-click: provide labelled data from Dataverse or a file, the system trains, and reports accuracy. Re-training on a schedule keeps models current. The three custom-model tips that trip most projects: - **Minimum training set** is small (5 samples per form template for form processing; the docs give exact numbers per model) but that is a floor, not an aspiration. Aim for 30-50 varied samples per template — mixed layouts, different vendors, degraded scans, and at least one non-English document if the process handles them. - **Drift** is real. A vendor rebrands their invoice, a new tax field appears, and accuracy quietly falls. Track per-field confidence in Application Insights and alert when the 7-day average drops. - **Environment strategy** matters. A model trained in a developer environment does not automatically move to production; it moves via a solution export/import. Bake this into the ALM pipeline from day one, not after the first "why is my model not there" ticket. ## Limits and when to reach for Azure ML or Azure OpenAI AI Builder is not a substitute for Azure ML or Azure OpenAI for sophisticated requirements. Models are limited in size, training data, and customisation. Reach for the Azure services when: - **Model complexity is beyond the templates.** Time-series forecasting on retail SKUs, computer-vision defect detection at pixel-level accuracy, or graph-based fraud detection — none of those fit the AI Builder templates. Azure ML gives you the notebook and the compute. - **The right answer is a language model, not a classifier.** Summarising a case, drafting a response, extracting free-text fields from unstructured documents, or building an internal Q&A assistant — those are Azure OpenAI (or, from inside Copilot Studio, the built-in generative actions). AI Builder's text models are classifiers, not generators. - **Data cannot leave a specific region or subscription.** AI Builder inherits the Power Platform environment's region; if compliance says the training data lives in a specific Azure subscription in a specific region, run it there. - **Volume pushes credit cost above the alternative.** At a few thousand extractions per day AI Builder is cheap and effortless. At tens of thousands per day the credit maths often favours a Document Intelligence resource in Azure billed under consumption. ## Licensing and credit consumption AI Builder is metered in **service credits**. Every model call consumes a number of credits — form processing is a few credits per page, prediction is a fraction of a credit per row, GPT-style generative actions consume more heavily. Credits come from three places: - A **standalone AI Builder capacity add-on** in the Power Platform admin centre, purchased in packs (the exact pack size varies over time). - **Entitlements bundled with certain Power Platform premium licences** — the specific allocation is in the Licensing Guide, changes with waves, and is worth re-reading each release. - **Copilot Studio and per-user Copilot licences** for the generative actions those products invoke on your behalf. Two rules from the field: - **Reserve capacity per environment.** Without a reservation, one runaway flow in dev burns the tenant's shared pool. Reservations let you cap risk and let admins see who used what. - **Instrument every flow that calls a model.** Log the model, the input size, and the returned confidence to Application Insights. The alternative is a monthly credit surprise no one can trace. ## Governance and the Copilot overlap AI Builder used to be the only Microsoft no-code AI on the Power Platform. It now sits alongside **Copilot Studio agents** and the **generative AI actions** available inside cloud flows and canvas apps. The line is: - **AI Builder** for a specific model call embedded in a flow or an app — extract fields from this PDF, score this lead, classify this text. - **Copilot Studio** for a conversational agent that reasons across topics, tools, and knowledge sources. - **Generative AI actions in Power Automate** for a one-off "call GPT with this prompt" step inside an otherwise deterministic flow. They share credit pools, and the Power Platform admin centre reports usage across all of them together — worth remembering when the monthly credit chart spikes and the invoice-OCR flow is not the culprit. ## FAQ recap The full FAQ is at the top of the page; the two most-asked questions in the field are (1) "will AI Builder be replaced by Copilot Studio?" — no, they solve different problems, and Microsoft has kept improving both — and (2) "how do I stop credit runaway?" — reserved capacity plus per-environment DLP that blocks the AI Builder connector from experimental environments. ### Frequently asked questions **What pre-built models does AI Builder include?** Form processing (invoices, receipts, IDs, custom forms), object detection, sentiment analysis, key phrase extraction, language detection, text translation, business card and receipt readers, OCR text recognition, and category classification. **Where can an AI Builder model be called from?** Power Automate flows as an action, Power Apps from a button or screen, Dataverse plug-ins from server-side code, and directly through its APIs. Models live as AI Builder assets in an environment. **What is the most common Dynamics 365 use case?** Invoice automation: documents arrive in a shared mailbox, AI Builder extracts the fields, and a flow creates a draft vendor invoice in Business Central or Finance and Operations. Lead scoring, case sentiment prioritisation, and object detection during field inspections are the next most common. **How is AI Builder licensed?** Through AI Builder credits, sold separately or bundled with some Power Platform licences. Credit consumption is the most common budget surprise, so track it from the first production flow. **When is AI Builder the wrong tool?** For sophisticated or very high-volume machine learning. Models are limited in size, training data, and customisation; Azure ML or Azure OpenAI is the right platform once those limits bite. --- # AI prompts in Power Platform How AI Builder and Copilot Studio promote prompts as a first-class artefact — prompt design, parameters, grounding. Source: https://www.solvingdynamics365.com/guides/ai-prompts-in-power-platform Section: Power Platform / Copilot & AI Published: 2026-05-01 Updated: 2026-08-25 Across the Power Platform, generative AI is exposed through **AI prompts** — reusable, parameterised templates that call an LLM with consistent instructions and structured inputs. Treating prompts as artefacts (versioned, ALM-deployed, tested) rather than ad-hoc strings is the difference between a flashy demo and a production-grade AI feature. ## Where prompts live Prompts can be authored in: - **AI Builder** — the canonical home; "AI prompts" is a model type alongside form processors, classifiers, etc. - **Copilot Studio** — embedded in topic logic and agents. - **Power Automate** — invoked from flows. - **Power Apps** — invoked from canvas apps directly. The prompt itself is a Dataverse-stored asset, solutionable, exportable. **Prompt anatomy.** - **Instruction text** — the prompt body, with placeholders. - **Input parameters** — typed values supplied at invocation. - **Output type** — text, table, structured JSON. - **Model selection** — GPT-4, GPT-4o, or other available models. - **Grounding data** — knowledge sources the prompt can reference. ## Designing a prompt A production prompt typically has structure like: 1. **Role and context** — "You are an expert in [domain]. Your job is to [task]." 2. **Input data** — labelled values: "Customer message: {message}. Account history: {history}." 3. **Instructions** — what to produce, format constraints. 4. **Examples** — few-shot examples showing desired output. 5. **Constraints and edge cases** — what not to do, how to handle empty inputs. Most prompt failures trace to vague instructions or missing examples. Iterate with real inputs until the output is reliable. **Output types.** - **Text** — free-form response. Easy to call, hard to parse downstream. - **Structured (JSON)** — defined schema; the model is constrained to produce JSON matching the schema. Far more reliable for downstream automation. Use structured outputs whenever the downstream step needs specific fields. Free-form text is fine for end-user display; downstream automation should rely on structured. ## Grounding A prompt can be grounded in: - **Specific Dataverse rows** — pulled in at invocation. - **Documents** — files in SharePoint, OneDrive, or AI Builder document collections. - **Knowledge sources** — Copilot Studio knowledge. - **Search results** — Microsoft Search or Bing. Grounding reduces hallucinations and aligns output to authoritative data. **Invocation patterns.** - **From a flow** — the "Create text with GPT using a prompt" action. - **From a canvas app** — `AIBuilder.PromptName.Predict({inputs})` Power Fx call. - **From a low-code plug-in** — Power Fx call within plug-in logic. - **From a Copilot Studio agent** — generative actions triggered by intent. ## Versioning and ALM Prompts are versioned in the maker portal. Solutions export the current version; consumers reference the prompt by ID. Promotion through dev → test → prod follows standard solution ALM. Be careful about referencing prompts by name vs by ID — name changes break references. ## Testing The prompt builder has a test pane: - Provide sample inputs. - See the model's output. - Iterate. Production prompts need more than UI testing — a small test harness in Power Automate or a Python script can regression-test prompts against a corpus of representative inputs. ## Cost Each prompt invocation costs AI credits per AI Builder licensing. Credits convert roughly to token usage. High-volume scenarios need careful cost modelling: a prompt firing on every Dataverse Create event at 10K events/day adds up. ## Latency LLM responses take seconds, not milliseconds. UX-blocking calls feel slow. Patterns: - **Async invocation** — kick off the prompt, show "processing", display result when ready. - **Streaming output** — display tokens as they arrive (where supported). - **Caching** — same inputs → same output; cache aggressively. **Common pitfalls.** - **Untested edge cases** — empty inputs, very long inputs, unusual character sets break the prompt. - **Trust-on-first-use** — outputs assumed correct without verification; hallucinations slip into production. - **No versioning hygiene** — prompts edited live in prod; no rollback path. - **Free-form text downstream** — parsing brittle; structured output is the fix. - **Cost overruns** — high-volume invocation without monitoring; surprise bill. - **Prompt injection vulnerability** — user input flowing into prompts without sanitisation; users craft inputs to override instructions. **Prompt injection mitigation.** - **Treat user input as data, not instruction.** Wrap user input in clear delimiters; instruct the model to ignore instructions in user input. - **Validate output** before acting — even if the model is "told" not to produce certain outputs, treat outputs as untrusted. - **Limit privileges** — a prompt that triggers an action shouldn't have full system permissions. ## Operational guidance Treat prompts like code: version, test, deploy through pipelines, monitor in production. The "type into a box and run it" feel of AI Builder makes it easy to skip these practices — and easy to ship fragile AI features that break under real usage. Discipline pays back. --- # ALM with GitHub Actions for Power Platform How to run Power Platform CI/CD with GitHub Actions — Microsoft's official workflows, source structure, and the differences from Azure DevOps. Source: https://www.solvingdynamics365.com/guides/alm-with-github-actions-for-power-platform Section: Power Platform / ALM & governance Published: 2026-05-01 Updated: 2026-08-25 **GitHub Actions** is the second canonical CI/CD path for Power Platform — equivalent in capability to Azure DevOps, increasingly preferred for new projects given GitHub's broader developer mindshare and the integration with the rest of the GitHub ecosystem. ## The Power Platform Actions Microsoft publishes an official GitHub Actions collection — `microsoft/powerplatform-actions` — covering the same surface as the Azure DevOps Build Tools: - `actions-install` — install the `pac` CLI on the runner. - `actions/who-am-i` — authenticate and verify access to a Power Platform environment. - `actions/export-solution` — export solution.zip from an environment. - `actions/pack-solution` / `actions/unpack-solution` — convert between .zip and source folder. - `actions/import-solution` — push a solution into an environment. - `actions/publish-solution` — publish customisations. - `actions/check-solution` — run Solution Checker. - `actions/upgrade-solution` — managed solution upgrade flow. - `actions/reset-environment` — wipe a sandbox. - `actions/copy-environment` — clone an environment. These are composable in `.github/workflows/` YAML files. ## Typical workflow A standard repo would have: - `.github/workflows/ci.yml` — runs on PR and main commits. Packs the solution, runs solution checker, runs any unit tests, publishes an artefact. - `.github/workflows/deploy-uat.yml` — manually triggered or auto on main merge. Imports the latest packaged solution to UAT. - `.github/workflows/deploy-prod.yml` — manually triggered with approval gate. Imports to production. ## Authentication Two patterns: - **Service principal** — register an app in Entra ID, configure secrets in GitHub repository settings. The workflow authenticates with client ID + secret (or certificate, preferred for higher security). - **OIDC / federated identity** — newer approach. GitHub Actions issues a short-lived OIDC token to Azure; Azure validates and grants access. No long-lived secrets to manage; rotation is automatic. OIDC is the recommended pattern for new repositories. ## Environments and protection rules GitHub Actions **environments** correspond to Power Platform environments. Each GitHub environment can have: - **Protection rules** — required reviewers before a workflow targeting this environment runs. - **Deployment branches** — only allow deploys from specific branches. - **Environment-specific secrets** — separate credentials per environment. - **Wait timers** — delay deployment to allow review window. A typical setup: PR workflows run on any branch; deploys to UAT require merge to `main`; deploys to Production require manual approval and only from `main`. ## Source structure Same as Azure DevOps — unpacked solution as folders of YAML / XML / JSON files in source control, with `pac solution pack` reconstructing the .zip at build time. ## ALM for non-solution work Some Power Platform work doesn't live in solutions cleanly: SharePoint configuration, Office 365 tenant settings, Azure resources, custom connector definitions. GitHub Actions handles these too via: - **Azure CLI** — provision Azure resources. - **Microsoft Graph PowerShell** — configure Entra and M365. - **PnP PowerShell** — SharePoint provisioning. - **Custom scripts** — invoke any API. A single workflow can deploy across the full estate, not just the Power Platform solution. **Compare to Azure DevOps.** | Aspect | Azure DevOps | GitHub Actions | |---|---|---| | Microsoft official actions | ✓ (Build Tools) | ✓ (powerplatform-actions) | | OIDC support | ✓ | ✓ (newer, simpler) | | Approval gates | ✓ (rich) | ✓ (good) | | Marketplace breadth | Good | Largest | | Cost | Per-user | Per-minute | | Tight Microsoft ecosystem | More legacy ties | More modern | Both work; GitHub Actions is the choice for new projects in most organisations. ## Operational reality Like any CI/CD, GitHub Actions for Power Platform pays back over time. Invest a week in setting it up; reap the benefits across every deployment from then on. --- # Attended vs unattended RPA in Power Automate Desktop How attended and unattended RPA differ in Power Automate — modes, licensing, machine management, and the use cases where each fits. Source: https://www.solvingdynamics365.com/guides/power-automate-attended-vs-unattended-rpa Section: Power Platform / Power Automate Published: 2026-05-01 Power Automate Desktop (PAD) automates desktop applications via robotic process automation — driving Windows UIs, web browsers, terminal applications programmatically. Two execution modes shape how PAD runs: **attended** (with a user) and **unattended** (lights-out, no user). The choice has licensing, infrastructure, and operational implications. ## Attended RPA A user is present: - User starts the automation; bot runs alongside. - User may interact between bot steps. - User sees and can intervene if needed. - One execution per user session. ## Unattended RPA No user present: - Bot runs on a dedicated machine. - Scheduled or triggered automatically. - Runs through a queue. - Many automations across many machines possible. **Choosing between modes.** - **Attended** — for tasks where the user benefits (data lookup, form-fill assistance, side automation while doing other work). User-pace. - **Unattended** — for tasks running outside user's day (overnight reports, weekend processing, scheduled tasks). Machine-pace. **Licensing.** - **Attended** — bundled in Power Automate per-user plans or per-bot. - **Unattended** — separate Power Automate "unattended bot" SKU; per concurrent bot per machine. Unattended is materially more expensive because it's running 24/7 capacity. ## Machine management Each unattended bot needs a Windows machine: - **Power Automate machine** — Windows VM registered with the Power Automate service. - **Machine groups** — pool of machines for load balancing. - **Connection persistence** — agents stay connected to the cloud service. For unattended at scale, machine fleet management becomes infrastructure work. **Setup for unattended.** 1. Provision Windows VM with PAD agent installed. 2. Register the machine with Power Automate. 3. Configure user account that bot will run as. 4. Test connectivity to PAD cloud service. 5. Schedule or queue the desktop flow. The VM runs continuously; bots execute as scheduled. **Power Automate desktop machine groups.** - Multiple machines pooled. - Cloud service distributes work. - Provides redundancy. - Scales horizontally. For organisations with high unattended bot volume, machine groups are essential. **Triggers for unattended.** - **Scheduled** — cron-style. - **Event-based** — Dataverse event, SharePoint event, etc. - **Manual** — admin triggers ad hoc. - **From cloud flow** — Power Automate cloud flow invokes desktop flow. The cloud flow → desktop flow pattern is the most common: orchestration in cloud, desktop bot for the UI work. ## Bot account Bot runs as a specific Windows user: - Dedicated service account. - Stored credentials. - Permission to applications being automated. The bot's permissions = the user's permissions; respect least-privilege. **Concurrency.** - **One bot per machine at a time** — typically; some scenarios allow parallel sessions. - **Multiple machines for parallelism.** - **Queueing** — work waits in queue; processed FIFO. **Comparison patterns.** - **High-volume back-office** — unattended scale. - **User-assistive** — attended. - **Periodic batch** — unattended scheduled. - **On-demand desktop tasks** — attended on user trigger. **Reliability considerations.** - **Application UI changes** break bots. - **Windows updates** can affect bot behaviour. - **Network blips** disrupt unattended runs. Bots in production need monitoring and recovery patterns. **Common pitfalls.** - **Treating attended as unattended.** Running long-running automations on user's machine; user productivity blocked. - **Bot account credentials in plain text.** Security violation; use Key Vault references. - **No exception handling.** Bot fails halfway; partial state. - **No idempotency.** Re-running breaks data. - **Single bot for all work.** Bottleneck; queue grows. - **No monitoring.** Bot runs daily; one day fails; nobody notices for a week. **Production-grade RPA.** - **Machine groups for redundancy.** - **Monitoring dashboards.** - **Alerting on failures.** - **Idempotent bot design.** - **Exception handling at every step.** - **Documented runbooks for common failures.** - **Periodic UI regression checks** — automation tested when target apps update. ## Reconciliation After unattended runs: - Did each scheduled run complete? - Did each record process correctly? - Are there discrepancies vs source system? Bots can silently fail; reconciliation surfaces it. ## RPA vs API Always prefer API when possible: - API more reliable than UI scraping. - API faster. - API less brittle to UI changes. Use RPA when API isn't available — legacy applications, terminal-based systems, web apps without APIs. ## Strategic positioning Unattended RPA is genuine automation at scale; attended is user-assistive productivity. Both have places. The licensing and infrastructure for unattended is material; weigh against the labour savings. For high-volume, repetitive desktop tasks where no API exists, RPA pays back; for lower-volume or where APIs are available, alternatives often win. Plan capacity, monitoring, and process discipline before scaling RPA broadly. The technology works; the operational maturity around it is what determines success. ### Frequently asked questions **What is the difference between attended and unattended RPA?** Attended desktop flows run with a user present who starts them and can intervene. Unattended flows run lights-out on a dedicated, registered Windows machine, triggered by a schedule, an event, or a cloud flow, and queue across machine groups. **How is unattended RPA licensed?** Through a separate Power Automate Process (per bot) licence rather than the per-user Premium plan, which covers attended use. A bot on a machine executes one unattended run at a time, so concurrency needs more bots or more machines. **What account does an unattended bot run as?** A dedicated Windows service account with stored credentials and only the application permissions it needs. Keep the credentials in a Key Vault reference, never in plain text. **Should I use RPA when an API exists?** No. APIs are faster, more reliable, and immune to UI changes. Reserve RPA for legacy applications, terminal systems, and web apps with no API. --- # Building agents with Copilot Studio How to design Copilot Studio agents — topics vs generative answers, knowledge grounding, actions, multi-turn dialogs, and operational patterns. Source: https://www.solvingdynamics365.com/guides/building-agents-with-copilot-studio Section: Power Platform / Copilot & AI Published: 2026-05-01 Updated: 2026-08-25 Building a useful Copilot Studio [agent](https://www.solvingdynamics365.com/glossary/agent) is straightforward in mechanics and demanding in discipline. The platform is generous; the design choices around it decide whether the agent is a hit or a forgotten experiment. ## Decide what the agent is for Before opening Copilot Studio, write down one sentence: "This agent helps [audience] do [task] by [capability]." If you can't write that sentence cleanly, the agent will sprawl. The good ones are narrow. ## Topics vs generative answers Two complementary mechanisms: - **Topics** are structured conversation paths — named triggers, branching nodes, prompts, variable-setting, conditional branching, calls to actions. Topics are deterministic: given input X, do exactly Y. The right pattern for **critical flows** ("reset my password", "open a ticket", "check my order status") where you need predictable behaviour, hand-off paths, and audit. - **Generative answers** use the LLM to synthesise responses from connected **knowledge sources** (SharePoint, websites, documents, Dataverse). The right pattern for **the long tail** of "how do I" questions where authoring an explicit topic for each variation would be infeasible. A well-designed agent has 10–30 topics covering critical flows and generative answers picking up the rest. **Knowledge sources.** - **SharePoint sites** — index your internal documentation, knowledge base, policy docs. - **Public websites** — point at a public domain for indexed retrieval. - **Dataverse tables** — answer questions grounded in your CRM data. - **File uploads** — for static reference content. - **External services** — through custom connectors. Citations link generative answers back to the source, so users can verify and audit can review. ## Actions Actions let the agent *do* things, not just *answer*. Built-in actions can call Power Automate flows, REST APIs, Dataverse operations, or third-party connectors. The agent decides when to call an action based on the conversation and the action's description, so write action names and descriptions clearly — they're how the LLM matches user intent to capability. ## Multi-turn dialogs Topics support multi-turn dialogs with variables, conditional branches, and user clarifications. When the agent needs information before acting (e.g. "I'll open a case; what's your contact email?"), the dialog gathers it cleanly with validation and fallbacks. ## Hand-off When the agent can't help, hand off gracefully. Configure escalation to a human agent through Omnichannel for Customer Service, or to a team via Teams, or to email — whichever fits the channel. ## Channels A single agent publishes to Teams, the web, Power Pages, WhatsApp, SMS, Facebook Messenger, Omnichannel for Customer Service. Channel-specific tweaks (e.g. card layouts for adaptive-card-capable channels) handle the variation. ## Testing The Copilot Studio designer includes a test pane with conversation playback and an issue tracker. Build a regression test set — known good prompts and their expected behaviour — and re-run before publishing. ## Telemetry Every conversation is logged with topic triggers, action calls, knowledge hits, and outcomes. Use the analytics to identify topics that aren't triggering when they should, generative answers that lack source coverage, and topics that escalate too often. ## Governance Microsoft Purview integrates for content policies, sensitive-data detection, and DLP. Multi-environment ALM (dev → test → prod) is supported through solutions. ## Operational reality Ship a small agent. Measure adoption and resolution rate. Iterate weekly for the first month. Grow the topic and knowledge surface based on actual user prompts, not imagined ones. --- # Canvas app offline mode How to build offline-capable canvas Power Apps — local data, sync patterns, conflict handling, and the limits of mobile-first scenarios. Source: https://www.solvingdynamics365.com/guides/canvas-app-offline-mode Section: Power Platform / Power Apps Published: 2026-05-01 Field workers, warehouse staff, on-site technicians, sales reps in flaky connectivity — for any user who works without reliable network, an app that fails offline is an app that fails. Power Apps canvas apps support **offline mode** with local data, scheduled sync, and conflict handling. The architecture is functional; the design patterns to use it well matter. ## The model An offline-capable canvas app: - Pre-loads data from Dataverse (or other connectors) into a local **SQLite database** on the device. - Uses the local data for reads and writes while offline. - Synchronises to the source when connectivity returns. - Handles conflicts when remote data has changed since the local copy. **Configuration.** In the app designer: - **Enable offline** — the app's *Offline* setting in settings. - **Define offline tables** — which Dataverse tables (and filtered subsets) the app caches locally. Configured as **collections** with explicit `LoadData()` / `SaveData()` patterns, or via the newer **Profile** declarative offline support that handles caching automatically. - **Sync schedule** — frequency of background sync when online (typically every 5–15 minutes). - **Manual refresh** — a button users can click to force sync. ## Data scope Offline mode is most useful when each user works with a *subset* of data: - A field technician needs only today's work orders and the related customer / asset records. - A warehouse picker needs only items in their assigned zones. - A sales rep needs only their accounts and recent opportunities. Pre-loading 10,000 records per user is feasible; pre-loading 100,000 is impractical (storage, performance). Define offline profiles narrowly to keep the local dataset focused. **Read patterns offline.** - Standard `Filter()`, `Search()`, `LookUp()` functions work on the local cache transparently. - Performance is typically faster offline than online (no network round-trip). - Related-record lookups need the related records in the offline cache too — pre-load related tables. **Write patterns offline.** - Writes happen to the local store; sync queues the changes for upload. - The user sees their write reflected immediately in the local UI. - On reconnect, queued changes flush to the source. - The UI typically shows a sync status badge — "online", "syncing", "offline with N changes pending". **Conflict handling.** When the user writes offline and someone else has modified the same record online: - **Last-writer-wins (default)** — the local write overwrites the remote on sync, potentially losing the remote change. - **Server-wins** — the local change is discarded if remote has changed. - **Manual conflict resolution** — surface the conflict to the user; let them choose. Most reliable but disruptive. - **Field-level merge** — for non-conflicting field changes on the same record, merge cleanly; only true conflicts surface. The app's design chooses the strategy. For most field-service scenarios, last-writer-wins on the technician's update is acceptable; for sensitive records, manual resolution is safer. ## Photos and attachments Photos taken offline cache locally and upload on reconnect. The app handles the queue; the user just takes the photo and trusts the platform. **Limits.** - **Storage caps** — each app's offline cache has limits (typically a few hundred MB depending on device). - **Not all connectors support offline** — Dataverse is well-supported; SharePoint and SQL have varying degrees; others may not work offline. - **No real-time during sync** — sync gaps mean the local data is stale by definition. - **Complex relationships** can be hard to fully cache — deep many-to-many networks don't always pre-load completely. **Common patterns.** - **Pre-load on app launch** — app opens, syncs immediately, ready for the day's work. - **Pre-load on schedule** — daily morning sync before users start. - **Manual sync action** — a button for explicit sync; users learn when they need it. - **Status indicators** — visible sync status, pending changes count, last sync timestamp. **Common pitfalls.** - **Pre-loading too much** — users wait minutes for sync; performance degrades. - **Not handling conflicts** — last-writer-wins by default loses remote work users care about. - **No retry on sync failure** — temporary network issues leave changes stuck. Implement retry with exponential backoff. - **Stale data assumed fresh** — users act on data that's 4 hours old, not realising. Show sync timestamp prominently. **Operational discipline.** - **Test offline scenarios deliberately** — fly mode, weak signal, intermittent connectivity. Don't just test online with airplane mode briefly. - **Train users** on the offline indicators and behaviour. - **Monitor sync failures** in telemetry; investigate patterns. - **Pilot with field users** before broad rollout. Done well, offline canvas apps transform the productivity of field workers; done badly, they erode trust in mobile work. --- # Center of Excellence Starter Kit How Microsoft's CoE Starter Kit helps tenant-wide governance of the Power Platform — admin, monitor, nurture, theme, and the operational impact. Source: https://www.solvingdynamics365.com/guides/center-of-excellence-starter-kit Section: Power Platform / ALM & governance Published: 2026-05-01 The **Center of Excellence (CoE) Starter Kit** is Microsoft's free, open-source collection of Power Platform components designed to help organisations govern, monitor, and grow citizen development at scale. It's not Microsoft's only governance tooling — many enterprise tenants supplement with custom processes and third-party tools — but it's the default starting point for any tenant serious about Power Platform governance. ## What the kit provides The CoE Starter Kit is a set of Power Apps, Power Automate flows, dashboards, and Dataverse tables that, once installed in a designated CoE environment, do the following: - **Inventory** — discover every Power App, Power Automate flow, custom connector, Power BI workspace, and Power Pages site across the tenant. The inventory refreshes daily, giving the CoE team a complete map of citizen-development activity. - **Owner attribution** — for each asset, identify the owner, last-modified date, environment, and shared-with count. Orphans (assets whose owners have left the organisation) surface clearly. - **Usage telemetry** — for each app and flow, how often is it used? By whom? How many runs per week / month? Helps separate critical from abandoned. - **Compliance** — track which assets have been reviewed for compliance, which need attention, which are flagged. - **Admin tooling** — bulk-action tools for the CoE team: bulk-share apps with new users, bulk-disable orphaned flows, bulk-export inventory for analysis. - **Nurture** — engagement components for the maker community: communications, training events, success stories, app showcases. **The architecture.** The kit installs into a dedicated **CoE environment** — typically a production-grade environment in the tenant's default region. The environment hosts: - The CoE Starter Kit's apps and flows. - A Dataverse database storing the inventory and telemetry data. - A Power BI workspace with the CoE dashboards. Tenant-wide flows in the CoE environment connect to the Power Platform Admin Center APIs (using a service principal with appropriate permissions) and pull data from every other environment. ## The CoE persona The "Center of Excellence" team is typically: - **A small group** (often 2–5 people) in IT or transformation. - **Skilled in Power Platform** — they themselves build apps, troubleshoot citizen developers, set governance. - **Owners of the governance vision** — DLP policies, environment topology, training, communication. The CoE Starter Kit is their daily tooling. **Core dashboards.** - **Tenant overview** — total apps, flows, environments, makers, monthly trend. - **Top makers** — who's building the most, with engagement metrics. - **Compliance status** — apps reviewed vs unreviewed. - **Risk assessment** — assets flagged based on connectors, sharing, sensitivity. - **Adoption trends** — which apps gaining usage, which losing. **Compliance workflows.** The kit ships with workflows like: - **App compliance review** — when a new app is shared widely, prompt the maker to complete a compliance survey (data sensitivity, integration scope, business owner). - **Inactive maker handling** — when a maker hasn't logged in for N days, flag their owned assets for review. - **Critical app review** — high-usage apps get periodic compliance re-review. **Limits.** - **Self-managed** — the kit is provided as-is; Microsoft doesn't support it in the same way as licensed products. Bug fixes come through the open-source community. - **Telemetry depth** — the kit relies on Power Platform admin APIs; some data points aren't available (e.g. detailed flow execution patterns require Application Insights configuration in addition). - **Customisation needed** — every tenant has specific governance needs; the starter kit is a starting point, not a complete solution. Plan to customise. - **CoE team skill required** — installing, configuring, and operating the kit requires real Power Platform expertise. **Operational reality.** - **First month** — install, configure, validate the inventory data. - **First quarter** — build the governance processes around the data; train the CoE team. - **Steady state** — daily review of dashboards; weekly action on flagged items; monthly leadership reporting. The kit doesn't replace the CoE function — it equips it. Without a CoE team and governance discipline, the kit is just dashboards nobody looks at. ## Updating the kit Microsoft releases updates regularly with new features, bug fixes, and dashboards. Updates are imports of the latest version of each component; usually clean but read release notes for breaking changes. ## The alternative paths For tenants with extreme scale or specific governance needs, commercial CoE-style platforms exist (Hitachi Solutions Powr, Avanade Adopt, third-party governance tools) that supplement or replace the starter kit. The kit covers most needs for most organisations. --- # Connection references and environment variables How to make Power Platform solutions portable across environments — connection references for credentials, environment variables for configuration values. Source: https://www.solvingdynamics365.com/guides/connection-references-and-environment-variables Section: Power Platform / ALM & governance Published: 2026-05-01 A Power Platform solution that hard-codes connection IDs and configuration values is a solution that needs manual fixup every time it deploys to a new environment. **Connection references** and **environment variables** are the two mechanisms that make solutions truly portable — abstracting environment-specific details so the same solution package deploys to dev, UAT, and production cleanly. **Connection references.** A **connection reference** is a solution component that abstracts the *kind* of connection a flow or app needs without binding to a specific connection instance. Example: a Power Automate flow that calls SharePoint. In dev, the flow connects to *Dev SharePoint Site*; in UAT, *UAT SharePoint Site*; in prod, *Prod SharePoint Site*. Without connection references, deploying the flow across environments means manually re-pointing the connection each time — error-prone and slow. With connection references: - The flow references a *connection reference* (e.g. `cr_SharePointConnection`) instead of a specific connection. - The connection reference declares the connector type (SharePoint) without the specific credentials. - At import time to each environment, the connection reference is bound to an environment-specific connection (the dev SharePoint connection in dev, etc.). - The flow code stays the same; the binding differs per environment. **Lifecycle.** - **Create the connection reference** in the development environment, bound to a dev connection. - **Use the connection reference** in flows / apps instead of direct connections. - **Export the solution** as managed. - **Import to UAT / prod** — the import process prompts for the target environment's connection to bind to the reference. - **Automate the binding** in pipelines using the Power Platform CLI or solution import parameters. **Environment variables.** An **environment variable** abstracts a *configuration value* — a URL, an API key (via secured environment variable), a numeric threshold, a feature flag — so it can differ per environment. Example: a flow that calls an external API. The API URL is `https://api-dev.example.com` in dev, `https://api-uat.example.com` in UAT, `https://api.example.com` in production. Without environment variables, the URL hard-codes; deploys break. With environment variables: - The flow references an environment variable (e.g. `cr_ApiBaseUrl`). - The variable's *default value* in the solution is the dev URL. - On import to each environment, the import asks for the environment-specific value (or accepts the default). - The flow uses the variable's value at runtime. **Variable types.** - **String** — text values (URLs, names, identifiers). - **Number** — numeric values (thresholds, counts). - **Boolean** — Yes/No flags. - **JSON** — structured configuration. - **Data source** — references to specific Dataverse environments or tables. - **Secret** — secured values pulled from Azure Key Vault. The variable points to a Key Vault URL and secret name; runtime fetches the value at execution. Used for API keys, connection strings, anything sensitive. ## The combined effect A well-designed solution uses both: - **Connection references** for every external connection (SharePoint, SQL, third-party APIs, even Dataverse environments). - **Environment variables** for every value that differs per environment. The result: the same managed solution package deploys to any environment without modification. Bindings happen at import time, automated via CI/CD pipelines. ## Pipeline automation In Azure DevOps or GitHub Actions: - The pipeline holds environment-specific bindings as variables / secrets. - During import, the bindings are supplied through the `pac solution import` parameters or the Power Platform Build Tools task. - The same solution artefact, imported with different binding parameters, produces correctly-configured deployments. **Common pitfalls.** - **Some Flows still bound to specific connections.** Migrating an existing flow to use a connection reference requires explicit migration — Microsoft has improved this but legacy flows may still need cleanup. - **Environment variables not parameterised in pipeline.** If the pipeline imports with default values only, the wrong environment's defaults land in production. Always supply environment-specific values at import. - **Secret variables not properly secured.** If treating sensitive values as plain string variables, they're visible in solution exports. Use Key Vault-backed secret variables. - **Renamed connection references.** Renaming after deployment leaves orphan references in environments; cleanup is manual. ## Operational discipline From day one of a Power Platform solution build, use connection references and environment variables for everything environment-specific. The investment is small at design time; ignoring it produces deploy pain forever. --- # Copilot across Dynamics 365 How Copilot works across every Dynamics 365 app — Sales, Service, Field Service, Finance, Supply Chain, Business Central, Project Operations. Source: https://www.solvingdynamics365.com/guides/copilot-across-dynamics-365 Section: Power Platform Published: 2026-08-27 Updated: 2026-08-27 ### Key facts - There are three distinct Copilot families in Dynamics 365: app-embedded Copilot (included in each app's Enterprise/Premium licence), Copilot for Sales/Service (a separately licensed standalone product that can also connect to Salesforce), and Microsoft 365 Copilot extended with Dynamics 365 plugins. - Business Central's Copilot features (bank reconciliation matching, sales line suggestions, marketing text generation, chart explanations) are included in Essentials and Premium at no separate Copilot licence cost. - Copilot for Sales is licensed either as part of Sales Premium or as an add-on to Sales Enterprise; the standalone version connecting to Salesforce is a separately licensed product with its own pricing. - The most common cause of bad Copilot answers in CRM is data readiness, not the model — stale opportunities, unarchived accounts, and outdated ownership produce bad summaries regardless of which Copilot surface is asking. Microsoft has been shipping Copilot features into every Dynamics 365 app over the past two years, and the shape of what "Copilot" means differs materially between apps. This guide walks each surface, what it actually does, how it's licensed, and where the natural boundaries are between the app-specific Copilots and the wider Microsoft 365 Copilot. The short version: every Dynamics 365 app has a Copilot inside it, tuned for that app's workflow. Two of them — Copilot for Sales and Copilot for Service — also ship as standalone products that connect to Salesforce, so an org that runs Salesforce today can adopt the Copilot experience without moving off it. ## The taxonomy There are three families of Copilot in Dynamics 365, and getting them straight prevents most licensing and rollout confusion. **App-embedded Copilot.** Copilot features inside a specific Dynamics 365 app — draft an email in Sales, summarise a case in Customer Service, translate a bank statement in Business Central. These are included in the app's Enterprise / Premium licence and appear as buttons and panels inside the app itself. **Copilot for Sales / Copilot for Service.** Two standalone Copilot products that sit inside Outlook, Teams, and the Sales / Service app. They bring CRM context into the Microsoft 365 productivity apps — a seller reading an email in Outlook sees the CRM view of the person they're emailing without opening Dynamics 365. Licensed separately from the underlying app, and connectable to Salesforce as an alternative to Dynamics 365. **Microsoft 365 Copilot with Dynamics 365 plugins.** The general-purpose Microsoft 365 Copilot chat (the one in Teams, the Copilot app, and the web) can be extended with Dynamics 365 plugins that let it read pipeline, cases, or projects when asked. Licensed as part of Microsoft 365 Copilot. All three families ultimately call [Azure OpenAI](https://www.solvingdynamics365.com/guides/dynamics-365-and-azure-openai) under the hood — the same underlying model service, wrapped in different licensing and different grounding data depending on which family is doing the asking. The three families overlap in places and complement in others. An organisation running the full stack typically has all three. ## Sales **App-embedded Copilot in Sales** drafts email replies, summarises long email threads, prepares meeting briefings, extracts notes back to CRM after a call, and answers natural-language questions across the pipeline. All inside the Sales app. **Copilot for Sales** does the same job from inside Outlook and Teams — a seller reading an email in Outlook sees the CRM record without switching apps, and can update opportunity fields or log a call from Outlook directly. This is the Copilot that most changes seller behaviour in day-to-day work; sellers live in Outlook, and CRM adoption improves when the CRM lives where the seller already is. Licensed as Sales Premium (bundles Copilot for Sales) or as a Copilot for Sales add-on to Sales Enterprise. Standalone-connected-to-Salesforce is a separately licensed product with its own pricing. ## Customer Service **App-embedded Copilot in Customer Service** handles case summary (the case's history condensed for an agent picking it up mid-flight), email draft replies, conversation summary at end of chat that writes back to the case timeline, knowledge search in natural language, and agent-assist suggestions during a live conversation. **Copilot for Service** brings CRM context into Outlook and Teams for service agents — the same "no switching apps" pattern as Copilot for Sales, but for service scenarios. It also plugs into Salesforce Service Cloud, ServiceNow, and Zendesk for organisations that don't run Customer Service but want the Copilot experience. **Supervisor Copilot** rolls up sentiment monitoring across live conversations, conversation intelligence across calls and chats with keyword tracking, and Copilot-generated summaries of team performance. Licensing follows the Sales pattern: Customer Service Enterprise + Copilot for Service add-on, or standalone Copilot for Service. ## Field Service **Copilot in Field Service** summarises the work order for a technician on arrival, drafts the completion notes from the technician's spoken summary, and finds relevant knowledge articles inside the mobile app. It also helps dispatchers by pre-populating schedule suggestions and flagging at-risk bookings. The technician-side Copilot is the most impactful — technicians spend limited time in front of a keyboard, and a Copilot that turns a two-minute voice summary into a complete work order write-up saves real time per job. Licensed as part of Field Service Enterprise or as an add-on. ## Business Central Business Central was one of the first Dynamics 365 apps to ship serious Copilot features and it has kept extending them. Highlights: - **Bank reconciliation Copilot** matches statement lines to ledger entries and flags exceptions. - **Sales line suggestions** propose line items for a sales order based on the customer's history and current basket. - **Marketing text generation** drafts product descriptions from item attributes. - **Chart explanations** turn a BI chart into a written analysis paragraph. These are targeted features, not a general chat surface — they sit inside the pages where the work happens. Business Central's Copilot approach is deliberately conservative and productivity-focused, which suits the SMB customer base. Included in Business Central Essentials and Premium; no separate Copilot licence. ## Finance and Supply Chain (F&O) **F&O Copilot** is broader in scope than the CRM-side app Copilots because the workflow surface is bigger. Notable features: - **Bank reconciliation** and **vendor invoice capture** (AP automation) both use Copilot for matching and exception handling. - **Demand planning** Copilot proposes forecast overrides and explains the underlying signals. - **Warehouse optimisation** Copilot flags picking-path improvements and layout inefficiencies from the movement data. - **Financial insights** turns the general ledger data into narrative analysis for month-end review. The F&O Copilot roadmap is heavy — Microsoft ships new features every Wave — and the depth of each Copilot varies. Some are polished; some are early-stage. Track the release plans rather than assuming a feature you saw at a Microsoft event is generally available. Included in F&O licensing; no separate Copilot licence for the app-embedded features. ## Project Operations **Copilot in Project Operations** speeds up time entry (draft a week's timesheet from Teams meetings and calendar), assists with project quote configuration, and summarises project health for the weekly delivery review. Less mature than the Sales / Service Copilots but useful, particularly for reducing the friction on consultant time entry — one of the persistent adoption problems in PSA deployments. Included in Project Operations licensing. ## Microsoft 365 Copilot with Dynamics 365 plugins The general-purpose Microsoft 365 Copilot chat can query Dynamics 365 through published plugins. "Show me the top ten deals slipping this quarter" answered by Copilot chat in Teams. "What's my pipeline of open cases from customers above X in revenue" answered in the Copilot app. This is the newest surface and it's genuinely useful for executives and functional leaders who don't live in the Dynamics 365 apps themselves. Licensed as part of Microsoft 365 Copilot ($30/user/month at 2026 pricing); requires the underlying Dynamics 365 app licence for the data being queried. ## Copilot Studio agents **Copilot Studio** (the low-code agent builder) is the extensibility layer for all of the above. A custom agent can be built once and surfaced in Teams, Microsoft 365 Copilot, or the Dynamics 365 apps. Common patterns: - A **customer-service self-service agent** deflects routine cases before they hit human agents. - A **sales assistant agent** in Teams answers seller questions about a specific account by querying Dynamics 365, LinkedIn Sales Navigator, and internal SharePoint. - A **project-status agent** in Copilot chat rolls up project margin, resource load, and next milestones from Project Operations. Copilot Studio is licensed per message pack or per user, depending on the deployment model. It is the right tool when a shipped Copilot doesn't cover a specific workflow and building a custom agent is cheaper than waiting for Microsoft to ship it. ## What matters at rollout Two decisions dominate a Dynamics 365 Copilot rollout. **Which Copilots go first.** The natural sequence is: app-embedded Copilots (they're already licensed if the app is), then Copilot for Sales / Copilot for Service (biggest behaviour change but real license cost), then Microsoft 365 Copilot with Dynamics plugins (broadest reach but again real cost), then Copilot Studio custom agents (highest customisation, highest project cost). **Data readiness.** Every Copilot's quality depends on the data it can read. A Sales Copilot answering pipeline questions against a CRM full of stale opportunities gives bad answers. Cleaning Dataverse master data — closed opportunities marked closed, stale accounts archived, ownership current — is the unglamorous prerequisite that decides whether Copilot delivers value. Rush the licence rollout past this step and Copilot's reputation in the org takes the hit for CRM hygiene problems. ## The short version Every Dynamics 365 app has a Copilot; the pattern is app-embedded (bundled with the app), Copilot for Sales / Service (separately licensed, cross-CRM), and Microsoft 365 Copilot with plugins (broadest). Copilot Studio is the extensibility layer. Data readiness decides whether any of it works well. ## Where to go next The product-level detail lives in [Copilot for Sales features](https://www.solvingdynamics365.com/guides/copilot-for-sales-features), [Copilot in Business Central](https://www.solvingdynamics365.com/guides/copilot-in-business-central), and [Copilot Studio for Dynamics 365](https://www.solvingdynamics365.com/guides/copilot-studio-for-dynamics-365). For building your own agents, [building agents with Copilot Studio](https://www.solvingdynamics365.com/guides/building-agents-with-copilot-studio) and [Copilot agents vs Copilot Studio](https://www.solvingdynamics365.com/guides/copilot-agents-vs-copilot-studio) untangle the options, and [Microsoft 365 Copilot for Dynamics 365](https://www.solvingdynamics365.com/guides/microsoft-365-copilot-for-dynamics-365) covers the plugin surface. Current list prices for the seller-side product are on the [Copilot for Sales pricing page](https://www.solvingdynamics365.com/pricing/copilot-for-sales). ### Frequently asked questions **What are the three kinds of Copilot in Dynamics 365?** App-embedded Copilot features included in each app's Enterprise or Premium licence; Copilot for Sales and Copilot for Service, separately licensed products that bring CRM context into Outlook and Teams and can also connect to Salesforce; and Microsoft 365 Copilot extended with Dynamics 365 plugins to query pipeline, cases, or projects from Copilot chat. **Does Business Central charge extra for Copilot?** No. Bank reconciliation matching, sales line suggestions, marketing text generation, and chart explanations are included in Essentials and Premium with no separate Copilot licence. **How is Copilot for Sales licensed?** As part of Sales Premium, or as an add-on to Sales Enterprise. The standalone version that connects to Salesforce is a separately licensed product with its own pricing. **In what order should Copilots be rolled out?** App-embedded Copilots first (already licensed with the app), then Copilot for Sales or Service (biggest behaviour change, real licence cost), then Microsoft 365 Copilot with Dynamics plugins, then Copilot Studio custom agents for workflows nothing shipped covers. **Why does Copilot give bad answers in our CRM?** Data readiness. A Copilot reading stale opportunities, unarchived accounts, and outdated ownership produces bad summaries. Clean Dataverse master data before the licence rollout, or Copilot takes the blame for CRM hygiene problems. --- # Copilot agents vs Copilot Studio How Microsoft's agent strategy splits — Copilot Studio for building custom agents, declarative agents in Microsoft 365 Copilot, autonomous agents. Source: https://www.solvingdynamics365.com/guides/copilot-agents-vs-copilot-studio Section: Power Platform / Copilot & AI Published: 2026-05-01 Microsoft's agent strategy has multiplied entities in the last two years — **Copilot agents**, **agents in Copilot Studio**, **declarative agents**, **autonomous agents**, **Copilot for Dynamics 365** — overlapping but distinct. Untangling the taxonomy is essential for picking the right tool for a specific need. ## The umbrella term: agent Microsoft uses "agent" loosely for any AI-driven assistant that handles user requests. Underneath, the implementations vary in their building blocks, hosting model, licensing, and integration surface. ## Copilot Studio (formerly Power Virtual Agents) A low-code platform for building custom conversational agents. Origin: chatbots; current state: full agent builder with multi-channel publishing. - **Building blocks** — topics, generative answers, actions (Power Automate, custom connectors, Dataverse). - **Channels** — Teams, web, Slack, custom apps, mobile, voice via Azure Communication Services. - **Licensing** — Copilot Studio messages consumed per invocation; per-tenant or per-user packs. - **Use case** — replace IVR, embed in customer-facing portal, internal helpdesk, custom-domain agents. ## Microsoft 365 Copilot The end-user productivity agent embedded in M365 apps (Teams, Word, Excel, Outlook). Operates over the user's M365 graph data: emails, files, meetings, contacts. - **Building blocks** — proprietary; not user-extensible at the core. - **Extension points** — declarative agents and plug-ins. - **Licensing** — per-user M365 Copilot licence. - **Use case** — productivity in everyday M365 work. ## Declarative agents Defined in JSON manifests, deployed to M365 Copilot. A declarative agent extends M365 Copilot for a specific scenario: - **Custom instructions** — system prompt tailored to a domain (e.g. "You are the HR policy expert"). - **Knowledge sources** — specific files, SharePoint sites, or Microsoft Graph endpoints. - **Capabilities and tools** — restricted set of actions. - **Distribution** — through M365 admin or AppSource. Best for domain-specific copilots in M365 without building a full agent. ## Custom engine agents (custom GPTs in M365) Beyond declarative, an agent can be built with custom logic via the Microsoft 365 Agents SDK — a C#/TypeScript SDK for building agents that run on Azure and surface in M365 Copilot. ## Copilot for Dynamics 365 Pre-built agents embedded in Dynamics 365 apps: - **Sales Copilot** — opportunity summaries, email drafting, meeting prep. - **Service Copilot** — case summarisation, response drafting. - **Finance Copilot** — variance analysis, narrative generation. - **Supply Chain Copilot** — exception explanation, demand insights. These are Microsoft-built; customers configure them but don't build them from scratch. ## Autonomous agents A 2024+ category: agents that act on triggers, run continuously, and complete multi-step tasks without conversational interaction. Built in Copilot Studio with the autonomous agent profile: - **Triggers** — Dataverse events, scheduled, external API. - **Actions** — tools, Power Automate flows, knowledge searches. - **Memory** — short-term and long-term context. - **Approvals** — humans-in-the-loop at decision points. Use cases: inbound email triage, document review, supplier onboarding orchestration. **How they fit together.** - **User asks a question in Teams chat** → Microsoft 365 Copilot. If the question is HR-specific, the **HR declarative agent** answers. - **User is in Dynamics 365 Sales** → **Sales Copilot** offers summaries and drafts. - **External customer chats with us via WhatsApp** → **Copilot Studio agent** routes the conversation. - **An email arrives in support inbox at midnight** → **autonomous agent** triages, drafts a reply, and posts for human review. The architectural pattern: M365 Copilot is the productivity surface; Copilot Studio is the build-your-own surface; Dynamics Copilot is the in-app surface; autonomous is the event-driven backbone. **Common confusions.** - **"Should I build a Copilot Studio agent or a declarative agent?"** Declarative agents extend M365 Copilot's chat in M365 apps for a specific knowledge domain. Copilot Studio agents stand alone, multi-channel, often customer-facing. Different surfaces, different audiences. - **"Why are there multiple agents that overlap?"** Microsoft is iterating in public. Some categories will consolidate; others will deepen. Pick based on current capability and roadmap. - **"Can I extend Microsoft 365 Copilot itself?"** Yes, through plug-ins and declarative agents — but not at the core conversational engine level. ## Licensing complexity Each surface has different licensing: - **M365 Copilot** — per user, ~$30/month list. - **Copilot Studio** — per agent, message-pack based. - **Dynamics Copilot** — bundled with the underlying D365 app licence. - **Autonomous agents** — emerging metering (per task, per minute). Cost modelling for production use is non-trivial; involve licensing specialists early. **Common pitfalls.** - **Choosing the wrong surface.** Building a customer chatbot in M365 Copilot when Copilot Studio is the right tool; or vice versa. - **Ignoring grounding.** Agents without good knowledge sources hallucinate. - **No measurement.** Agents shipped without success metrics; nobody knows if they help. - **Over-relying on a single agent type.** Production AI strategy usually involves several surfaces; designing for one limits flexibility. ## Practical strategy For internal productivity, M365 Copilot + declarative agents. For external multi-channel conversations, Copilot Studio. For in-app workflow assistance, Dynamics Copilot. For event-driven multi-step automation, autonomous agents. Pieces compose; the architecture maps to who's interacting and through which surface. ### Frequently asked questions **When should I build a Copilot Studio agent versus a declarative agent?** Declarative agents extend Microsoft 365 Copilot's chat inside Microsoft 365 apps for a specific knowledge domain. Copilot Studio agents stand alone, publish to Teams, web, WhatsApp, voice, and custom apps, and are often customer-facing. Different surfaces, different audiences. **What is an autonomous agent?** An agent built in Copilot Studio that runs on triggers — Dataverse events, schedules, external APIs — and completes multi-step tasks without a conversation, with human approval at decision points. Inbound email triage and supplier onboarding are typical uses. **Can I extend Microsoft 365 Copilot itself?** Yes, through plug-ins and declarative agents, but not at the core conversational engine. Custom-engine agents built with the Microsoft 365 Agents SDK run on Azure and surface in Microsoft 365 Copilot. **How is each Copilot surface licensed?** Microsoft 365 Copilot per user; Copilot Studio through message packs or Copilot credits; the in-app Dynamics 365 Copilots bundled with the app licence; autonomous agents with emerging consumption metering. Model production costs early. --- # Copilot Studio for Dynamics 365 Building AI agents on top of Dynamics 365 with Copilot Studio — topics, knowledge sources, generative answers, and Dataverse integration. Source: https://www.solvingdynamics365.com/guides/copilot-studio-for-dynamics-365 Section: Power Platform / Copilot & AI Published: 2026-05-01 Updated: 2026-09-04 ### Key facts - A Copilot Studio agent combines role and instructions, one or more knowledge sources (Dataverse, SharePoint, websites, uploaded documents, external APIs), actions performed through connectors, and trigger conditions for where it activates. - Topics handle deterministic, transactional flows such as a password reset with explicit steps, while generative answers synthesise responses from knowledge sources on the fly with citations, and the two can trigger each other in the same conversation. - A single agent publishes to Microsoft Teams, a web embed widget, Power Pages portals, Dynamics 365 Customer Service Omnichannel, WhatsApp, SMS, and Facebook Messenger, running the same conversation logic on every channel. - When a question exceeds the agent's ability to answer, it hands off to a human agent through Omnichannel for Customer Service with the full conversation context and any collected variables. - Agents consume messages metered against Copilot Studio capacity, and the cost that most often surprises teams is the human hand-off cost when the deflection rate runs lower than promised, not the per-message price. **Microsoft Copilot Studio** is the low-code platform for building AI agents — conversational and increasingly autonomous — that integrate deeply with Dynamics 365 and the rest of the Microsoft cloud. It is the successor to Power Virtual Agents, with a much heavier generative AI core. For Dynamics 365 customers, Copilot Studio is the standard way to deflect routine support, augment sales sellers, and front-end the data and processes the rest of the platform manages. ## Agents A Copilot Studio **agent** is configured with a *role and instructions* (its job and tone), one or more *knowledge sources* (Dataverse data, SharePoint sites, websites, documents), one or more *actions* (the operations it can perform via connectors), and *trigger conditions* (where it activates — Teams, the web, a Power Pages site, inside Dynamics 365). The agent uses an LLM (Azure OpenAI under the hood) to converse, reason, and decide what to do at each turn — the natural-language part of that reasoning is what [AI prompts in Power Platform](https://www.solvingdynamics365.com/guides/ai-prompts-in-power-platform) formalises as a reusable, parameterised artefact rather than inline text. ## Topics and generative answers Classic agent design used **topics** — structured conversation paths with named triggers and explicit dialog steps. Modern Copilot Studio combines topics with **generative answers** that synthesise responses from knowledge sources on the fly. Topics still handle critical, deterministic flows (e.g. "reset my password" with strict steps); generative answers handle the long tail of "how do I..." questions. ## Knowledge Connect Copilot Studio to: - **Dataverse tables** — query Dynamics 365 data with natural language. - **SharePoint sites** — index documents and pages. - **Public websites** — index a public domain. - **File uploads** — PDFs, Office documents, knowledge articles. - **External APIs** — through Power Platform connectors. The agent answers questions grounded in these sources, with **citations** linking back to the source for verification. ## Actions Beyond reading, agents act. Built-in actions can create cases in Customer Service, update opportunities in Sales, fetch records, post journal entries, send emails, kick off Power Automate flows. Each action is permissioned and respects the user's CRM security. ## Channels A single agent publishes to **Microsoft Teams**, **the web** (embed widget), **Power Pages portals**, **Dynamics 365 Customer Service Omnichannel**, **WhatsApp**, **SMS**, **Facebook Messenger**, and a handful of others. The same conversation logic runs everywhere. When publishing fails or a channel shows no response, [publishing and channel errors](https://www.solvingdynamics365.com/guides/copilot-studio-publishing-and-channel-errors) decodes the common causes. ## Hand-off Agents recognise when a question is beyond them and **hand off to a human agent** via Omnichannel for Customer Service, with the full conversation context. ## Governance Microsoft Purview integrates for content filtering, content tracking, and data loss prevention. Multi-environment ALM (dev → test → prod) is supported via solutions. ## Operating reality Start small. Pick one well-defined use case (FAQ deflection, an internal HR helper), measure deflection and customer satisfaction, and grow from there. ## A concrete first project: Customer Service deflection The most common first Copilot Studio project on a Dynamics 365 estate is Tier-0 case deflection on the customer-facing web channel. A defensible shape: 1. **Scope one product line.** Not the whole catalogue — pick one where the knowledge base is well-curated and case volume is high. Faster wins land the political capital for the second project. 2. **Ground on your own KB.** Point the agent at the Customer Service knowledge base (Dataverse) plus a small SharePoint site of PDFs — the two libraries most contact centres already maintain. Skip public web indexing at first; it dilutes the answer quality. 3. **Add one topic per compliance-sensitive intent.** "Reset password" and "cancel subscription" belong in explicit topics with deterministic steps; generative answers on the rest. 4. **Wire hand-off to Omnichannel from day one.** Every conversation the agent cannot answer with high confidence must open a case with the full transcript attached, so the human agent is not starting from zero. 5. **Publish to the web widget first**, Teams second. The web widget is the honest test — anonymous, unfiltered traffic. Teams inside the org is easier and therefore less informative. 6. **Report weekly** on deflection rate, customer satisfaction, and topics with the lowest confidence. Feed the low-confidence topics back into either better KB content or a new explicit topic. Every part of that pattern is repeatable across sales, HR, and IT help agents — the only pieces that change are the knowledge sources and the hand-off destination. ## What to build with topics vs generative answers A rule of thumb after a dozen projects: - **Use a topic** when the process is transactional, has verifiable pre-conditions (user identity, subscription status, region), and a wrong answer has cost (a refund, a security event, a compliance breach). Password resets, refund flows, "cancel my account", MFA re-enrolment. - **Use generative answers** for the open-ended "how do I…" and "what does X mean" questions. They synthesise from your knowledge and cite the source, and are what the LLM is actually good at. - **Combine them** by triggering a topic *from* a generative answer. The agent decides the user needs a password reset, the topic collects the identifiers, the flow executes. ## Governance, DLP, and cost Copilot Studio agents inherit the Power Platform environment they live in — its data-loss-prevention policies, its region, its solution boundaries. Three governance checks worth doing before the first agent goes live: - **DLP:** the Copilot Studio connector, the [AI Builder](https://www.solvingdynamics365.com/guides/ai-builder-explained) connector, and any premium data connectors the agent uses should live in a policy group that matches your data classification. A customer-facing agent must not reach non-approved data sources by accident. - **Environment strategy:** dev / test / prod as separate environments with solution-based ALM, and no writable connections from prod to the sandbox. This is a Power Platform best practice; agents make it non-negotiable, because a mid-conversation misroute to test data is user-visible. - **Cost model:** agents consume **messages** metered against your Copilot Studio capacity. Reserve capacity per environment (as with AI Builder credits) and instrument message volume from day one. The number that surprises people is not the per-message cost — it is the human hand-off cost when the agent's deflection rate is lower than promised. ## Where to go next For the build itself, [building agents with Copilot Studio](https://www.solvingdynamics365.com/guides/building-agents-with-copilot-studio); for the taxonomy of Microsoft's agents, [Copilot agents vs Copilot Studio](https://www.solvingdynamics365.com/guides/copilot-agents-vs-copilot-studio). Reaching outside Microsoft is covered in [integrating agents with external APIs](https://www.solvingdynamics365.com/guides/integrating-copilot-studio-agents-with-external-apis) and [MCP servers](https://www.solvingdynamics365.com/guides/integrating-copilot-studio-with-mcp-servers). The wider Copilot picture is [Copilot across Dynamics 365](https://www.solvingdynamics365.com/guides/copilot-across-dynamics-365). ### Frequently asked questions **What is a Copilot Studio agent made of?** A role and instructions, one or more knowledge sources (Dataverse tables, SharePoint, websites, uploaded documents, external APIs through connectors), actions it may perform, and trigger conditions for where it activates. A large language model on Azure OpenAI drives the conversation and decisions. **What is the difference between topics and generative answers?** Topics are structured conversation paths with explicit steps, right for deterministic flows such as a password reset. Generative answers synthesise responses from knowledge sources on the fly and handle the long tail of how-do-I questions, with citations back to the source. **Where can a Copilot Studio agent be published?** Microsoft Teams, a web embed widget, Power Pages portals, Dynamics 365 Customer Service Omnichannel, WhatsApp, SMS, Facebook Messenger, and more — the same conversation logic runs on every channel. **Can an agent hand off to a human?** Yes. When a question exceeds it, the agent hands off through Omnichannel for Customer Service with the full conversation context, the identified topic, and any collected variables. **How should a first Copilot Studio project be scoped?** Small: one well-defined use case such as FAQ deflection or an internal HR helper, with deflection and satisfaction measured before growing. Governance through Purview and solution-based ALM across dev, test, and production is supported from the start. --- # Copilot Studio publishing and channel errors Why a Copilot Studio agent won't publish, a topic won't trigger, or a channel (Teams, a website) shows the wrong or no response — decoded. Source: https://www.solvingdynamics365.com/guides/copilot-studio-publishing-and-channel-errors Section: Power Platform / Troubleshooting Published: 2026-09-06 Copilot Studio agents fail in two very different places: **authoring/publishing** (the agent won't build or won't take a new version live) and **channel delivery** (a published agent behaves correctly in the test pane but not on the channel end users actually reach). Diagnosing which half you're in narrows the fix considerably. ## The agent publishes without error, but end users still see old behaviour **Symptom.** A topic or knowledge-source change is saved and the agent is republished, but users on a live channel keep experiencing the previous behaviour. **Cause.** Each channel connection (Teams, a custom website widget, a Dynamics 365-embedded agent) caches or independently activates the published agent version; a successful publish in the maker portal does not always propagate instantly to every connected channel. **Fix.** Reconnect or refresh the specific channel (in Teams, this can mean the app needs to be reinstalled or the conversation restarted; for a website widget, a hard refresh of the embed script) rather than assuming a second publish in the maker portal will push it through. **Prevention.** Treat "publish, then verify on the actual channel, not just the test pane" as the standard release step, since the test pane always reflects the latest authored version regardless of what channels have picked up. ## A topic that should trigger on an obvious phrase never fires **Symptom.** A topic with what looks like an appropriate trigger phrase is never selected, and the conversation either falls through to generative answers or to a fallback topic instead. **Cause.** Trigger matching is a best-match process across every topic's phrases at once — a broader or more generic phrase on a different topic (or the generative-answers layer, when enabled, intercepting before topic matching completes) can consistently out-compete a narrower phrase that looks like it should have matched. **Fix.** Test the exact phrase in isolation in the test pane with tracking enabled, which shows which topic (or the generative layer) actually claimed the message and why — broadening or adding more specific trigger phrases, or explicitly excluding the phrase from a competing generic topic, resolves most cases. **Prevention.** Design trigger phrases from specific to general and review overlap across topics as new ones are added, rather than only reviewing a topic's own phrase list in isolation. ## Knowledge-source answers stop reflecting a recently updated source document **Symptom.** A knowledge source (a SharePoint site, an uploaded file, a public website) is updated, but the agent's generative answers keep citing the old content. **Cause.** Knowledge sources are indexed on a schedule rather than read live on every conversation turn — a recent edit to the underlying document or site does not appear in agent answers until the next indexing pass completes. **Fix.** Allow time for re-indexing (or trigger a manual re-sync where the knowledge source type supports one) before concluding the agent is ignoring the update, and confirm the exact document version the agent is citing via its response citations. **Prevention.** Build in an expected delay between "content team updates a source document" and "agent answers reflect it" into any process that depends on this pipeline, rather than assuming near-real-time freshness. ## A published agent doesn't appear (or appears with the wrong identity) in a Teams channel **Symptom.** After publishing to Teams, the agent either doesn't show up for the intended users, or appears using an unexpected name, icon, or permission scope. **Cause.** Teams channel publishing has its own approval and distribution step (through the Teams admin centre, for org-wide availability) separate from Copilot Studio's own publish action — a Copilot Studio publish makes the agent *available* to push to Teams, it does not by itself complete the Teams-side app approval and rollout. **Fix.** Check the Teams admin centre's app management for the agent's approval and availability status, not just the Copilot Studio publish history, and confirm the intended audience (specific users, a team, or the whole org) was actually targeted in that step. **Prevention.** Document the Teams-side rollout step as part of the release checklist for any agent that ships through Teams, since it is easy for a maker who only has Copilot Studio access to assume a publish there is the whole story. ## Where to go next Building the agent itself is covered in [building agents with Copilot Studio](https://www.solvingdynamics365.com/guides/building-agents-with-copilot-studio); the boundary between Copilot Studio and the built-in app Copilots is in [Copilot agents vs Copilot Studio](https://www.solvingdynamics365.com/guides/copilot-agents-vs-copilot-studio); connecting an agent to outside systems is in [integrating Copilot Studio agents with external APIs](https://www.solvingdynamics365.com/guides/integrating-copilot-studio-agents-with-external-apis). ### Frequently asked questions **Does publishing an agent make it live immediately everywhere?** Publishing updates the agent's own runtime, but each channel (Teams, a custom website, a Dynamics 365 embed) reads from that published version independently — a channel can still show stale behaviour for a short time after publish, and some channels need their own separate reconnect or refresh step, not just an agent publish. **Is a topic that never triggers usually a bug in Copilot Studio itself?** Rarely — it is almost always the topic's own trigger phrases being too narrow, another topic's trigger phrases overlapping and winning first, or the generative-answers layer intercepting the message before a topic-based trigger gets a chance to match. --- # Custom connectors in the Power Platform How to build custom connectors for Power Apps, Power Automate, and Copilot Studio — OpenAPI definitions, authentication, certification. Source: https://www.solvingdynamics365.com/guides/custom-connectors-in-power-platform Section: Power Platform / Custom development Published: 2026-05-01 **Custom connectors** in the Power Platform let you call any HTTP API from Power Apps, Power Automate, and Copilot Studio as if it were a first-party connector. They're how customers and ISVs extend the platform's connector library beyond the hundreds Microsoft ships, and they're the right answer when no out-of-the-box connector exists for the API you need to call. **Anatomy of a custom connector.** - **General info** — name, description, icon, the API host URL. - **Security** — authentication scheme (No auth, Basic, API Key, OAuth 2.0, Microsoft Entra ID). - **Definition** — operations (HTTP verbs and paths), parameters, request/response schemas. - **Code** — optional inline C#-like code (custom **policy templates** or **Liquid code**) to transform requests or responses on the fly. **Three ways to create one.** 1. **From an OpenAPI / Swagger file.** Import the API's OpenAPI definition and the connector is generated automatically. The cleanest path when the source API has a maintained OpenAPI spec. 2. **From a Postman collection.** Import a Postman collection — Power Platform converts it into a connector definition. 3. **From blank.** Define operations one at a time in the custom connector designer. Useful for small APIs without a published spec. **Authentication patterns.** - **No auth** — public APIs only; rare in real business use. - **Basic** — username + password sent in the header. Acceptable for legacy integrations, not for new ones. - **API key** — a single token passed in a header or query parameter. Common. - **OAuth 2.0** — the modern path; supports any OAuth-compliant identity provider. Microsoft Entra ID, Auth0, Okta, Google, Salesforce, etc. - **Microsoft Entra ID** — pre-configured OAuth 2.0 against Entra for service-to-service or delegated calls. ## Throughput and limits Custom connectors share the same Power Platform throttling: per-user per-minute call limits, per-environment limits, and per-tenant aggregate limits. APIs called from custom connectors don't bypass platform throttling. ## Definition cleanliness Spend time on the connector definition. Well-named operations, parameters with examples, response schemas that match actual returns — they're the difference between a connector users love and one that's a constant support burden. Add summaries and descriptions to every operation, parameter, and schema field; they appear in the makers' help. ## Sharing Custom connectors live inside a Power Platform environment. They can be: - **Personal** to one maker (the default when created). - **Shared with users** of the same environment. - **Exported** in a solution and imported to other environments. - **Submitted for certification** to be published in the public connector library, available to all Power Platform users globally — the right path for ISVs whose APIs deserve broad reach. ## ISV-published certified connectors ISVs whose APIs are widely used (Sana Commerce, Continia, Lasernet, others in the BC ecosystem) publish certified connectors that show up in the connector picker for every Power Platform user. The certification process is documented; it includes review for quality, security, and documentation. ## Operational reality Custom connectors are easy to start and surprisingly easy to bork — version drift between the connector definition and the source API breaks flows silently. Treat them as code: version-control the OpenAPI spec, regenerate the connector on each API version, test in dev before promoting. --- # Data loss prevention (DLP) policies in Power Platform How DLP policies in Power Platform restrict connector combinations across business and non-business data — policy design, environment scope. Source: https://www.solvingdynamics365.com/guides/dlp-policies-in-power-platform Section: Power Platform / ALM & governance Published: 2026-05-01 ### Key facts - DLP policies classify every connector into one of three groups — Business, Non-Business, or Blocked — and a single flow or app can only combine connectors from within one group. - Tenant-wide policies apply everywhere by default, while environment-scoped policies override them for a specific environment, a common pattern being a strict tenant default with a relaxed policy for sandbox or dev environments. - Policy enforcement happens both at save time (a flow or app fails to save if it violates policy) and at runtime, and tightening a policy can suspend existing flows that now violate it. - Connector Action Controls add finer granularity than connector-level blocking, allowing a connector but blocking specific actions on it — using SharePoint but not its delete-site action, for example. - Microsoft Purview sensitivity labels integrate with DLP, so content labelled as highly confidential can trigger additional enforcement on top of the connector-group policy. A maker building a Power Automate flow can connect to hundreds of services — Microsoft and third-party. Without governance, a flow could read from SharePoint (business data) and send to Twitter (public-facing) — accidentally exposing sensitive information. **Data Loss Prevention (DLP) policies** in Power Platform classify connectors into groups and restrict their combination within a single flow or app. Designed well, DLP prevents data leakage with minimal friction; designed poorly, it blocks legitimate work and drives shadow IT. ## The policy model Each policy: - **Scopes environments** — applies to specific environments or tenant-wide. - **Classifies each connector** into one of three groups: - **Business** — approved for business data. - **Non-Business** — not approved; commonly limited to specific use cases. - **Blocked** — cannot be used at all. A flow or app can use connectors only within one group, not across groups. So a flow with SharePoint (Business) cannot also use Twitter (Non-Business). **The three groups in detail.** - **Business** — Microsoft 365 connectors (SharePoint, Outlook, Teams), Dataverse, approved enterprise connectors (Salesforce, ServiceNow if approved by the org). - **Non-Business** — connectors approved for non-sensitive use (RSS, weather, Twitter for marketing). - **Blocked** — connectors not allowed at all (third-party file-sharing services with weak controls, untrusted endpoints). A connector defaults to one group; admins classify it explicitly. ## Custom connectors Connectors built in-house land in their own classification: - **Default group** — typically Business since they're built for business needs. - **Per-connector classification** — admins can override. A bring-your-own connector that hits an unapproved API can be blocked. **Tenant-wide vs environment-scoped.** - **Tenant-wide policy** — applies everywhere; default protection. - **Environment policy** — overrides tenant policy for a specific environment. Pattern: strict tenant policy by default; relaxed policy for sandbox / dev environments where experimentation is needed. ## Exemptions Critical for usability: - **Specific apps and flows can be exempted** from a policy. - **Service accounts** can have different policies. - **Admin override** for specific business needs. Without exemption mechanism, every edge case becomes a policy battle. ## HTTP connector specifics The generic HTTP connector is powerful and dangerous. DLP can: - **Block** entirely. - **Allow with URL pattern restrictions** — only HTTPS calls to specific domains. - **Allow with authentication restrictions** — only OAuth. Most regulated environments block generic HTTP outright and require specific connectors. **Policy enforcement.** - **At save time** — flow or app fails to save if it violates policy. - **At runtime** — running an existing flow violating policy halts. - **Existing flows** — when policy is tightened, existing flows that violate are suspended. The runtime suspension is operationally significant — sudden flow failures need maker notification and resolution path. **Maker experience.** - **Connector picker** shows which connectors are available in the current environment. - **Blocked connectors visible but greyed out** with explanation. - **Policy violation message** explains why a combination is rejected. Clear messaging reduces maker frustration; cryptic blocks generate support tickets. **Common policy patterns.** - **Strict tenant default + relaxed dev environments.** - **Per-business-unit policies** — different BUs have different acceptable use. - **Per-data-classification policies** — environments handling sensitive data have stricter policies. - **Layered policies** — multiple policies with priority order. **Reporting.** - **Policy adherence** — which flows/apps are compliant. - **Violation attempts** — what makers tried to do that was blocked. - **Exemption requests** — pipeline of pending approvals. The reporting is what makes DLP a programme, not just a config. Admins look at violation attempts to understand legitimate maker needs and adjust policy. ## DLP and Connector Action Controls A finer-grained mechanism: - Allow a connector but block specific actions. - "Use Twitter but not "Post Tweet." - "Use SharePoint but not delete site." Adds nuance but adds complexity; use when broad connector-level policy is insufficient. ## Sensitivity labels and DLP Microsoft Purview sensitivity labels integrate with Power Platform DLP: - Labelled content can have its handling restricted. - "Highly Confidential" labelled SharePoint files trigger additional DLP enforcement. For organisations with mature Microsoft information protection programmes, this integration deepens DLP. **Common pitfalls.** - **Default tenant policy too restrictive.** Makers can't build anything; complaints flood admin. - **Default tenant policy too permissive.** Data leaks happen. - **No exemption process.** Makers route around DLP by building outside Power Platform. - **Policy changes without communication.** Flows suddenly fail; makers blindsided. - **No reporting review.** Policy stays static; doesn't adapt to evolving maker needs. - **Maker training gap.** Makers don't understand DLP; mistakes compound. ## Operational rhythm Weekly violation review; monthly exemption decisions; quarterly policy refresh; annual strategic review. The policy should evolve — connectors come and go, business needs change, sensitivity classification shifts. ## Strategic positioning DLP is one of the most important governance levers in Power Platform. Without it, the maker community can technically and accidentally leak data. With it well-designed, the maker community has clear guardrails and can move fast within them. The investment in well-designed DLP pays back continuously; the cost of leakage is high. Managed Environments adds depth to DLP enforcement; for any regulated organisation, DLP is non-negotiable foundational governance. ## Where to go next DLP is applied per [environment](https://www.solvingdynamics365.com/guides/power-platform-environments) and enforced harder in [Managed Environments](https://www.solvingdynamics365.com/guides/managed-environments-in-power-platform); the [Center of Excellence starter kit](https://www.solvingdynamics365.com/guides/center-of-excellence-starter-kit) reports on it. [Custom connectors](https://www.solvingdynamics365.com/guides/custom-connectors-in-power-platform) need their own classification. The third-party tools DLP most often blocks are compared in [Power Automate vs Zapier](https://www.solvingdynamics365.com/guides/power-automate-vs-zapier). --- # Error monitoring patterns for Power Automate How to monitor Power Automate flows in production — Run History, alerts, Application Insights integration, and operational patterns for catching failures fast. Source: https://www.solvingdynamics365.com/guides/power-automate-error-monitoring Section: Power Platform / Power Automate Published: 2026-05-01 A Power Automate flow that fails silently is worse than no flow at all — users assume the work is done; data drifts; problems compound. Production-grade flows need **monitoring** that catches failures fast, alerts the right people, and provides actionable diagnostic context. ## The Run History The primary surface: - Per-flow page showing recent runs. - Status: Succeeded / Failed / Cancelled / Running. - Per-run drill-down to action details. - Inputs and outputs per action. - Error messages. Run history is essential for troubleshooting. Limitation: visible per flow; doesn't aggregate across flows naturally. ## Failure alerts In flow settings: - Email notifications on failure. - Specify recipient address. Easy to set up; the bare minimum. But: - Easily ignored emails. - One alert per failure, no aggregation. - No diff between transient and persistent. For production, more sophisticated alerting needed. ## Power Platform admin centre Cross-flow visibility: - All flows in environment. - Failure rates. - Recent failures. - Trend graphs. Useful for admin visibility; less actionable than flow-specific. ## Application Insights integration The robust path: - Flow emits to App Insights via custom connector or HTTP action. - Failure events captured. - Custom dashboards. - Sophisticated alerts. Setup more complex but the right answer for serious operations. ## Structured logging in flows Emit consistent log records: - **Flow start** — log run ID, trigger context. - **Key checkpoints** — major state changes. - **External calls** — request and response (sanitised). - **Exceptions** — caught errors with context. Log to a dedicated table in Dataverse or to App Insights. ## Try-Catch patterns Configure scope actions: - **Try scope** — main logic. - **Catch scope** — error handler; runs if Try fails. - **Finally scope** — runs always. Configure run-after settings to implement try-catch-finally semantics. Catch logs the error and notifies; finally cleans up. **Idempotency for retry.** - Flows may retry automatically or manually. - Each step should be idempotent — same input → same outcome whether run once or many. - Without idempotency, retries cause duplicates. **Failure categories.** - **Transient** — network blip, throttling, temporary downstream. - **Persistent** — schema mismatch, permission issue, logic bug. - **Data-specific** — bad data triggers different path. Different categories need different responses. **Triage workflow.** 1. Failure alert fires. 2. Operator reviews flow run. 3. Categorise the failure. 4. **Transient** — retry; maybe nothing else needed. 5. **Persistent** — fix code; rerun. 6. **Data-specific** — quarantine bad data; fix; rerun. Without triage discipline, all failures get treated equally. ## Alert fatigue A common problem: - Too many alerts; team ignores them. - Each alert costs attention. - Important alerts buried. Mitigate: - Group similar alerts (one alert for 100 same-error failures). - Severity-based routing (critical to phone, warning to inbox). - Auto-resolution for known transient. ## Dashboards Visualise flow health: - Failure rate over time. - Top failing flows. - Failures by error type. - Runtime trends. Power BI or Application Insights dashboards work; refresh regularly. ## On-call rotation For business-critical flows: - Defined on-call schedule. - Pager-style alerts route to current on-call. - Escalation if no response within minutes. - Incident retrospective post-resolution. For most teams, lighter touch suffices; for SLA-driven services, on-call is real ops. **Flow run retention.** - Default 28-day retention. - Older runs purged. - For compliance, archive externally before purge. If you need run history for a year, export periodically. **Common flow failures.** - **Throttling from connectors** — rate limit hit. - **Connection expired** — auth token invalid. - **Schema change in source data** — flow expects old format. - **Concurrency / race conditions** — two flows on same record. - **Conditional logic gap** — unexpected branch. Each has typical signature; learn to recognise. **Common pitfalls.** - **No failure handler.** Flow fails silently; data inconsistent. - **Catch eats all errors.** Errors caught, logged, swallowed; flow appears successful. - **No alerting.** Failures pile up unseen. - **Per-flow monitoring only.** Cross-flow patterns invisible. - **Run history overwhelm.** 1000 failures; no prioritisation. - **Slow flows.** Successful but slow; user complaints; no perf monitoring. **Best practices.** - **Production flow has failure handler.** Always. - **Failure handler captures context.** Log enough to diagnose. - **Alerts go somewhere actionable** — Teams channel, ops queue. - **Periodic flow audit.** Which flows fail often? Why? Fix. - **Document failure scenarios** per flow. **Performance monitoring.** - Flow run duration tracked over time. - Alert if duration exceeds baseline by 2x. - Optimise slow steps. Slow flows degrade user experience and risk timeouts. ## Strategic positioning Power Automate flows in production need operational discipline equal to other production systems. The monitoring tooling has matured; the discipline to use it varies. For mission-critical flows (payments, customer-facing automations, compliance), invest in App Insights integration, structured logging, and on-call. For internal automations, lighter touch suffices but still better than nothing. The cost of ignoring production flow health: cascading failures, eroded trust, eventually-discovered data corruption. The cost of paying attention: ongoing operational investment but predictable, reliable automation. --- # Machine management for Power Automate Desktop How to manage RPA machines at scale in Power Automate — machine groups, sizing, health monitoring. Source: https://www.solvingdynamics365.com/guides/power-automate-machine-management Section: Power Platform / Power Automate Published: 2026-05-01 A production RPA deployment with dozens of bots running across multiple machines is real infrastructure — Windows VMs, network, agent software, credentials, monitoring. **Machine management** in Power Automate handles the fleet lifecycle: registration, grouping, scaling, health, retirement. Getting it right makes RPA operations sustainable. **The machine model.** - **Machine** — a Windows host registered with Power Automate. - **PAD agent** — software running on the machine; connects to cloud. - **Bot account** — Windows user account that bots run as. - **Machine group** — pool of machines for load balancing. Each machine connects to the Power Automate service via the agent; cloud service distributes work to available machines. **Registration.** 1. Install PAD on the Windows machine. 2. Sign in with the Power Platform account. 3. Configure machine registration in Power Automate portal. 4. Machine appears in Machines list; ready to receive work. ## Machine groups Pool machines: - All machines in a group can run the same bots. - Cloud service assigns work to least-busy machine. - Group can be sized up by adding machines. - Failure of one machine doesn't stop the group. For production reliability, single-machine setups are insufficient; groups provide redundancy. **Sizing considerations.** - **CPU** — bots are CPU-light typically; 2-4 cores usually enough. - **Memory** — bots that drive browser-heavy apps need more (8GB+). - **Storage** — small; bots are stateless mostly. - **Network** — reliable; latency-sensitive. Spec depends on the bot workload; benchmark before scaling. **Geographic distribution.** - For multi-region operations, machines in each region. - Reduces latency to local applications. - Compliance with data residency. **Machine account vs interactive account.** - **Machine account** — bot runs in a session without active user. - **Interactive account** — bot needs user logged in. Interactive is easier to set up but ties up a logged-in session; machine account is more scalable. **Auto-update.** - PAD agent auto-updates by default. - Updates can break bots if behaviour changes. - Mitigate: test new agent version in non-prod first. For sensitive environments, disable auto-update and manually control. **Health monitoring.** - **Machine status** — Online / Offline. - **Run history** — successes, failures. - **Performance metrics** — average bot duration. - **Resource usage** — CPU / memory utilisation. For production fleets, dashboards visualise health; alerts on Offline > N minutes. **Common machine issues.** - **Agent disconnected** — restart agent or machine. - **High memory** — bot leak; restart cleans up. - **Windows update reboot** — schedule reboots outside bot work hours. - **Network drops** — temporary; reconnect handled. Production runs into these regularly; monitoring + automation reduce manual effort. **Capacity planning.** - **Peak vs average** — bot work is often peaky (month-end, day-start). - **Sizing for peak** — adequate machines for peak load. - **Off-peak idle** — machines sit unused; consider hibernation if cost-sensitive. **Cost considerations.** - **VM cost** — per-hour Windows VM cost. - **Bot licence** — per concurrent unattended bot. - **OS licensing** — Windows licence costs. For 10+ bot machines, costs are significant; right-size carefully. **Bot deployment to machines.** - Bot (desktop flow) configured to target a machine group. - Cloud service dispatches to available machine. - Machine downloads bot logic; executes. - Results streamed back to cloud. The execution model is similar to a job queue. **Bot account passwords.** - Stored in Azure Key Vault (modern pattern). - Or in Windows credential manager (legacy). - Rotated per policy. Compromised bot account = potentially compromised systems bot accesses. Rotation matters. **Machine retirement.** - Decommission unused machines. - Migrate bots to remaining machines. - Deregister; revoke credentials. - Audit confirms machine no longer accessible. **Disaster recovery.** - **Backups** — bot logic in source control / solutions; machines themselves stateless. - **Failover** — second region machines if needed. - **Recovery time** — provision new machines from image; install agent; register. **Multi-tenancy concerns.** - Bots from different customers (in ISV scenarios) — typically on dedicated machines. - Shared machines pose data risk. **Common pitfalls.** - **Single machine fleet.** First failure stops all bots. - **No monitoring.** Bots fail; nobody notices for days. - **Machine accounts shared with humans.** Auditing impossible. - **Updates uncontrolled.** PAD update breaks bots; emergency rollback. - **Capacity underestimated.** Bot queue grows; SLA breaches. - **Mixing dev / prod machines.** Test bots affect production data. **Operational rhythm.** - **Hourly** — health dashboard glance. - **Daily** — failure investigation. - **Weekly** — capacity vs trend. - **Monthly** — fleet audit; retirements / new provisions. - **Quarterly** — disaster recovery drill. ## Strategic positioning RPA machine management is infrastructure work. For organisations with significant bot deployments, dedicated FTEs manage the fleet. For smaller scale, IT can absorb the responsibility. Either way, treating bots as software services rather than spreadsheets is essential — monitoring, alerting, capacity planning, lifecycle management. The infrastructure investment pays back in reliability; the alternative is a tangle of breaking bots and frustrated users. --- # Managed environments in Power Platform What Managed Environments add to a Power Platform environment — admin features, sharing limits, weekly digest, solution checker enforcement, and pipelines. Source: https://www.solvingdynamics365.com/guides/managed-environments-in-power-platform Section: Power Platform / ALM & governance Published: 2026-05-01 ### Key facts - Managed Environments is included in Power Apps premium, Power Automate premium, Power Pages, Dynamics 365 user licences, and other premium SKUs — any organisation already paying for premium Power Platform licensing has it available at no extra cost. - Sharing limits let admins cap how many users an app or flow can be shared with, or require admin approval beyond a configurable threshold, preventing accidental organisation-wide exposure. - The weekly admin digest summarises new apps, flows, and bots created, connectors used, widely shared apps, and resources inactive for 30, 60, or 90 days. - Solution checker enforcement makes the static-analysis gate mandatory before a solution deploys, rather than a warning makers can ignore. - IP firewall restricts Dataverse API access to specific IP ranges but affects only the API surface, not the web UI, so users still need MFA and conditional access there. **Managed Environments** is a paid administration tier in Power Platform that adds enterprise governance controls on top of standard environments. Treat it as the "admin uplift" — same underlying Dataverse, but with monitoring, sharing limits, pipelines, and the ability to enforce policies that standard environments lack. **What turning on Managed Environments enables.** - **Sharing limits** — cap how many users an app or flow can be shared with; require admin approval for broader sharing. - **Usage insights** — weekly admin digest summarising who built what, what's used, what's abandoned. - **Solution checker enforcement** — solution checker must pass before solutions are deployed. - **Pipelines in Power Platform** — managed deployment pipelines from dev to test to prod, native to the platform. - **Maker welcome content** — branded content for new makers in the environment. - **Default environment routing** — Mostly-Microsoft, route makers to designated environments instead of the personal "Default" environment. - **IP firewall** — restrict Dataverse access to specific IPs. - **Customer-managed keys (CMK)** — encrypt data with customer-controlled keys. These are the visible features at the time of writing; Microsoft adds capabilities to Managed Environments regularly. ## What it costs Managed Environments is included in **Power Apps premium** licences, **Power Automate premium** licences, **Power Pages** licences, **Dynamics 365** user licences, and other premium SKUs. Customers on free/basic Power Apps tiers don't have access. Practically: any organisation already paying for premium Power Platform licensing has Managed Environments included. ## Enabling Managed Environments In the Power Platform admin centre: 1. Select an environment. 2. Edit → Managed Environments → Enable. 3. Configure feature settings. A few features apply globally (welcome content, default routing); most are per-environment. ## Sharing limits A standard Power Apps maker can share an app with the entire organisation by default. Managed Environments lets admins: - **Limit sharing to a configurable maximum** — e.g., 25 users. - **Block sharing with security groups above N members**. - **Require admin approval** beyond the threshold. This prevents accidental "shared with everyone" exposure of internal tools that contain sensitive data. ## Weekly digest Admins receive a weekly summary: - New apps, flows, and bots created. - Connectors used. - Apps shared widely. - Connection references. - Inactive resources (no use in 30/60/90 days). The digest is a governance lifeline — without it, admins discover sprawl only when something breaks. ## Solution checker enforcement Solutions can be required to pass solution checker (the static analysis tool that catches common issues — performance problems, deprecated APIs, security warnings) before deployment. Without enforcement, makers can ignore solution checker warnings; with enforcement, the gate is real. ## Pipelines Native pipelines provide a maker-friendly ALM: - **Dev → Test → Prod** environments configured. - Maker promotes a solution through the stages by clicking "Deploy". - Approval workflows at each stage. - Audit log of who promoted what. Less powerful than Azure DevOps Pipelines / GitHub Actions–based ALM but dramatically simpler for citizen-maker scenarios. ## Default environment routing Power Platform's "Default" environment is shared across all users in the tenant — historically a chaotic place. With routing enabled: - Makers attempting to create in Default are redirected. - Each maker gets a personal developer environment auto-provisioned. - Personal environments isolate experimentation from shared work. A meaningful housekeeping win for tenants with many casual makers. ## IP firewall Restrict Dataverse API access to specific IP ranges: - Limits exposure during a breach. - Aligns with corporate network policies. - Implemented at the environment level. Note: IP firewall affects the API surface, not the web UI; users still need MFA and conditional access for the web experience. ## Customer-managed keys (CMK) For regulated industries needing to control encryption keys: - Bring your own Azure Key Vault. - Dataverse encrypts data with your key. - Revoke the key → Dataverse data inaccessible (extreme last resort). Setup is complex; reserved for organisations with strong compliance requirements (defence, finance, healthcare). **Common pitfalls.** - **Enabling without communicating to makers.** Sharing limits suddenly block previously-fine workflows; makers complain. - **Pipelines without process.** Pipelines exist but no one uses them; promotion stays informal. - **Digest ignored.** Admin receives but doesn't act; governance value lost. - **Routing surprises new users.** A new maker can't find their app in Default because they were routed elsewhere. - **CMK rollout without rehearsal.** Key rotation goes wrong; downtime. ## Strategic positioning Managed Environments turns Power Platform from a maker free-for-all into a governable enterprise platform. For tenants of any meaningful size, turning it on across production environments is table stakes. The cost is already paid (bundled with premium licensing); the benefit is real governance. ## Operational rule Default for any production environment is "Managed Environment enabled, sharing limits configured, weekly digest reviewed, solution checker enforced, pipelines in use." Dev and personal environments can run unmanaged. This pattern keeps governance overhead proportional to risk. ## Where to go next The controls Managed Environments enforce are described in [DLP policies](https://www.solvingdynamics365.com/guides/dlp-policies-in-power-platform) and [solution checker and app checker](https://www.solvingdynamics365.com/guides/solution-checker-and-app-checker); the reporting layer most organisations pair with it is the [Center of Excellence starter kit](https://www.solvingdynamics365.com/guides/center-of-excellence-starter-kit). The environment model itself is [Power Platform environments](https://www.solvingdynamics365.com/guides/power-platform-environments), and the organisational side is [citizen development governance](https://www.solvingdynamics365.com/guides/citizen-development-governance). --- # Microsoft 365 Copilot for Dynamics 365 How Microsoft 365 Copilot reaches into Dynamics 365 — graph connectors, agents, and the licensing layers that determine what users actually get. Source: https://www.solvingdynamics365.com/guides/microsoft-365-copilot-for-dynamics-365 Section: Power Platform / Copilot & AI Published: 2026-05-01 **Microsoft 365 Copilot** is the AI experience embedded across Microsoft 365 — in Word, Excel, PowerPoint, Outlook, Teams, OneNote, and the standalone Copilot app. It is *different* from the embedded copilots in Dynamics 365 (Copilot for Sales, Copilot in Business Central, F&O copilots), but the two stacks increasingly overlap. Understanding how M365 Copilot sees Dynamics 365 data — and what it can do with it — is increasingly central to the platform story. ## The architecture M365 Copilot uses **semantic indexing** of a user's Microsoft 365 data (emails, files, calendar, Teams chats) combined with **Microsoft Graph** as the data plane, then layers Azure OpenAI for reasoning and generation. To bring data *outside* M365 into Copilot's awareness, two mechanisms exist: 1. **[Graph connectors](https://www.solvingdynamics365.com/guides/microsoft-graph-connectors-for-dynamics-365).** Index content from external systems into Microsoft Graph so Copilot can retrieve and cite it. Microsoft ships Graph connectors for Dynamics 365 — items, accounts, opportunities, and other key tables can be indexed. 2. **Agents (Copilot Studio).** Custom Copilot Studio agents can act as M365 Copilot **plugins**, extending its behaviour to query Dynamics 365 live and execute actions. The agent appears in the Copilot pane and Copilot calls it when relevant. **What users actually get.** - **In Outlook.** Drafting an email to a customer, Copilot can reference recent open opportunities, recent cases, or recent invoices from Dynamics 365 (if the right plugins are installed). - **In Word.** Drafting a proposal, Copilot can pull customer history, past quotes, and pricing from CRM via plugins. - **In Excel.** Summarising data exported from Dynamics 365, building forecasting models on top. - **In Teams.** During a meeting with a customer, Copilot summary references CRM data and creates follow-up actions back to Dynamics 365. ## The licensing layers Microsoft 365 Copilot is a separate paid add-on (per user per month, M365 E3/E5 or Business Standard/Premium required as base). It is **distinct** from Copilot for Sales, which is a different per-user add-on. The embedded copilots inside Dynamics 365 (BC, F&O, customer service AI assist) are included with the relevant D365 SKUs. - **Microsoft 365 Copilot Chat** (formerly Copilot Free) — free standalone consumer-style chat, no business data grounding. - **Microsoft 365 Copilot** — full enterprise; grounded in M365 data; supports plugins; data residency and DLP. - **Copilot for Sales** — separate licence; sales-specific; lives inside Outlook/Teams/CRM. - **Copilot in [D365 product]** — bundled with each D365 SKU; specific to that product. ## Configuration A Microsoft 365 admin enables Copilot per user, installs the Dynamics 365 plugins from the Microsoft 365 plugin catalogue, and configures data sharing and DLP. Copilot Studio agents that target M365 Copilot are published with the right manifest to appear in the M365 Copilot experience. ## The future Microsoft is converging the copilot stack. The eventual end state is one Copilot experience that knows the user's M365 data and their Dynamics 365 data and reasons across both. The transition is incremental; expect the licensing landscape to evolve. ## Practical advice Start with one well-defined use case (e.g. Outlook + Dynamics Sales). Measure adoption. Expand based on actual value, not vendor enthusiasm. --- # PCF controls in Power Apps What Power Apps Component Framework (PCF) controls are, when to use them, and the developer toolchain to build, package, and deploy. Source: https://www.solvingdynamics365.com/guides/pcf-controls-in-power-apps Section: Power Platform / Power Apps Published: 2026-05-01 The **Power Apps Component Framework (PCF)** lets developers build custom UI controls in TypeScript and ship them as reusable components inside model-driven apps and canvas apps. They're how you cross the boundary between Power Apps's built-in controls and pixel-perfect custom UI, without leaving the platform. ## What PCF is A PCF control is a self-contained TypeScript bundle (HTML + CSS + TS, optionally with React inside) that the Power Apps runtime hosts inside a form, view, or canvas screen. The control exposes input parameters (bound to Dataverse columns or canvas variables), receives a `context` object with data and APIs, renders UI, and writes back via the platform's APIs. To the user, the control feels native; to the platform, the control is a packaged solution component. **When to use a PCF control.** - **Model-driven app forms** where the default field controls don't fit: a slider, a colour picker, a custom rating widget, a map embedding, a barcode scanner, a Gantt chart, a kanban board. - **Model-driven views** where the standard grid isn't enough: a custom card view, a calendar view, an editable spreadsheet view. - **Canvas apps** where the built-in controls don't deliver a needed UX pattern. - **Reusable across many apps and customers** — author once, package once, install many times. ## When not to use PCF Simple display tweaks belong in form configuration. Complex business logic belongs in JavaScript event handlers, Power Automate, or Dataverse plug-ins. PCF is specifically for *UI components* that present and capture data in non-standard ways. **The toolchain.** - **Power Platform CLI (`pac`)** — the command-line tool for scaffolding, building, packaging, and pushing PCF projects. - **Visual Studio Code** — the editor of choice, with TypeScript and React extensions. - **Node.js** — required for the build. - **TypeScript** — the language. Microsoft provides type definitions for the PCF API. ## Project structure A PCF project contains: - `ControlManifest.Input.xml` — the manifest declaring the control's name, input parameters, output events, and metadata. - `index.ts` — the entry point implementing `IInputs`/`IOutputs` interfaces with `init`, `updateView`, `getOutputs`, `destroy` methods. - React or vanilla DOM code rendering the actual UI. - CSS for styling. ## Packaging and deployment `pac pcf init` scaffolds a project; `pac pcf push` builds and pushes to a Dataverse environment for testing; `pac solution add-reference` adds the PCF project to a solution; the solution exports as managed and installs into target environments. Source control lives in Git. ## Performance PCF controls run client-side in the user's browser. Heavy rendering or large data fetches degrade the form load time. Use virtualisation for long lists, lazy-load images, batch Dataverse Web API calls. Profile in Chrome DevTools. ## Distribution PCF controls can be shipped as part of an ISV's AppSource solution, made internal to one customer through a custom solution, or open-sourced (the **PCF Gallery** at pcf.gallery is a community-maintained catalogue of free PCF controls). **Limits.** - PCF controls don't have access to all Dataverse SDK methods; the `context.webAPI` is the standard data path. - Some browser APIs (clipboard, geolocation) need permissions. - Authoring PCF requires developer skill — this is genuine code, not low-code. ## Operational reality A small PCF library — 5 to 15 controls — covers most customers' bespoke UI needs without ever requiring more. --- # Power Apps canvas app errors explained The canvas app errors makers hit most — delegation warnings, 'The specified column does not exist', Patch type errors, network error when using Patch. Source: https://www.solvingdynamics365.com/guides/power-apps-canvas-app-errors-explained Section: Power Platform / Troubleshooting Published: 2026-09-03 Canvas app errors show up in three places: the formula bar (red underlines and delegation warnings while authoring), the running app (banners and dialogs), and the Monitor tool (the network calls behind them). For production apps, [monitoring with Application Insights](https://www.solvingdynamics365.com/guides/power-apps-monitoring-and-app-insights) extends that same visibility beyond the authoring session. Most user-facing failures are one of a dozen patterns, and this reference covers them with the fix. For what canvas apps are and when to use them, see [canvas apps vs model-driven apps](https://www.solvingdynamics365.com/guides/canvas-apps-vs-model-driven-apps); for making a slow app fast, [Power Apps performance tuning](https://www.solvingdynamics365.com/guides/power-apps-performance-tuning). ## Authoring-time warnings that become runtime bugs ### Delegation warning: "The 'Filter' part of this formula might not work correctly on large data sets" **Symptom.** A yellow triangle on a formula; the app works in testing; in production users cannot find records they know exist. **Cause.** A non-delegable function or operator — `Search` on a Dataverse column that does not support it, `in` on some sources, `Sum` over a filtered SharePoint list, string functions like `Left` inside `Filter`, or comparing to a variable of the wrong type. The source returns the first 500 rows (2,000 with the app setting), and the rest of the formula runs on that subset. **Fix.** Use delegable functions for the source (`Filter`, `LookUp`, `StartsWith`, `=`, `<`, `>`, `And`/`Or` on indexed columns for Dataverse), push logic into a Dataverse view and filter on that, or pre-aggregate with a rollup column. For SharePoint, index the columns and avoid complex expressions. **Prevention.** Treat every delegation warning as an error before the app leaves development; test against a copy of production-sized data. ### "Invalid argument type. Expecting a Record value instead." / "Expecting a Text value" **Symptom.** A red underline on `Patch`, `Set`, or a control property. **Cause.** Type mismatch. Dataverse lookups need a record from the related table (`LookUp(Accounts, 'Account' = …)`), choices need the choice value (`'Status (Orders)'.Active`), dates need a date, and a text box's `.Text` is text even when it contains a number. **Fix.** Convert explicitly: `Value()`, `DateValue()`, `Text()`; pass lookup records and choice values in their own types. ### "Name isn't valid. 'X' isn't recognized" after renaming or importing **Cause.** A control, variable, collection, or data source was renamed or removed and the formula still references it; or the app was imported into an environment where the data source name differs. **Fix.** Use the App checker's formula errors list to find every reference; re-add the data source with the expected name. ## Runtime data errors ### "The requested operation is invalid. Server Response: X failed: The specified column 'Y' does not exist. The column with the most similar name is 'Z'." **Symptom.** A `Patch` or `Collect` to Dataverse fails with this text. **Cause.** The record literal uses a display name (`Status`) or wrong case (`New_Status`) where Dataverse wants the logical name (`new_status`), or a column that exists on a different table. **Fix.** Use the name the error suggests; check the table's Columns view for logical names. **Prevention.** Let IntelliSense in the formula bar supply column names; do not type them from memory. ### "Network error when using Patch function: The server returned an error" / "Bad Request" **Symptom.** The write fails; the message has little detail. **Cause.** The data source rejected the write. Dataverse: a business-required column not supplied, a business rule, a real-time workflow or plug-in error, a duplicate detection rule, an alternate key violation, or a missing privilege (Create, Write, Append, AppendTo). SharePoint: a column validation, a lookup value not in the target list, a required column. **Fix.** Open Monitor (from the app's Advanced tools), reproduce, and read the server response body — it contains the Dataverse or SharePoint message and code. Decode Dataverse codes with [Dataverse Web API errors](https://www.solvingdynamics365.com/guides/dataverse-web-api-errors-explained). **Prevention.** Wrap writes in `IfError(Patch(...), Notify(FirstError.Message, NotificationType.Error))` so users see the real message. ### "An entry is required" / the form will not submit **Cause.** A required field in the form's data source has no card, or the card's `Update` property is blank; on Dataverse, business-required columns; on SharePoint, required columns. **Fix.** Add the card or set `Update` to a value; check the form's `Error` and `ErrorKind` properties in `OnFailure`. ### "Data source not found: X" / "The data source 'X' has been removed" / "Getting your data" forever **Symptom.** The app opens but data does not load, or shows an error banner. **Cause.** After import into another environment the data source (a Dataverse table, a SharePoint list by URL, a SQL connection) is missing or points at a different environment; or the connection behind it needs consent (see below); or the user has no access to the source. **Fix.** Remove and re-add the data source in the target environment; for SharePoint and SQL, use environment variables for the site URL and connection so imports rebind automatically. See [connection references and environment variables](https://www.solvingdynamics365.com/guides/connection-references-and-environment-variables). ### Only some records show / a gallery is missing rows **Cause.** Delegation (above), or a Dataverse security role scope (user-level read shows only the user's own rows), or a SharePoint list over the 5,000-item view threshold with a non-indexed filter. **Fix.** Check the delegation warnings first; then the user's read scope on the table; then SharePoint indexing. ## Permissions, sharing, and connections ### "You don't have permission to view this data" / "Access to Dataverse denied" **Cause.** The app is shared but the user lacks a security role with read on the table, or is not in the environment's security group. On SharePoint, the user lacks permission on the list. **Fix.** Assign a security role when sharing the app (the share dialog offers it for Dataverse apps), or through the admin centre; grant list permissions in SharePoint. **Prevention.** One custom role per app that grants exactly the tables and privileges the app uses; [Dataverse security model](https://www.solvingdynamics365.com/guides/dataverse-security-model) explains scopes. ### "You need to allow connections" / consent dialog on first open **Cause.** The app uses connections the user has not consented to. Each user is asked once per connector. **Fix.** Expected behaviour. To remove the prompt for connections that do not need per-user consent, an admin can bypass it with `Set-AdminPowerAppApisToBypassConsent` in the Power Apps PowerShell module — appropriate for Dataverse and other tenant-managed connectors, not for connectors that act as the user. ### "This app requires a Power Apps Premium licence" / "You need a licence to run this app" **Cause.** The app uses a premium connector (Dataverse outside a Dynamics 365 context, SQL, HTTP, custom connectors) and the user's licence does not cover it — Microsoft 365 users, or Dynamics 365 Team Member users on an app that touches non-Dynamics tables or premium connectors. **Fix.** Assign Power Apps Premium or pay-as-you-go, or redesign the app to use only connectors the user's licence covers. The [Power Apps pricing page](https://www.solvingdynamics365.com/pricing/power-apps) covers what Dynamics 365 licences include. **Prevention.** Decide the licence position for every app before it is shared; [Power Apps vs Dynamics 365 CRM](https://www.solvingdynamics365.com/guides/power-apps-vs-dynamics-365-crm) covers where the boundary sits. ### "The connection is not valid" / flows run from the app fail **Cause.** A connection embedded in a flow the app calls belongs to a user who left or whose token expired; or the flow is not shared with the app's users (run-only permissions). **Fix.** Rebind the flow's connections to a service account and share the flow with the app users as run-only; see [Power Automate flow failures](https://www.solvingdynamics365.com/guides/power-automate-flow-failures-explained). ### App opens for the maker but not for others **Cause.** Not shared, or shared without the underlying data source access, or the environment's security group excludes them. **Fix.** Share the app, assign the role, check the security group. ## Performance and platform ### Slow start, "Loading" for many seconds **Cause.** `OnStart` loads whole tables into collections, sequentially; many data sources; large images embedded; formulas that recalculate on every screen. **Fix.** Load only what the first screen needs, use `Concurrent()` for independent loads, defer the rest to screen `OnVisible`, use named formulas for derived values. [Power Apps performance tuning](https://www.solvingdynamics365.com/guides/power-apps-performance-tuning) has the full list. ### "There's a problem with your app. Please try again later." / app checker errors after a platform update **Cause.** A control or formula that a platform update changed behaviour for — the app has not been republished against the new version — or an experimental feature that was retired. **Fix.** Open the app in the studio, resolve App checker errors, republish. **Prevention.** Republish apps at least once per release wave; keep experimental features out of production apps. ### Mobile: "App not available offline" / stale data on mobile **Cause.** Offline is not enabled or the offline profile does not include the tables; the app relies on data loaded in `OnStart` that is not refreshed. **Fix.** Configure the offline profile for the tables needed; see [canvas app offline mode](https://www.solvingdynamics365.com/guides/canvas-app-offline-mode). ## Finding the cause quickly Three tools answer nearly every canvas app error. The App checker lists formula errors and delegation warnings with the control and property. Monitor shows every network call the app makes with request and response, including the server's real error text behind a "network error". And `IfError` with `FirstError.Message` in `OnFailure` and around `Patch` puts that text in front of the user instead of a generic banner. Once the message is visible, it is usually one of the Dataverse or SharePoint errors above. ### Frequently asked questions **What does the delegation warning actually mean?** The formula includes a function or operator the data source cannot evaluate server-side, so Power Apps fetches only the first 500 rows (up to 2,000 with the setting) and applies the rest locally. On a small table nothing is wrong; on a large one, results are silently incomplete. Rewrite with delegable functions and columns, or filter server-side through a view. **Why does Patch fail with 'The specified column X does not exist'?** The record you pass to Patch uses a display name or a wrong-case name where the data source expects the logical name — for Dataverse, the lowercase schema name such as new_status. The error usually suggests the most similar column; use that. **What is 'Network error when using Patch function: The server returned an error'?** The data source rejected the write. On Dataverse it is usually a business-required column missing, a business rule, a plug-in error, or a security privilege; on SharePoint a validation or a lookup mismatch. The details after the message, or the Monitor tool, show the server's actual response. **Why do users see 'You don't have permission to view this data'?** Either the app is not shared with them, or they lack a Dataverse security role with read on the table (or a SharePoint permission on the list). Sharing the app does not grant data access; assign the security role when sharing, or through the admin centre. --- # Power Apps Component Framework (PCF) control development How to build custom controls with the Power Apps Component Framework — the dev environment, lifecycle, manifest, packaging. Source: https://www.solvingdynamics365.com/guides/power-apps-pcf-control-development Section: Power Platform / Power Apps Published: 2026-05-01 When Power Apps's standard controls don't suffice — you need a specialised data visualisation, a custom interaction, a third-party widget integrated — the **Power Apps Component Framework (PCF)** lets developers build custom controls in TypeScript that integrate natively with model-driven and canvas apps. The capability is powerful; the development discipline is meaningful. **What PCF enables.** - Custom UI controls for fields, datasets, and sub-grids. - Full TypeScript / JavaScript / HTML / CSS implementation. - Native integration with Dataverse data binding. - Reusable across apps and environments. - Solution-aware deployment. **Development environment.** - **Node.js + npm** for tooling. - **Power Platform CLI (pac)** for project scaffolding. - **Visual Studio Code** as editor. - **TypeScript / React** common stack. Setup is non-trivial; budget a few hours for first-time setup. **Project structure.** ``` ControlProject/ ControlManifest.Input.xml - control definition index.ts - main entry index.css - styling components/ - sub-components package.json tsconfig.json ``` ## ControlManifest The contract: - **Properties** — fields the control consumes. - **DataSet** — for dataset controls binding to views. - **Resources** — referenced files. - **Required features** — platform features needed. Manifest defines what host app sees when configuring the control. **Control lifecycle.** - `init(context, notifyOutputChanged, state, container)` — called once on initialisation. - `updateView(context)` — called on context change (data update). - `getOutputs()` — returns values to push back to the host. - `destroy()` — cleanup. These four methods are the contract; understanding their flow is essential. ## The `context` object Provides: - Current property values. - Data set (for dataset controls). - Device info — screen size, orientation. - User info. - Mode — read-only, disabled. - Resources — fetched files. The control reads context and renders accordingly. ## Two-way binding For fields: - Field value flows in via context. - User interaction in control updates state. - Call `notifyOutputChanged()` to push updates. - Power Apps re-renders to reflect. **Building.** ```bash npm install npm run build ``` Produces a built control ready for packaging. **Packaging as solution.** ```bash pac solution init --publisher-name MyPub --publisher-prefix my pac solution add-reference --path /path/to/control msbuild /p:Configuration=Release ``` The MSBuild output is a solution ZIP containing the control. **Deploying.** - Import solution to environment. - Add control to model-driven form, view, or canvas app. - Bind to appropriate field or dataset. - Test. ## React-based PCFs Most modern PCFs use React: - React rendered inside the PCF container. - Hooks for state. - React libraries (Fluent UI, Material UI) integrate. **Common PCF patterns.** - **Custom field renderers** — image picker, date range, address autocomplete. - **Dataset visualisations** — grids with custom rendering, kanban boards, calendars. - **Composite forms** — multi-field input as one control. - **External library integration** — Chart.js, Mapbox, video players. **Theming.** - PCF can access host theme via context. - Apply theme to match host app's branding. - Important for visual consistency. **Accessibility.** - ARIA attributes mandatory. - Keyboard navigation must work. - Focus management. - High contrast support. Microsoft accessibility requirements apply; ship-blocking if missing. **Performance considerations.** - **Initial load** — keep bundle small; lazy load if possible. - **Re-renders** — only update what changed. - **External resource loading** — async; show loading state. PCFs that block the form's render slow the whole experience. **Testing.** - Unit tests for logic. - Manual testing in app. - Test framework integration evolving. **Versioning.** - Manifest specifies version. - Solution updates carry new version. - Apps can lock to specific version or auto-update. **Common pitfalls.** - **Bundle size huge.** Include only what's needed; tree-shake. - **No accessibility.** Fails accessibility audit. - **External library security.** Vulnerable libraries shipped; security incident. - **Theme not respected.** Looks out of place in host app. - **Two-way binding broken.** Updates not propagating. - **No error handling.** Errors propagate; form crashes. - **Hardcoded URLs / strings.** Should be configuration. **ALM considerations.** - PCFs ship in solutions; same ALM as other components. - Source control the PCF project. - CI builds on commit. - Deploy through standard pipeline. ## Strategic positioning PCFs are the answer for custom UI needs beyond standard controls. The developer commitment is real — TypeScript, React patterns, manifest discipline, accessibility, performance. For partners maintaining PCFs across customer deployments, treating them as products (versioned, tested, documented) is essential. For one-off needs, sometimes a Canvas Power Apps component is simpler. Use PCFs when the requirements clearly demand them and the team can invest in production-grade development. --- # Power Apps model-driven form errors Why a Dataverse model-driven form won't save, a business process flow gets stuck, or a form control shows the wrong data — decoded. Source: https://www.solvingdynamics365.com/guides/power-apps-model-driven-form-errors Section: Power Platform / Troubleshooting Published: 2026-09-06 A model-driven app's forms are generated from **Dataverse table metadata** rather than hand-built, so most of what goes wrong traces back to security, a business rule, or the business process flow acting on the record — not a bug in the form layout itself. ## The record is unexpectedly read-only **Symptom.** A user who should be able to edit a record finds every field locked, with no clear indication why. **Cause.** Several independent things can each make a record read-only: the security role's write privilege at the relevant access level (User, Business Unit, Organization), the record's own state (an inactive, closed, or won record is read-only by design in most standard entities), or an active business process flow stage that locks fields until its own requirements are satisfied. **Fix.** Check in this order: the record's status/state first (the simplest and most common cause), then the security role's privileges for that table at the right access level, then whether a business process flow stage is enforcing required fields before allowing further edits. **Prevention.** When rolling out a new business process flow, document which stages lock which fields so "why is this read-only" doesn't become a recurring support question distinct from an actual security issue. ## A business process flow gets stuck on a stage it shouldn't be on **Symptom.** A record's business process flow shows the wrong current stage, or a user can't advance past a stage that looks complete. **Cause.** A business process flow's stage is a value on the record itself, set by the flow's own logic and business rules tied to required fields on that stage — a required field left blank, a business rule that unexpectedly re-locks a field the flow depends on, or a workflow that changes the record's status outside the flow's own logic can all leave the stage out of sync with what a user expects. **Fix.** Open the process flow directly on the record and check which required fields the current stage is actually waiting on (the flow surfaces this, though sometimes only after clicking into the stage), rather than assuming the stage indicator itself is wrong. **Prevention.** Avoid changing a record's core status fields (like state or a custom stage-adjacent field) from a plugin, flow, or workflow that runs independently of the business process flow's own stage logic — that's the most common way a flow's displayed stage and a record's actual state drift apart. ## A subgrid or lookup shows stale or missing related records **Symptom.** A subgrid on a form, or a lookup search, doesn't show a related record that clearly exists. **Cause.** Subgrids and lookups respect the viewer's security (row-level and field-level), so a record that exists but that the current user's security role or team membership doesn't grant visibility to will simply not appear — which looks identical, from the form, to the record genuinely not existing. **Fix.** Confirm whether the missing record is visible to a system administrator (ruling out "it doesn't exist" or "it was deleted") before troubleshooting the subgrid's view or filter configuration — a security-model gap is a far more common cause than a broken view. **Prevention.** When designing sharing and ownership for a new table, explicitly test visibility from a non-administrator user's account, since admin accounts bypass most of the row-level security that regular users hit. ## A form script or business rule error appears only for some users, not others **Symptom.** A JavaScript form customisation or business rule throws an error, but only for a subset of users, not everyone using the same form. **Cause.** Form scripts commonly run different logic depending on the current user's security role, team membership, or a field value only some records have populated — a script that assumes a field is always populated (because it always was for the developer's test data) will fail specifically for users or records where that assumption doesn't hold. **Fix.** Reproduce the error with the specific affected user's security context (or a record with the same field-population pattern) rather than the developer's own account, since form scripts frequently behave correctly under a broader security role that masks a narrower role's gap. **Prevention.** Test form customisations against a representative non-administrator test user with a typical security role, not only against a system administrator account during development. ## Where to go next The parallel canvas-app failure modes are in [Power Apps canvas app errors explained](https://www.solvingdynamics365.com/guides/power-apps-canvas-app-errors-explained); the security model these forms sit on top of is in [Dataverse security model](https://www.solvingdynamics365.com/guides/dataverse-security-model); business rule and duplicate-detection specifics are in [Dataverse duplicate detection and business rule errors](https://www.solvingdynamics365.com/guides/dataverse-duplicate-detection-and-business-rule-errors). ### Frequently asked questions **Is a model-driven form error the same kind of thing as a canvas app error?** No — a canvas app is built from scratch against whatever data source you choose, so its errors are usually about formulas or connections. A model-driven form is generated from a Dataverse table's metadata, so its errors are more often about security, business rules, or process-flow configuration acting on data the platform already understands. **Why does a record sometimes look read-only for no obvious reason?** A record can become read-only for several independent reasons at once — a security role without write access, an active business process flow stage locking fields until requirements are met, or the record's status/state (inactive, closed, won) — and the form gives no single unified message explaining which one is in effect. --- # Power Apps modern controls How the modern control set in canvas apps differs from classic controls — Fluent UI styling, accessibility defaults, theming, and migration considerations. Source: https://www.solvingdynamics365.com/guides/power-apps-modern-controls Section: Power Platform / Power Apps Published: 2026-05-01 For years, canvas app controls looked like a 2015 web UI — functional but visually dated. The **modern controls** set, generally available since 2023 and expanding through 2024–2026, replaces the classic controls with Fluent UI–based components that match the look and feel of Microsoft 365. They're not just prettier; they have stricter accessibility defaults, better theming support, and a more constrained API surface. ## The dual control sets Both classic and modern controls coexist in the editor. Picking between them per control: - **Modern controls** appear in the "Modern" toolbox section. - **Classic controls** remain available for backwards compatibility. A canvas app can mix both — but uniformity is preferable for UX coherence. **What's available in modern.** - **Modern Button** — primary, default, accent styles. - **Modern Text** — typography levels (Title, Subtitle, Body, Caption). - **Modern Text Input** — single-line, multi-line, password. - **Modern Dropdown** — replaces the classic dropdown. - **Modern Combobox** — searchable selection. - **Modern Date Picker** — calendar-driven date selection. - **Modern Toggle** — Boolean switch. - **Modern Slider** — value range. - **Modern Checkbox / Radio Group.** - **Modern Spinbutton, Rating, Tab list, Pivot, Persona** — growing list. The set covers most form scenarios. Less common controls (image, gallery, chart) still use classic. **Visual differences.** - **Fluent UI typography and spacing** — matches Office apps. - **Less skeumorphism, more flat** — clean affordances. - **Default colour palette tied to theme** — colour follows theme not hard-coded values. ## Theming Modern controls support **App-level theme**: - Primary colour, neutral colour, font family. - Dark/light mode (in development). - Per-control overrides remain possible but rare. Setting the theme once cascades through all modern controls. Classic controls don't pick up theme automatically — each control needs explicit colour-binding. **Accessibility.** - **Keyboard navigation** out of the box. - **Screen reader semantics** aligned with WAI-ARIA. - **Focus rings** visible. - **Colour contrast** meets WCAG AA defaults. Classic controls require manual accessibility tuning per control; modern controls bake in baseline accessibility. ## Properties differ Modern controls have a leaner property set than classic. Some advanced classic properties (font weight, hover colour, micro-positioning) aren't directly exposed — the theming handles them. For makers used to tweaking every property, this is a constraint; for shipping consistent UIs, it's a feature. ## Performance Modern controls are React-based; the rendering layer is more efficient. Apps with hundreds of controls render measurably faster on modern. The improvement is most visible in galleries and forms with many child controls. **Migration considerations.** - **No automatic conversion** — adding a modern control next to an existing classic control means manual property re-binding. - **Property names may differ** — e.g., `Text` vs `Content`, `OnSelect` vs `OnClick` for some controls. - **Custom CSS / DOM manipulation** — there isn't any in canvas apps generally, but classic-era hacks via HTML Text controls don't carry over cleanly. ## Mixed apps Some legacy apps will have classic controls forever. Pattern: build new screens in modern; leave existing screens classic. Don't force a wholesale conversion mid-cycle unless the visual divergence is a problem. **When classic is still right.** - **Highly customised visuals** — classic exposes more knobs. - **Tight backwards compatibility** with existing app patterns. - **Specific control types** not yet in modern. **Common pitfalls.** - **Mixing classic and modern on one screen** — looks visually inconsistent. - **Custom theming not propagated** — setting per-control colours instead of theme defeats the consistency benefit. - **Accessibility regressions** — overriding modern defaults to "match" classic loses the accessibility wins. - **Property mapping errors** — converting an app screen-by-screen and missing event handlers. ## Operational rule All new canvas apps default to modern controls. App theming set early in development. Existing apps converted to modern when there's a refresh budget — not as forced churn. The visual and accessibility gains compound over the app lifetime; the upfront learning curve is small. --- # Power Apps monitoring and Application Insights How to monitor Power Apps in production — App Monitor, Application Insights integration, and the operational patterns for performance and error tracking. Source: https://www.solvingdynamics365.com/guides/power-apps-monitoring-and-app-insights Section: Power Platform / Power Apps Published: 2026-05-01 A Power App in production needs operational visibility — is it slow? Are users hitting errors? Where do they spend time? **App Monitor** provides debugging-focused observation; **Application Insights** integration provides production-grade telemetry. Together, they're the operational toolkit for serious Power Apps deployments. ## App Monitor Real-time diagnostic tool: - Launched from Power Apps Studio while user runs the app. - Streams events as they happen. - Shows operations: formula evaluations, data calls, errors. - Replay-style timeline. For debugging "why does X happen?" in development. Not for production-wide monitoring. ## Application Insights The Azure Monitor service: - Long-term telemetry storage. - Rich querying via KQL. - Custom dashboards and alerts. - Correlation across services. For production observation, this is the path. **Setup.** 1. Azure subscription with Application Insights instance. 2. Get the **Instrumentation Key** (or Connection String). 3. In Power App, App → Settings → Add Application Insights → enter key. 4. Save and publish. Telemetry starts flowing. **What's captured.** - **Page views** — screens navigated. - **Events** — explicit Trace() calls. - **Exceptions** — errors raised. - **Dependencies** — connector calls (limited). - **Performance** — operation timing. - **Custom data** — anything you Trace. ## Trace() function Manual instrumentation: ``` Trace("UserAction", TraceSeverity.Information, { action: "Clicked Submit", formId: SelectedForm.Id }); ``` Add Trace() calls at key points in app logic. ## Querying telemetry In Application Insights: ```kql customEvents | where name == "UserAction" | where customDimensions.action == "Clicked Submit" | summarize count() by tostring(customDimensions.formId) ``` KQL is powerful; learn the basics for effective production debugging. **Custom dashboards.** - Pin queries to a dashboard. - Real-time tile updates. - Different audience-specific dashboards (ops vs business). **Alerting.** - Set thresholds (error rate > 5%, response time > 2s). - Alert via email, Teams, ops tools. - Action groups for escalation. Production apps need alerts; without them, issues found by user reports. **What to trace.** - **Screen entry / exit** — flow tracking. - **User actions** — buttons clicked, forms submitted. - **Errors** — caught exceptions. - **External calls** — connector results. - **Performance markers** — long operations. **What NOT to trace.** - **Sensitive data** — PII, secrets, financial details. - **Excessive volume** — per-keystroke events; signal lost in noise. - **Internal trivia** — info nobody will read. **Performance metrics.** - **App load time** — initial render. - **Screen transition time.** - **Connector response times.** - **Total operation duration.** These align with user-perceived performance; track and optimise. **Error tracking.** - Caught errors traced explicitly. - Uncaught errors auto-captured to App Insights. - Stack traces (where available). - User session context. **User identification.** - Anonymous by default. - Add user identity to telemetry for debugging specific user issues. - Respect privacy — don't trace more than necessary. **Comparison with App Monitor.** | Aspect | App Monitor | App Insights | |---|---|---| | Use | Dev debugging | Production monitoring | | Live data | Yes | Near-real-time | | Historical | No | Yes | | Query | Limited | KQL | | Alerting | No | Yes | | Cost | Free | Azure consumption | Both have place; use both. **Cost considerations.** - App Insights priced per GB ingested. - High-traffic apps with verbose tracing → meaningful cost. - Sampling — record only X% of events to reduce cost. - Daily cap — limit max ingestion. For production apps with > 1000 daily users, budget App Insights cost. **Common pitfalls.** - **No tracing.** Production issues invisible. - **Over-tracing.** Cost explodes; signal lost. - **Sensitive data in traces.** Privacy / compliance issue. - **No alerts.** Issues exist; nobody knows. - **Dashboards unmaintained.** Built once, never updated, ignored. - **Cross-app correlation.** Multiple Power Apps with separate App Insights → can't correlate. **Best practices.** - **Standard tracing patterns** across apps in the same domain. - **Centralised App Insights** for portfolio observability. - **Documented KQL queries** for common diagnostic scenarios. - **Runbook integration** — alert links to specific queries. - **Regular review** — what's traced, what's needed, what's noise. **Power Automate monitoring.** - Flow run history is the primary visibility. - Can also emit to App Insights from flows (HTTP action). - For high-volume flows, App Insights is the long-term store. ## Strategic positioning Production Power Apps without monitoring are operationally opaque. App Insights closes the visibility gap; the discipline of tracing and querying is what unlocks the value. For any app with significant production usage, treat App Insights as standard equipment. The cost is moderate; the operational benefit is substantial. The teams that take production observability seriously have boring incident reviews; the teams that don't have long, painful ones. --- # Power Apps performance tuning How to make Power Apps canvas and model-driven apps fast — startup time, screen render, data fetching, formula optimisation, and the patterns that matter. Source: https://www.solvingdynamics365.com/guides/power-apps-performance-tuning Section: Power Platform / Power Apps Published: 2026-07-20 A Power App that takes 30 seconds to open and 5 seconds per screen transition gets ignored by users. Performance is the difference between adoption and shelfware. The patterns to make canvas apps and model-driven apps fast are well-known but not obvious to first-time makers. **Canvas app performance.** **1. Reduce startup time.** Canvas apps run a substantial OnStart sequence loading data, setting variables, initialising. Minimise the OnStart work: - Move non-critical initialisation to **OnVisible** of the first screen (deferred until needed). - **Concurrent()** function to run multiple operations in parallel rather than sequence. - Cache only what's needed for the first screen; load deeper data lazily. - Avoid huge collections on startup; load on demand. A well-tuned canvas app opens in 2-3 seconds; a poorly-tuned one takes 15-30. **2. Minimise data fetched.** Every Dataverse / SharePoint / SQL call has latency. Reduce: - Use **`Filter()`** with proper delegable filters to push work to the server. - Select specific columns with `ShowColumns()` rather than fetching all. - Avoid `LookUp()` in galleries — it queries per row, devastating for large galleries. - Page large lists; don't load 10,000 records on screen load. **3. Delegation.** Functions like `Filter()`, `Sort()`, `Lookup()`, `Search()` are **delegable** — they run server-side on the data source. Non-delegable functions force client-side processing limited to ~2000 rows. The maker portal warns about non-delegable expressions; address them: - Replace non-delegable string operations with delegable equivalents. - Move complex calculations to Dataverse formula columns or rollup columns. - Refactor formulas to be delegable. **4. Limit gallery work.** Each gallery item evaluates its formulas. A gallery of 100 items with complex formulas in each item evaluates 100 times the work: - Hoist computations out of the gallery to a single Pre-computed variable. - Use `With()` to compute once and reference repeatedly. - Limit visible items; lazy-load on scroll. - Pre-compute formatted strings rather than computing inline. **5. Image optimisation.** Images can dominate app load: - Resize images to display size before uploading; don't load 5MB photos to display as thumbnails. - Use SVG for icons (small, scalable). - Lazy-load images that aren't immediately visible. **6. Avoid heavy controls.** Some controls (PDF Viewer, deeply-nested containers, large data tables) are heavyweight. Use them sparingly; consider lighter alternatives. **Model-driven app performance.** Model-driven apps are mostly platform-rendered; tuning is different from canvas. **1. Form load time.** Each form's load triggers: - Data fetch for the record. - Related-record fetches for subgrids, quick views, lookups. - JavaScript handler execution. - Business rule evaluation. Tune by: - **Limit subgrids on the form** — 5–10 is typical; more slows load. - **Defer non-critical data** — use the *Default state* properties to load tabs lazily. - **Avoid JavaScript async calls in OnLoad** — they block the form render. - **Limit business rules** — many overlapping rules slow evaluation. **2. View performance.** Lists that load slowly: - **Index the columns** used in default filters and sorts. - **Limit columns shown** — fewer columns = faster query. - **Limit default rows** — don't show 10,000 rows by default; let users filter to a manageable subset. **3. Search performance.** Quick Find and Advanced Find: - Quick Find indexes only configured columns; verify the relevant ones are configured. - Dataverse Search (the modern global search) is generally faster than Quick Find for cross-table search. **4. Plug-in performance.** Plug-ins synchronous to record operations add latency: - Profile plug-in execution; long-running plug-ins block users. - Use **asynchronous plug-ins** for non-critical work. - Cache lookups within a plug-in execution. **General principles.** - **Profile before optimising.** Browser dev tools (Network tab), the Power Platform admin centre's analytics, and Application Insights tell you where time is actually spent. Optimise the slow parts, not what you imagine to be slow. - **Test with real data.** A 50-record dev environment performs differently from a 5-million-record production. Validate at scale. - **Test on representative devices.** Mobile, low-bandwidth, older browsers — the app needs to be usable for all users, not just admins on fast desktops. - **Set performance budgets.** "Form must load in under 3 seconds at p95." Measure; fail the budget = refactor. ## Telemetry App Insights configured at the app level captures user interactions and timings. Build dashboards showing: - Page load times per app per screen. - Action durations. - Error rates. - User counts per app. The data drives prioritisation — optimise the screens users actually use. **Common pitfalls.** - **OnStart bloat** — accumulating initialisation logic; app start time grows linearly. - **Non-delegable warnings ignored** — the app works in dev with 100 records; production with 100,000 hits the 2000-row delegation cap and is silently wrong. - **Subgrid proliferation** — every form has 15 subgrids "in case someone needs them"; loading is glacial. - **Custom HTML web resources** doing heavy DOM work; degrade form responsiveness. ## Operational reality Performance is a continuous discipline. Schedule periodic performance reviews; tune as data volume grows; budget refactoring time as part of operations. --- # Power Apps Portals history and rebranding to Power Pages From ADXStudio to Dynamics 365 Portals to Power Apps Portals to Power Pages — the product genealogy and what the rebranding means for customers. Source: https://www.solvingdynamics365.com/guides/power-apps-portals-history-and-rebranding Section: Power Platform / Power Apps Published: 2026-05-01 The product now called **Power Pages** has had several names over the past decade. Older documentation, older training materials, and the institutional vocabulary of long-time partners all reflect prior names. Understanding the lineage helps when reading legacy content and explaining the product's trajectory. ## ADXStudio (2002–2015) The origin: - Canadian company building portals for Dynamics CRM customers. - Open-source-ish base; commercial product. - Liquid templating, table permissions, web roles — concepts still alive today. - Acquired by Microsoft in 2015. ## Dynamics 365 Portals (2016–2018) First Microsoft incarnation: - ADXStudio rebadged. - Integrated with Dynamics 365. - Available as add-on to D365 customer subscriptions. ## Power Apps Portals (2019–2022) Power Platform alignment: - Renamed Power Apps Portals when Microsoft re-aligned the broader Dataverse / Power Platform story. - Same product, slight feature evolution. - Sold as Power Apps capacity-based licensing. ## Power Pages (2022–) Current branding: - Renamed Power Pages. - Modernised authoring experience (Design Studio). - AI-assisted page creation (Copilot). - Stronger focus on low-code makers vs developer customisation. The product underneath has continuity; the surface has been progressively modernised. **Concepts preserved from ADXStudio.** - **Liquid templating language** — used throughout. - **Entity / table permissions** — record-level access control. - **Web roles** — group users for permissioning. - **Web templates** — reusable HTML/Liquid templates. - **Entity forms / entity lists** — Dataverse data rendering. - **Web files** — static content (images, CSS). A developer familiar with ADXStudio finds Power Pages's underlying model immediately familiar. **Modernisation in Power Pages.** - **Design Studio** — visual page builder. - **Themes** — modern theming. - **Copilot** — AI-suggested pages, content, code. - **Pages tied to Dataverse Pages mode** — newer pattern. - **Improved performance** — CDN-based content delivery. The maker experience is faster and more modern than ADX-era. **Two authoring modes.** - **Design Studio** — visual, drag-and-drop. For makers. - **Portal Management app** — table-level editing. For developers/admins. Most makers use Design Studio; deep customisation uses Portal Management. ## Authentication providers Evolved over time: - Initially Microsoft-only. - Added Azure AD, social providers (Google, Facebook). - Now: Entra External ID is the canonical B2C identity provider; supports SAML, OIDC, local accounts. **Use cases.** - **Customer self-service portals** — case submission, knowledge browsing. - **Partner portals** — partner enablement. - **Supplier portals** — vendor self-service for F&O. - **Community forums.** - **Public-facing websites** — though typically not pure Power Pages; CMS for content. - **Industry-specific portals** — healthcare patient, banking customer. **Licensing evolution.** - **Pay-per-user** — per authenticated user / login. - **Pay-per-login** — per session. - **Capacity-based** — purchased capacity tiers. Current: capacity-based, with anonymous and authenticated session tiers. **Comparison with custom-built portals.** - **Power Pages** — fast to build; Dataverse-integrated; managed by Microsoft. - **Custom React + Dataverse API** — flexibility; more dev work. - **SharePoint** — for intranet-style scenarios. Power Pages wins for Dataverse-centric portals at moderate complexity; custom builds win for highly bespoke UX. ## Migration considerations From older portal versions to Power Pages: - Core data and configuration migrate. - Custom Liquid templates carry over. - Visual styling may need refresh. - Authentication providers updated. Microsoft provides migration guidance per legacy version. **Common Liquid patterns.** ```liquid {% assign cases = entities.incident | where: 'customerid', user.contactid %} {% for case in cases %}
{{ case.title }} — {{ case.statecode }}
{% endfor %} ``` Liquid is the templating language for dynamic content. ## Power Pages Pro Code For developers extending beyond no-code: - VS Code with Power Pages extension. - Edit Liquid, JavaScript, CSS in code. - Deploy via Power Platform CLI. This is the developer surface; makers use Design Studio. **Common pitfalls during transition.** - **Sticking with old terminology.** Customers say "portal"; product team says "page" — confusion. - **Migrating without redesign.** Legacy visual style brought forward; outdated UX. - **Authentication migration overlooked.** Old social providers deprecated; users locked out. - **Performance regression.** Lift-and-shift without optimisation; pages slow. ## Strategic positioning Power Pages is the strategic direction for Dynamics 365 customer-facing portals. Power Apps Portals customers should plan to embrace the new branding and capabilities; older Dynamics 365 Portals or ADX customers face a more substantial modernisation. For new portal initiatives, Power Pages is the natural choice — integrated, supported, evolving. The product underneath has nearly two decades of evolution; the latest branding is the modernised face. Understanding both the lineage and the trajectory helps customers and developers plan appropriately. --- # Power Apps Test Engine How the Power Apps Test Engine enables automated UI testing for canvas apps — test definitions, the YAML format, integration with CI/CD. Source: https://www.solvingdynamics365.com/guides/power-apps-test-engine Section: Power Platform / Power Apps Published: 2026-05-01 Canvas apps grew up without good automated testing tooling. Manual testing is slow and unreliable; user-driven testing in production is even worse. The **Power Apps Test Engine** (formerly known by various names) is Microsoft's answer: a declarative test framework for canvas apps integrated with the Power Platform CLI. **What the Test Engine does.** - Drives canvas apps programmatically. - Asserts on app state, control values, screen transitions. - Records test executions for review. - Integrates with CI/CD pipelines. It's like Selenium but specifically designed for canvas Power Apps' rendering model. ## Test format YAML-based: ```yaml testSuite: testSuiteName: My Tests testSuiteDescription: Tests for the order app appLogicalName: my-order-app testCases: - testCaseName: User can create order testCaseDescription: ... testSteps: | Assert(CountRows(Orders) = 0); SetProperty(Button1.Visible, true); Select(Button1); Assert(CountRows(Orders) = 1); ``` The test steps use Power Fx — the same language as the app itself, making tests readable to makers. ## Test execution Via Power Platform CLI: ```bash pac test run --test-plan-file myTests.yaml --tenant-id ... --environment-id ... ``` The CLI launches headless browser, runs the tests, captures results. **Selection mechanisms.** - **By control name** — `Select(MyButton)`. - **By value** — find controls by text content. - **By position** — for galleries. The selector model is straightforward; less brittle than CSS-selector-based tools. **Assertions.** - `Assert(expression)` — verifies the expression is true. - Compare values, counts, properties. - Custom error messages. Failures are captured with screenshots. **Setting values.** - `SetProperty(Control.Property, value)` — directly set a property. - Simulates user input. ## Test data isolation A challenge: - Tests that create data leave residue. - Subsequent tests may see prior test's data. - Mitigation: dedicated test environment; cleanup steps in test teardown. For production CI, tests run against test environment with clean state. **Integration with CI/CD.** - GitHub Actions / Azure DevOps task wraps `pac test`. - Runs on every PR or scheduled. - Failure flags PR; prevents merge. This is the discipline that catches regressions before production. **Limitations.** - **Canvas apps only** — model-driven app testing requires different tools. - **Limited connector mocking** — tests run against real connections; can be slow or test-fragile. - **Browser-based** — same browser quirks affect tests. - **Authentication setup** — tests need credentials. **Mocking connectors.** - Some support for mocking external calls. - Capabilities expanding per release. - Test environment with isolated services preferred over mocking. **Test patterns.** - **Happy path tests** — primary user flow. - **Edge case tests** — empty data, max data, boundary values. - **Negative tests** — invalid input handled. - **Performance tests** — operation duration within budget. For meaningful coverage, multiple test types. ## Coverage Test coverage tooling for Power Apps less mature than for code: - Manual tracking of which scenarios tested. - Periodic review of gaps. **Comparison with manual testing.** | Aspect | Manual | Test Engine | |---|---|---| | Setup time | Low | Higher | | Per-run time | High | Low | | Repeatability | Low | High | | Coverage | Variable | Documented | | CI integration | None | Native | | Regression detection | Slow | Immediate | For any app with significant change rate, Test Engine pays back; for static apps, manual may suffice. **Common pitfalls.** - **Flaky tests.** Timing-dependent failures; tests fail randomly. - **Test data pollution.** Each run leaves residue; subsequent tests see stale data. - **Brittle selectors.** Control renamed; test breaks. - **Authentication friction.** Test user credentials handling poorly; CI fails on auth. - **No teardown.** Test creates data; never cleans up. - **Test = production.** Tests run against production environment; risky. **Best practices.** - **Dedicated test environment.** Isolated; refreshed periodically. - **Test users with appropriate roles.** Just enough access. - **Idempotent tests.** Can run repeatedly without different outcomes. - **Clear test names.** Failure logs are interpretable. - **Test as code.** YAML files in source control alongside app source. ## Beyond Test Engine Some teams also use: - **External tools** — Cypress, Playwright with API integration. - **Manual exploratory testing** — for UX issues automation can't catch. - **A/B testing** — production traffic split. Test Engine is one tool in a broader testing strategy. **Operational rhythm.** - **Per commit** — fast tests run. - **Per PR** — full suite runs. - **Nightly** — extended suite including long-running tests. - **Pre-release** — full regression against production-like data. ## Strategic positioning Automated testing for canvas apps has lagged general software development. Test Engine closes the gap but doesn't eliminate the maturity differential. For apps with significant production traffic, the investment in test automation pays back in confidence and reduced regression rate. For prototype-stage apps, manual testing remains the pragmatic choice. As Test Engine matures and more makers adopt CI/CD practices, automated testing for canvas apps will become standard practice rather than the exception. --- # Power Apps vs Dynamics 365 CRM Power Apps vs Dynamics 365 CRM: both run on Dataverse — when to buy the packaged Sales or Service app and when to build a custom model-driven app instead. Source: https://www.solvingdynamics365.com/guides/power-apps-vs-dynamics-365-crm Section: Power Platform / Power Apps Published: 2026-08-27 Updated: 2026-08-27 ### Key facts - Dynamics 365's CRM apps (Sales, Customer Service, Field Service) are themselves pre-built model-driven Power Apps on Dataverse — architecturally identical to a custom Power App below the app layer, using the same tools, solutions, and governance. - Dynamics 365 Sales Enterprise runs around $95/user/month; Power Apps licensing is roughly $5/user/month per app or $20/user/month for unlimited apps — substantially cheaper per seat, but the app itself is entirely on you to build and maintain. - For a custom app meant to replace Dynamics 365 Sales, the build cost (engineering time plus ongoing feature investment to stay competitive) dwarfs the licence saving for most sales-org sizes — the licence saving alone rarely justifies the build. - A common working pattern is both at once: Dynamics 365 for the core CRM process, a custom Power App alongside it for an adjacent workflow the shipped app's data model doesn't fit, sharing the same Dataverse identity and master data. "Should we build a custom Power App or buy Dynamics 365?" comes up in every Microsoft business-apps conversation, and the honest answer is that they solve overlapping but different problems. Both run on Dataverse. Both use the same tools to extend. But one ships pre-built with sales / service / field-service processes baked in, and the other is a blank canvas. This guide walks the decision in the shape it takes in real deals. ## What each actually is **Dynamics 365 CRM** (Sales, Customer Service, Field Service, Marketing, Customer Insights, Project Operations) is a collection of **pre-built model-driven Power Apps on top of Dataverse**. Microsoft configured the tables, the relationships, the security roles, the business process flows, the workflows, the dashboards, and the mobile experiences for the specific business processes each app targets. You buy the app, get a working starting point on day one, and configure or extend it to fit your business. **Power Apps** is the platform underneath. A custom Power App is a Power App you build yourself — either **canvas** (drag-and-drop pixel-perfect designs with Power Fx formulas) for task-specific workflows, or **model-driven** (data-centric UI generated from Dataverse metadata) for record-heavy processes with security roles and complex forms. You get a blank Dataverse environment and build whatever you want on it. Architecturally the two are identical below the app layer. Extending Dynamics 365 uses the same tools, the same solutions, the same Dataverse, the same governance as building a custom Power App from scratch. ## When to buy Dynamics 365 Buy Dynamics 365 when the business process you're implementing **matches the shape of a shipped app**: - **Sales.** B2B pipeline management, opportunity tracking, forecasting, quoting, Copilot for Sales inside Outlook. - **Customer Service.** Case management, omnichannel, knowledge management, SLAs, entitlements, agent copilot. - **Field Service.** Work orders, scheduling, mobile technician app, connected assets, IoT. - **Marketing / Customer Insights - Journeys.** Customer journeys, email marketing, event management. - **Project Operations.** PSA — opportunity to cash for services firms. The shipped apps carry decades of learned best practice about how these processes work. Rebuilding an opportunity-to-close pipeline in a custom Power App is possible but wasteful — you spend a year recreating what Sales gives you on day one, and the year of feature investment you'd have needed to keep it competitive with Sales' quarterly Wave updates never happens. ## When to build a custom Power App Build a custom Power App when the process is **specific to your business and doesn't map to a shipped app**: - A **field-inspection app** for a specific regulated industry — inspection templates, photo capture, compliance sign-off — that doesn't fit Field Service's work-order model. - A **manufacturing floor tracking app** for a specific production line — barcode scan, batch attributes, custom quality gates. - An **internal-approvals app** — travel requests, capex approvals, procurement pre-authorisation — that's uniquely shaped by your policy. - A **customer-facing portal** on Power Pages that doesn't need Dynamics 365's back-end. - A **legacy-system-front-end** app that surfaces data from an on-prem system through virtual tables without duplicating it into Dataverse. The pattern: highly specific to your business, low overlap with any shipped CRM app, and a working prototype in 2-4 weeks with a small team. ## When to do both The common pattern is **Dynamics 365 for the core CRM process, custom Power App(s) for the adjacent workflows** the CRM doesn't cover naturally. A field-service business runs **Dynamics 365 Field Service** for work orders, dispatch, and mobile technicians, then adds a **custom Power App** for the pre-work customer-site-audit workflow that Field Service's data model doesn't fit cleanly. Both apps share the same Dataverse, the same Account and Contact records, the same Copilot layer. The custom app is not "instead of" Field Service — it's alongside it. The custom app benefits from Field Service being there: shared identity, shared master data, shared reporting. Field Service benefits from the custom app being there: the customer's full pre-work data is on the customer timeline for the technician to reference. ## The economics **Dynamics 365 CRM** is per-user per-month at a real price point. Sales Enterprise is around $95/user/month; Customer Service Enterprise similar. Attach licensing reduces the second-app cost. **Power Apps** licensing is either **per-app** (approx $5/user/month per app) or **per-user** (approx $20/user/month for unlimited apps). Substantially cheaper per user than Dynamics 365, but you also get less — you're building the app yourself. For a custom app that would replace Dynamics 365 Sales, add up the build cost (engineering time to build, plus the feature investment you'd need to keep it competitive over five years) against the licence saving (approximately $75/user/month × user count × 60 months). For most sales-org sizes the build cost dwarfs the licence saving. For a custom app in a workflow Dynamics 365 doesn't cover, the licence saving is real because there's no Dynamics 365 licence to buy in the first place. ## The failure modes Two common failure modes deserve calling out. **"Let's build custom because Dynamics 365 is too much."** This is the argument to run away from features you'll wish you had in a year. Sales' forecasting, sequences, sales accelerator, Copilot for Sales — these are years of Microsoft investment. If your process fits Sales, use Sales. The "we'll build a simpler version" instinct almost always ends with the custom app slowly growing to match what Sales already does, at your cost. **"Let's buy Dynamics 365 because Power Apps is too complicated."** This is the argument that shows up when the actual business process is genuinely unique. Dynamics 365 was configured for the *typical* sales / service / field-service workflow. If your workflow deviates materially — different data model, different lifecycle, different UX — you fight the shape of Dynamics 365 to force it to fit, and every quarter's Wave brings changes that break your customisations. Better to build the custom app that fits the process. The decision is not "how sophisticated am I" — it is "does my process match the shipped app's shape." ## The short version **Verdict: Dynamics 365 wins when the process matches a shipped app's shape; a custom Power App wins when the process is genuinely specific to your business.** Dynamics 365 CRM = pre-built Power Apps for sales / service / field-service. Power Apps = the platform underneath for building your own. Buy Dynamics 365 when your process matches a shipped app. Build a custom Power App when your process is genuinely specific. Do both when there's a core CRM process alongside adjacent workflows that don't fit the shipped app. Don't build a custom replacement for a shipped app unless you're prepared to fund the feature roadmap yourself. ## Where to go next The build side starts with [canvas apps vs model-driven apps](https://www.solvingdynamics365.com/guides/canvas-apps-vs-model-driven-apps) on [Dataverse](https://www.solvingdynamics365.com/guides/what-is-microsoft-dataverse); the general principle is [build vs buy in the Dynamics 365 ecosystem](https://www.solvingdynamics365.com/guides/build-vs-buy-in-the-dynamics-365-ecosystem). The economics come from [Dynamics 365 licensing explained](https://www.solvingdynamics365.com/guides/dynamics-365-licensing-explained) and the [Power Apps](https://www.solvingdynamics365.com/pricing/power-apps) and [Sales](https://www.solvingdynamics365.com/pricing/sales) pricing pages. ### Frequently asked questions **What is the actual relationship between Power Apps and Dynamics 365 CRM?** Dynamics 365's CRM apps are pre-built model-driven Power Apps on Dataverse. Buying Dynamics 365 buys you Microsoft's configuration of tables, security roles, process flows and dashboards for a specific business process. Building on Power Apps means starting from a blank Dataverse environment. **How do the license costs compare?** Dynamics 365 Sales Enterprise is around 95 dollars per user per month; Power Apps is roughly 5 dollars per user per app or 20 dollars per user for unlimited apps. Power Apps is much cheaper per seat, but you are building — and maintaining — the application yourself. **When is building custom a mistake?** When your process actually fits a Dynamics 365 app. Forecasting, sequences, the sales accelerator and Copilot for Sales represent years of Microsoft investment; a 'simpler custom version' almost always grows back toward what Sales already does, at your cost. **When is buying Dynamics 365 the mistake?** When the workflow deviates materially from the typical sales or service shape — different data model, lifecycle and UX. Then you end up fighting the shape of Dynamics 365, and release waves keep breaking your workarounds. Build the app that fits the process instead. --- # Power Automate approvals in depth How the Approvals platform works under Power Automate — connector, approval types, delegation, the unified approval centre. Source: https://www.solvingdynamics365.com/guides/power-automate-approvals-in-depth Section: Power Platform / Power Automate Published: 2026-05-01 Approvals are one of the most common Power Automate scenarios — purchase requests, expense submissions, document reviews, time-off requests. The **Approvals** built-in connector wraps an underlying Dataverse-backed approval engine that's more capable than the simple "yes/no" pattern most flows implement. **Approval types.** - **Approve/Reject — First to respond** — the first approver wins. - **Approve/Reject — Everyone must approve** — all approvers must say yes. - **Custom Responses — Wait for all responses** — multi-choice responses (Approve, Reject, More info), require all. - **Custom Responses — Wait for one response** — multi-choice, first response wins. The right type per scenario: - **Sequential single approver** — First to respond with one approver. - **Parallel approval** — First to respond with multiple approvers (escalation). - **Council/board decisions** — Everyone must approve. - **Multi-option workflows** — Custom responses with paths per choice. **Approval lifecycle.** 1. **Create an approval** with type, title, details, approvers. 2. **Wait for approval response** — flow pauses; approvers receive notifications (email, Teams, mobile push). 3. **Response captured** — outcome and comments. 4. **Flow continues** with branching based on outcome. The flow is *idle* during the wait — no resource cost until response arrives. Approvals can wait for hours, days, or months without timing out. **Notification channels.** - **Email** — actionable cards with approve/reject buttons. - **Teams** — adaptive card; tap-to-approve. - **Mobile app** — Power Automate mobile sends push notifications. - **Web** — the Approvals page at make.powerautomate.com. The approver can use any channel; all sync through the underlying Dataverse table. ## Approval centre The user's view of pending and historical approvals: - **Received** — approvals awaiting their action. - **Sent** — approvals they initiated (created). - **History** — closed approvals. For users with high approval volume, the centre is the working surface. ## Adaptive cards Approval notifications use **Adaptive Cards** — JSON-defined cards that render in Teams, Outlook, and Microsoft Loop. Custom Approvals support rich card content: tables, images, multiple action buttons, dropdowns. ## Delegation Approvers can delegate: - **In-product delegation** at the user's M365 settings — "while I'm away, route my approvals to X." - **Programmatic re-assignment** within a flow — if the original approver hasn't responded in N hours, escalate. For finance leads, delegation is essential to keep approval cycles moving during PTO. ## Reminders and escalations Native reminders aren't built into the simple approval pattern. Common implementation: - Start approval. - Configure a parallel wait branch with a timeout. - After timeout, send reminder email or escalate to a different approver. For more sophisticated escalation, a "child flow" pattern triggers nudges and updates. ## Multi-stage approvals A typical purchase approval: 1. Manager approves. 2. If approved and amount > $5K, director approves. 3. If approved and amount > $50K, CFO approves. Build sequentially with branching, or use sub-flows per stage for cleanliness. ## Audit trail Every approval has a full record: - Requestor. - Approvers (assigned, responded, when, comment). - Status changes. - Linked documents. The Dataverse `Approvals` table is queryable. For compliance reporting, a Power BI dashboard over the Approvals table shows median time-to-decision, denial rate, and bottlenecks. ## Approval data structure Each approval is a row in the `Approval` Dataverse table; responses are rows in `Approval Response`. Standard Dataverse permissions apply — solution-aware, security-roled, exportable. **Common pitfalls.** - **Long-stalled approvals.** No reminders, no escalation, sits forever. Always design escalation. - **Wrong type chosen.** Using "First to respond" when "Everyone must" was intended; bypassed approvals. - **Sensitive data in approval details.** The details show in emails to potentially unauthorised forwarders; redact sensitive content. - **Approver list hard-coded.** A flow with John as approver breaks when John leaves. Look up approvers dynamically (manager from M365, role-based from Dataverse). - **Notifications missed.** Approver on PTO without delegation; flow stalls. Build delegation discipline. ## At scale A company running thousands of approval flows benefits from: - **Approval templates** — standardised flows for common patterns; makers reuse. - **Approval portal** — a custom Power Apps page showing all pending approvals with filtering, useful for execs with high volume. - **Approval analytics** — Power BI dashboard on Dataverse approval data. ## Operational guidance The Approvals connector is one of the most reliable, performant parts of Power Automate. Use it generously. The trap is treating each approval flow as a one-off; with templates and consistent patterns, approval flows become a managed asset rather than scattered code. --- # Power Automate child flows How child flows decompose Power Automate workflows into reusable pieces — definition, invocation, parameters, and the operational impact on maintainability. Source: https://www.solvingdynamics365.com/guides/power-automate-child-flows Section: Power Platform / Power Automate Published: 2026-07-22 A Power Automate flow with 50 actions, branches, loops, and error handling is unmaintainable. **Child flows** solve this — let one flow invoke another, encapsulating reusable logic in a separate flow that can be developed, tested, and maintained independently. ## What a child flow is A child flow is a normal Power Automate cloud flow with two characteristics: - It's triggered by **Power Apps** or **HTTP request** (not by a Dataverse / SharePoint / scheduled trigger). - It returns a value through a **Response** action (or in the case of HTTP, an HTTP response). The "trigger by HTTP request" pattern is what enables child flows. A parent flow calls the child by sending an HTTP-style invocation; the child runs; the parent receives the response. **Why child flows.** - **Reusability.** A common pattern (e.g. "validate customer credit", "generate a quote PDF", "send a personalised email") used in many places gets implemented once as a child flow; many parent flows call it. - **Maintainability.** Smaller flows are easier to understand, test, modify. Splitting a 100-action mega-flow into a parent and several child flows produces 5 flows of 20 actions each — substantially more tractable. - **Versioning.** Child flows version independently; changes to the child flow don't require modifying every parent. - **Permissions and ownership.** Different teams can own different child flows; integration is clean. - **Performance** — sometimes. Each child flow invocation has overhead; for small operations the overhead exceeds the encapsulation benefit. Use for substantial logic blocks, not trivial ones. **Implementing a child flow.** 1. **Create the child flow.** Trigger: "When an HTTP request is received" (or "PowerApps"). 2. **Define inputs.** The HTTP trigger has a JSON schema for the request body; structure inputs as JSON properties. 3. **Implement logic.** Standard Power Automate actions. 4. **Return output.** End with a **Response** action returning JSON with the output data. 5. **Save and copy the URL.** The HTTP trigger generates a unique URL when saved; the parent flow uses this URL to call the child. **Calling a child flow from a parent.** 1. In the parent flow, add an **HTTP** action. 2. Set method to POST. 3. URL to the child flow's invocation URL. 4. Body to the JSON payload matching the child's input schema. 5. Add a **Parse JSON** action to parse the child's response. 6. Use the parsed outputs in subsequent actions. The pattern is functional but verbose. Microsoft has been improving the experience with native "Run a child flow" actions — but the underlying mechanism is HTTP. **Error handling.** - **Child flow errors** — if the child flow fails, the HTTP call returns an error status. The parent must handle. - **Retry policy** — the HTTP action's retry configuration governs how many times to retry on child failure. - **Compensation** — if a child flow performs side effects then fails, the parent may need to roll back. Design for it. **Performance considerations.** - Each child-flow invocation has HTTP overhead — typically hundreds of milliseconds. - For high-frequency calls (a parent that calls a child 1000 times), the overhead dominates. - For substantive child operations (each running for seconds or minutes), the overhead is negligible. **Limits.** - **HTTP action requires premium connector** — flows using HTTP need premium Power Automate licences. - **Loops over child invocations** — Apply to Each calling a child for each record can hit timing / throughput issues at scale. Consider batching. - **Schema-evolution awareness** — when a child flow's input or output schema changes, all parent flows need updating. Treat as API versioning. **Patterns and examples.** - **Authentication helper** — a child flow that, given a token request, returns a Bearer token. Parent flows call it before making external API calls. - **Audit log helper** — a child flow that records an entry in the audit log Dataverse table. Many parent flows call it to log significant events. - **PDF generation helper** — a child flow that, given record data, generates and stores a PDF. Many parent flows trigger document generation. - **Notification orchestrator** — a child flow that handles multi-channel notification (email + SMS + Teams) based on user preferences. Parent flows just say "notify". ## Solution and ALM Child flows live in solutions like any flow. Reference between solutions: - **Same solution** — child and parent in the same solution; deploy together. - **Different solutions** — child flow in a "shared services" solution, parents in different feature solutions. The parent flows reference the child by ID. For ALM, the parent's HTTP URL is environment-specific; use **environment variables** to abstract the URL. **Common pitfalls.** - **Child flow URL hard-coded** — different environments have different URLs; manual update required at each deploy. Use environment variables. - **Synchronous vs async confusion** — child flow runs synchronously to the HTTP call; if it's long-running, the parent waits. For long operations, consider passing a callback URL for asynchronous notification. - **Permission propagation** — the child flow runs as its owner's identity, not the parent's. If the child needs the parent's user context, pass relevant context as input. ## Operational reality For Power Automate work that grows beyond simple flows, child flows are the maintainability lever. Adopt them early; refactor existing complex flows incrementally as opportunities arise. --- # Power Automate Desktop and RPA How Power Automate Desktop automates legacy applications with RPA — attended vs unattended, machine groups, AI Builder integration, and where to use it. Source: https://www.solvingdynamics365.com/guides/power-automate-desktop-and-rpa Section: Power Platform / Power Automate Published: 2026-05-01 **Power Automate Desktop (PAD)** is Microsoft's Robotic Process Automation (RPA) tool — the bit of the Power Automate stack that drives the user interface of *other applications*, including legacy desktop apps, terminal emulators, ancient web apps, and anything else without a usable API. For Dynamics 365 customers, PAD is the bridge to systems that haven't joined the API era yet. **Attended vs unattended.** - **Attended RPA** — the bot runs on a user's own desktop while the user is logged in. The user triggers it (or it triggers from a Power Automate cloud flow), watches it work, and can intervene. The right pattern for assistant bots: a salesperson clicks a button, the bot opens a legacy CRM, copies opportunity data, and pastes it into Dynamics 365. Available with most Power Automate paid plans. - **Unattended RPA** — the bot runs autonomously on a dedicated machine or VM, without a user logged in. Triggered by Power Automate cloud flows on a schedule or event. The right pattern for batch processes: a nightly job logs in to a legacy ERP, extracts a report, and uploads it to Dynamics 365. Requires a Power Automate **unattended RPA add-on** licence per bot, plus dedicated infrastructure. ## Machine groups For unattended scenarios at scale, **machine groups** pool multiple machines so flows can scale horizontally. Cloud flows queue work, and any available machine in the group picks it up. Microsoft also offers a managed **hosted machines** option where Microsoft provisions and manages the bot VMs. ## Building flows PAD's flow designer is desktop-based — a Windows application installed on the machine where flows are authored. Actions are drag-and-drop: open browser, click element, send keys, extract text, read Excel, OCR image, call AI Builder model, branch on condition, loop. The designer captures UI elements visually — click on a button in the target app, and PAD records the selector for replay. ## UI selectors The fragile part of any RPA. PAD selectors can be DOM (for web), UI Automation (for Win32 / WPF / UWP), image-based (last resort), or coordinates (avoid). Changes to the target application's UI break selectors. Robust RPA design uses the most stable selector available and tolerates layout drift where possible. ## AI Builder integration PAD calls AI Builder models inline — extract text from an image, classify a document, predict a value — combining classic RPA with AI-driven processing. **Where to use it.** - Legacy ERP / CRM that has no usable API. - AS/400 green-screen apps still running in some manufacturing and finance shops. - Excel-heavy back-office processes that can't be redesigned. - Bridge during a system migration: temporarily double-key into both old and new systems during cutover. ## Where not to use it Any time a real API exists. RPA is brittle; integrations through APIs are stable. PAD is the *last resort*, not the first. ## Operating discipline Build runbooks: what to do when a bot fails. Monitor bot run history daily in early life. Plan for the inevitable target-application UI change that breaks the bot. Budget for ongoing maintenance — RPA without maintenance is failed RPA. ## Licensing reality Attended is bundled with most paid Power Automate plans; unattended requires a per-bot add-on plus infrastructure (Microsoft-hosted or self-hosted). Costs add up at scale; do the maths against the manual effort being replaced. --- # Power Automate Desktop RPA errors Why a Power Automate Desktop flow can't find a UI element, a machine shows as offline, or an unattended run fails silently — decoded. Source: https://www.solvingdynamics365.com/guides/power-automate-desktop-rpa-errors Section: Power Platform / Troubleshooting Published: 2026-09-06 Power Automate Desktop automates applications that have **no API** by driving the actual user interface — locating buttons, fields, and windows on screen and simulating clicks and keystrokes. Most desktop-flow failures trace back to that interface not looking or behaving exactly the way it did when the flow was recorded. ## "Selector not found" / the flow can't locate a UI element **Symptom.** A step that previously worked fails because the action can't find the button, field, or window it's supposed to interact with. **Cause.** UI element selectors are tied to the specific properties (window title, control type, position in the element tree) captured at recording time; a target application update, a different screen resolution or DPI scaling setting, or even the target window opening in a slightly different state can all change those properties enough that the old selector no longer matches. **Fix.** Re-record the selector against the current version of the application rather than assuming a small property edit will fix it, and prefer selectors built on stable identifiers (a control's name or automation ID) over ones built on screen position, which breaks with any layout change. **Prevention.** Re-test desktop flows against the target application after any update to that application, the OS, or the display configuration of the machine the flow runs on — these are the three most common root causes and none of them are under the flow author's control. ## An unattended run fails or produces no result, with nothing in the run history to explain why **Symptom.** A flow scheduled to run unattended shows as failed, or simply produces no output, with a generic error that doesn't point at a specific step. **Cause.** Unattended runs execute in a session with no one watching, so a dialog the flow doesn't expect (a Windows update prompt, an application's own "unsaved changes" dialog, a credential re-prompt) can silently block the whole automation until it times out, without ever reaching the step that would normally surface the real error. **Fix.** Re-run the same flow attended (with the target machine's screen actually visible) to reproduce the block interactively, since the same environment issue that stalls it unattended is usually visible immediately when someone can see the screen. **Prevention.** Build defensive handling for expected interruptions (a scheduled Windows update window, a known re-authentication prompt) directly into the flow, and schedule unattended runs outside known maintenance windows for the target machine. ## "Machine is offline" or the machine never appears as available for unattended runs **Symptom.** A machine registered for unattended automation shows as offline or unavailable in the Power Platform admin centre, even though the physical or virtual machine is running. **Cause.** Unattended automation depends on the Power Automate Desktop machine-runtime service staying connected and the machine having an active, valid Windows sign-in session available to use — a machine that has gone to sleep, lost network connectivity, or lost its cached credentials for the unattended sign-in will show as unavailable even while technically powered on. **Fix.** Confirm the machine's power and sleep settings prevent it from sleeping during scheduled run windows, and re-validate the unattended sign-in credentials registered for that machine, which can expire or be invalidated by an unrelated password change. **Prevention.** Dedicate machines used for unattended automation to that purpose with power settings configured specifically for always-on availability, rather than sharing a general-purpose machine that also gets put to sleep by a user. ## A flow that works on one machine fails identically-configured on another **Symptom.** The same flow, deployed to two machines that are supposed to be identically configured, works on one and fails on the other. **Cause.** "Identically configured" rarely means byte-for-byte identical — different installed application versions, different regional/locale settings (which change date and number formats a flow's data-extraction steps expect), or different display scaling are common, easy-to-miss differences between two machines that look the same at a glance. **Fix.** Compare the specific application version, Windows regional settings, and display scaling between the two machines rather than assuming the environments are equivalent because they're provisioned from the same base image. **Prevention.** Standardise and document the exact application versions and regional settings desktop-flow machines must run, and treat any drift from that baseline as a change that needs re-testing. ## Where to go next The broader choice between desktop flows and cloud flows is in [Power Automate Desktop and RPA](https://www.solvingdynamics365.com/guides/power-automate-desktop-and-rpa) and [attended vs unattended RPA](https://www.solvingdynamics365.com/guides/power-automate-attended-vs-unattended-rpa); cloud-flow failure patterns are covered separately in [Power Automate flow failures explained](https://www.solvingdynamics365.com/guides/power-automate-flow-failures-explained). Registering and provisioning the machines themselves — the step before any of the above can run — is [machine management for Power Automate](https://www.solvingdynamics365.com/guides/power-automate-machine-management). ### Frequently asked questions **Why are desktop flows more fragile than cloud flows?** A cloud flow calls an API, which has a stable, versioned contract. A desktop flow drives an application's actual user interface by locating on-screen elements — any change to that interface (a moved button, a resized window, an OS-level scaling setting) can break the flow even though nothing about the underlying business process changed. **Can a desktop flow run without a machine actually being logged in?** Attended flows need an active, logged-in session on the machine running them. Unattended flows can run against a machine that is locked or has no interactive session, via a machine that is registered and available in the Power Platform admin centre — but the target application itself may still assume an interactive session and behave differently when driven headlessly. --- # Power Automate error handling patterns How to handle errors robustly in Power Automate flows — try/catch scopes, configure run-after, retry policies, dead-letter handling. Source: https://www.solvingdynamics365.com/guides/power-automate-error-handling-patterns Section: Power Platform / Power Automate Published: 2026-07-24 ### Key facts - Power Automate has no native try/catch syntax — the equivalent is built from Scope actions plus Configure Run After, with a Catch scope set to run after the Try scope has failed, is skipped, or has timed out. - The default retry policy retries a failed action up to 4 times with exponential backoff, which handles transient HTTP 5xx errors and connector throttling, but should not be applied to non-idempotent actions like record creation. - Run After supports specific conditions beyond simple failure — is successful, has failed, is skipped, and has timed out — which combine to cover scenarios like retrying on timeout but not on an authentication failure. - Wrapping an Apply to Each loop body in its own Try/Catch scope lets the loop log a single iteration's failure and keep processing the remaining items, instead of the default behaviour where one failure aborts the whole loop. - A dead-letter pattern writes items that fail after retries are exhausted to a dedicated table or queue for an operations team to investigate and reprocess, rather than letting the event simply get lost. A Power Automate flow without error handling fails silently — the run shows red, but unless someone watches the run history, nobody notices. Robust flows handle errors explicitly: retry transient issues, route persistent failures to alerting, log context for debugging, and recover gracefully. The patterns aren't complex but they're not obvious to first-time makers. **The try/catch/finally pattern.** Power Automate's flow design doesn't have native try/catch syntax, but the equivalent is achieved through **Scope** actions plus the **Configure Run After** option: 1. Wrap the main logic in a **Scope** action — labeled "Try" by convention. 2. Add another Scope after — labeled "Catch". 3. On the Catch scope, configure **Run After** = "has failed", "is skipped", or "has timed out" of the Try scope. 4. Optionally add a third Scope labeled "Finally" — Run After = "is successful", "has failed", "is skipped", "has timed out" of both Try and Catch. The flow structure: ``` Try (Scope) { ... main logic } Catch (Scope) - Run After "has failed" of Try { ... error logging, alerting, compensation } Finally (Scope) - Run After all of Try and Catch { ... cleanup, regardless of outcome } ``` If anything in Try fails, the Try scope fails, Catch runs. If everything in Try succeeds, Catch is skipped, Finally still runs. **What to do in Catch.** - **Log the error.** Inside the Catch, retrieve the failed action's output via `actionOutputs('ActionName')` or the workflow's overall error via `result('Try')`. Write to a Dataverse log table, Application Insights, or a notification channel. - **Notify.** Send a Teams message, email, or alert to operations. Critical failures go to a real distribution list; routine failures might just log. - **Compensate.** If the failed action had side effects, undo them. If you created a record then a downstream step failed, delete the record. - **Decide whether to terminate the flow.** Sometimes you log and continue (graceful degradation); sometimes you halt. **Retry policies.** Each action has a **retry policy** configurable via the action's settings: - **None** — fail immediately on error. - **Default (exponential)** — retry up to 4 times with exponential backoff. Used for transient failures. - **Fixed** — retry on a fixed schedule. - **Exponential (configurable)** — custom backoff. Default retry handles transient HTTP 5xx errors, brief connector outages, throttling. Don't apply retry to non-idempotent operations — a "create record" action retrying could create duplicates. **Configure Run After granularity.** Beyond "has failed", Run After supports specific failure conditions: - **is successful** — only if the previous action succeeded. - **has failed** — only on failure. - **is skipped** — when the previous action was skipped (e.g. by a parent failure cascade). - **has timed out** — specifically when an action exceeded its timeout. Combinations cover specific recovery scenarios — "retry on timeout but not on auth failure", for example. **Try/Catch within loops.** For Apply to Each loops: - **Default behaviour**: a single iteration's failure aborts the loop. - **Continue on error**: wrap the loop body in a Try/Catch scope; the Catch logs the failure but doesn't halt the loop. The loop processes remaining items. This pattern is essential for bulk processing where one failure shouldn't block the rest. **Dead-letter handling.** For integrations that can't tolerate event loss, a **dead-letter pattern**: 1. Try the main logic. 2. On persistent failure (after retries exhausted), write the failed item to a "dead letter" table or queue. 3. Operations team monitors the dead-letter table; investigates and reprocesses. This handles the genuine "we couldn't do it now, but it must be done eventually" pattern. **Idempotency.** Retry-friendly flows must be idempotent — running the same action twice produces the same result. Patterns: - **Check before create** — query for the target record; create only if it doesn't exist. - **Upsert** — use the Dataverse "Upsert" pattern (insert if not exists, update if exists). - **Correlation IDs** — track each processing attempt; the downstream system uses the ID to detect duplicates. Non-idempotent flows that retry create duplicate records, double-charge, or send multiple notifications. **Monitoring and alerting.** - **Run history** — visible in the Power Automate maker portal. Manual review. - **Application Insights** — flows can write to App Insights via the HTTP action; centralised monitoring. - **Failure notification flows** — a "watcher" flow that scans recent failures and sends consolidated alerts. - **CoE Starter Kit** — surfaces flow failures across the tenant in dashboards. **Common pitfalls.** - **No error handling at all** — flows fail silently. - **Catch that doesn't log enough** — alert says "flow failed" without context. - **Retry without idempotency** — duplicates pile up. - **Continue on error globally** — important failures are silently swallowed. - **Try/Catch around trivial actions** — the overhead exceeds the benefit. ## Operational reality Error handling is not optional for production flows. Build it from the start; revisit when failures surface. Failed flows that no one notices undermine confidence in the whole platform. ## Where to go next The errors these patterns catch are decoded in [flow failures explained](https://www.solvingdynamics365.com/guides/power-automate-flow-failures-explained), and seeing them before users do is [error monitoring](https://www.solvingdynamics365.com/guides/power-automate-error-monitoring). Design-level companions: [flow design patterns](https://www.solvingdynamics365.com/guides/power-automate-flow-design-patterns), [retry policies with Azure services](https://www.solvingdynamics365.com/guides/retry-policies-with-azure-services), and [idempotency in integrations](https://www.solvingdynamics365.com/guides/idempotency-in-dynamics-365-integrations) — the property that makes a retry safe. --- # Power Automate flow design patterns How to design reliable, maintainable Power Automate flows — triggers, retries, error handling, child flows, and what not to do. Source: https://www.solvingdynamics365.com/guides/power-automate-flow-design-patterns Section: Power Platform / Power Automate Published: 2026-05-01 ### Key facts - Filtering at the trigger — for example an Account-created trigger scoped to Type = 'Customer' — stops a flow spinning up on every record create instead of filtering wastefully inside the flow body. - Flows can fire more than once through connector retries, replays, or manual re-runs, so actions should be designed idempotently: check before inserting, use upsert semantics, or store a correlation ID on the source record. - Concurrency limits serialise runs per record key, which prevents many concurrent runs racing on the same record from causing locks or data corruption. - Flows have action timeouts and overall run-duration limits, so work taking more than a few minutes should hand off to Azure Durable Functions, Service Bus, or a job-queue entry rather than run inside the flow itself. - Building flows inside a managed solution lets them version, export, and import cleanly across environments, where building directly in production is the fastest route to configuration drift. Power Automate flows are easy to build and surprisingly easy to ruin. Bad flows fail silently, generate alert fatigue, exceed API limits, and leave admin teams chasing ghosts. The good news: a handful of design patterns prevent almost all of it. This covers cloud flows specifically; desktop flows automating legacy UIs have their own failure modes, covered in [Power Automate Desktop RPA errors](https://www.solvingdynamics365.com/guides/power-automate-desktop-rpa-errors). **Pick the right trigger.** - **Instant triggers** — manually invoked or button-triggered. For ad-hoc work. - **Automated triggers** — when a Dataverse, SharePoint, or SaaS event happens. Default for most CRM automation. - **Scheduled triggers** — on a clock. For periodic ETL, reminders, cleanup. Don't poll on a schedule if an automated trigger exists — you'll generate noise and miss events. ## Filter at the trigger, not in the flow Most triggers accept filters. Filtering "Account created" by the Type = 'Customer' at the trigger saves the flow from spinning up on every Account create. ## Idempotency Flows can fire twice — connector retries, replays, manual re-runs. Design actions to be idempotent: check before inserting, use upsert semantics, store a correlation ID on the source record so retries don't double-process. ## Concurrency control A flow with many concurrent runs racing on the same record causes locks and corruption. Set **concurrency limits** to serialise runs per record key when ordering matters. ## Error handling Wrap critical actions in **try/catch/finally** scopes. Configure each action's **retry policy** (exponential backoff by default; sometimes None for non-idempotent calls). On error, log to a Dataverse log table and notify a Teams channel — don't email an individual. ## Child flows Pull repeated logic into **child flows** so it's one definition called from many parents. Saves duplication and isolates failure handling. One of the most common child-flow candidates is the approval step itself — [Power Automate approvals, in depth](https://www.solvingdynamics365.com/guides/power-automate-approvals-in-depth) covers the built-in Approvals connector and the patterns for multi-stage or delegated sign-off. ## Variables and expressions Keep flows readable: name variables, comment with the description field on each action, avoid 20-deep nested expressions. If an expression goes over one line, extract it into a Compose action with a descriptive name. ## Performance Use the OData **$filter** and **$select** on Dataverse list actions — the *Filter rows* and *Select query* fields are not cosmetic, they push work to the server. ## Don't put long-running work in flows Flows have action timeouts and run-duration limits. For work that takes more than a few minutes, hand off to **Azure Durable Functions**, **Service Bus**, or a Job Queue entry on the back-office system. ## Test in dev, deploy with solutions Build flows inside a **managed solution** so they version, export, and import cleanly across environments. Building directly in production is the express route to drift. ## Monitor The **Power Platform admin centre** shows flow run history, success rate, and quota usage. Check it weekly until your flows are boring. ## Where to go next The companion guides are [error handling patterns](https://www.solvingdynamics365.com/guides/power-automate-error-handling-patterns), [child flows](https://www.solvingdynamics365.com/guides/power-automate-child-flows), and [connectors for Dynamics 365](https://www.solvingdynamics365.com/guides/power-automate-connectors-for-dynamics-365). When a flow fails anyway, [flow failures explained](https://www.solvingdynamics365.com/guides/power-automate-flow-failures-explained) decodes the message. And before a high-volume flow is built, [plug-ins vs Power Automate](https://www.solvingdynamics365.com/guides/integrating-with-dataverse-plug-ins-vs-power-automate) is the decision to make. Before designing any flow at all, [process mining](https://www.solvingdynamics365.com/guides/process-mining-in-power-automate) can tell you whether the process you're about to automate is actually the one that runs in practice. --- # Power Automate flow failures explained The Power Automate errors that stop flows — ActionFailed, BadGateway, InvalidTemplate, 429 throttling, 'Could not find a property named', null Apply to each. Source: https://www.solvingdynamics365.com/guides/power-automate-flow-failures-explained Section: Power Platform / Troubleshooting Published: 2026-09-03 Flow failures fall into four families: the flow ran and an action failed; the flow ran and an expression could not be evaluated; the flow was throttled, suspended, or lost its connection; or the flow never ran at all. The run history tells you which, if you know where to look. This reference covers the recurring errors in each family with the fix. Design-level patterns for making flows fail safely are in [Power Automate error handling patterns](https://www.solvingdynamics365.com/guides/power-automate-error-handling-patterns); detecting failures before users do is in [error monitoring](https://www.solvingdynamics365.com/guides/power-automate-error-monitoring). ## Reading a failed run Open the run, expand every scope and loop until you reach the action with the red icon, and read its Outputs pane: the status code, the error body, and — for connectors — the request the connector actually sent. The message at the top of the run is a summary of a summary; the action's raw output is the truth. ## Actions that failed ### "ActionFailed. An action failed. No dependent actions succeeded." **Symptom.** A scope, condition, or Apply to each shows failed with this text. **Cause.** A child action failed and the container reports it. Also appears when every branch of a condition was skipped because the actions were configured to run only on success of something that failed. **Fix.** Drill into the container; fix the actual failing action. Check Configure run after on actions that should run on failure. ### "BadGateway" / 502 / "The service is unavailable" / 503 **Symptom.** A connector action fails with a gateway status; a retry an hour later works. **Cause.** The connector's backend, the on-premises data gateway, or the target service was unavailable or timed out. On the gateway, it often means the gateway machine is off, out of memory, or its service account's password expired. **Fix.** Resubmit the run. If it recurs, check the gateway's status in the admin centre and the target service's health; add a retry policy (Settings on the action) with exponential backoff. **Prevention.** Default retry policy on every action that talks to a network; gateway clusters rather than single machines for on-premises sources. ### "The response is not in a JSON format." **Symptom.** An HTTP action or a custom connector fails parsing. **Cause.** The endpoint returned HTML (a login page, an error page), an empty body, or XML. Typically an expired token, a wrong URL, or an API that returns 204 No Content. **Fix.** Look at the raw body in Outputs. Fix the authentication or URL; for legitimate non-JSON responses, read `body()` as text or use the Parse JSON action only when there is content. ### "OpenApiOperationParameterValidationFailed" / "Input parameter 'X' is required" **Cause.** A required field on the action is empty at runtime — a dynamic content token that resolved to nothing. **Fix.** Trace the token back to its source action and see why it was empty; add a condition or a `coalesce()` default. ### Dataverse: "Resource not found for the segment 'X'." / "Could not find a property named 'X' on type 'Microsoft.Dynamics.CRM.account'." **Symptom.** A List rows, Get a row, or Update a row action fails with an OData message. **Cause.** The table name in the URL segment is wrong (it wants the plural entity set name, `accounts`, not `account`), or a column in Filter rows, Select columns, or Expand query is not the lowercase logical name. Lookups in filters need the `_value` form: `_parentcustomerid_value eq '…'`. **Fix.** Use exact logical names from the table's Columns view; test the filter in the browser against `/api/data/v9.2/` first. **Prevention.** [FetchXML vs OData](https://www.solvingdynamics365.com/guides/fetchxml-vs-odata-in-dataverse) covers both query languages; use FetchXML for anything with joins. ### Dataverse: "A record with the specified key values does not exist" — 0x80040217 / "Does Not Exist" **Cause.** Get a row with a GUID that was deleted, a wrong table, or a value that is not a GUID at all (a name pasted into an id field). **Fix.** Check the value flowing into Row ID; use an alternate key when you only have a business key. ### Dataverse: "Number of requests exceeded the limit of 6000 over time window of 300 seconds" — 0x80072322, HTTP 429 **Symptom.** Dataverse actions fail under load, often in an Apply to each. **Cause.** Dataverse service protection limits per user: 6,000 requests per five minutes, 52 concurrent requests, and 20 minutes of combined execution time per five minutes. A flow that loops over thousands of rows calling Get and Update for each hits it. **Fix.** Reduce calls: use Expand query instead of a Get per row, filter at the source, batch with the Dataverse unbound action or a plug-in. Add a retry policy that respects `Retry-After`. Consider [plug-ins](https://www.solvingdynamics365.com/guides/integrating-with-dataverse-plug-ins-vs-power-automate) for genuinely high-volume work. **Prevention.** Design for the limits: [batch operations in the Dataverse Web API](https://www.solvingdynamics365.com/guides/batch-operations-in-the-dataverse-web-api) and the platform's request allocations. ### Connector: "Rate limit is exceeded. Try again in X seconds." — 429 **Cause.** The connector's own throttle (Office 365 Outlook, SharePoint, Excel Online each have per-minute caps per connection). **Fix.** Same as above: fewer calls, retry with backoff, spread work over multiple connections or time. ## Expressions that could not be evaluated ### "InvalidTemplate. Unable to process template language expressions in action 'X' inputs at line '1' and column 'N': …" **Symptom.** The action fails before running; the error quotes an expression. **Cause.** The rest of the message says which: "The template language function 'int' expects its parameter to be an integer or a string" (type mismatch), "property 'body' doesn't exist" (a token referencing an action that was skipped or returned nothing), "The template language expression cannot be evaluated because property 'value' cannot be selected" (indexing into null), "The template function 'formatDateTime' expects…" (a null date). **Fix.** Wrap risky reads in `coalesce()` or `if(empty(...))`; check the run-after configuration so the action does not run when its source was skipped; use the `?` operator for optional properties (`body('Get')?['field']`). **Prevention.** Assume every dynamic token can be null on real data. ### "The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression … is of type 'Null'. The result must be a valid array." **Cause.** The array fed to Apply to each is null — the List rows returned nothing, or the token points at a property that does not exist. **Fix.** Feed the loop `coalesce(outputs('List_rows')?['body/value'], json('[]'))`, or add a condition on `length()` before the loop. ### "ExpressionEvaluationFailed" The same family as InvalidTemplate, raised at evaluation time. Read the detail; the fix is identical. ## Connections, licences, and policy ### "Unauthorized" / "ConnectionAuthorizationFailed" / "The connection is not authenticated" **Symptom.** Every run of a flow fails at the first connector action; the connection shows a warning in Data > Connections. **Cause.** The connection's token expired or was revoked — a password change, MFA policy change, the owner leaving the organisation, or a service principal secret expiring. **Fix.** Re-authenticate the connection, or better, repoint the connection reference to a service account's connection. **Prevention.** Solution-aware flows with [connection references](https://www.solvingdynamics365.com/guides/connection-references-and-environment-variables) owned by a service account, and secrets in Key Vault with expiry alerts. ### Flow owner left the organisation **Symptom.** Flows fail with connection errors, or are turned off, after a leaver's account is disabled. **Cause.** The flows and their connections belonged to a person. **Fix.** Add a co-owner or reassign ownership through the admin centre's flow management; recreate connections under a service account. **Prevention.** Every production flow in a solution, owned by a service account, with the team as co-owners. ### "This flow is suspended because it violates a DLP policy" / "Flow suspended" **Cause.** A DLP policy now classifies two of the flow's connectors in different groups (Business and Non-Business), or blocks one of them. Also suspended when a premium connector is used and the owner's licence lapsed. **Fix.** Change the connectors to comply, request a policy exception, or fix the licence. The admin centre's policy report shows which rule was hit. **Prevention.** Check the environment's DLP policy before designing a flow with a new connector; [DLP policies in Power Platform](https://www.solvingdynamics365.com/guides/dlp-policies-in-power-platform) explains the groups. ### "Flow run timed out" / approval never returned **Cause.** A cloud flow run cannot exceed 30 days. An approval or a Delay until that waits longer than that fails. **Fix.** Redesign long waits: record the pending state in Dataverse and use a second flow triggered by the response, or a scheduled reminder that escalates. ## The flow that never ran ### Dataverse trigger does not fire **Cause.** In order of likelihood: the trigger's Scope is User or Business unit and the change came from someone outside it; Select columns lists columns that did not change; Filter rows excludes the row; the flow is turned off; the trigger is on the wrong table (a lookup update on the child does not fire the parent's trigger). **Fix.** Set Scope to Organization for integration flows; verify the column and filter settings; check the flow's state and the trigger's history in Analytics. ### Scheduled flow ran at the wrong time or not at all **Cause.** Time zone on the recurrence is UTC by default; daylight saving shifts local times; the flow was turned off for inactivity in a trial environment. **Fix.** Set the time zone on the Recurrence trigger explicitly; move production flows out of trial environments. ### "Trigger failed" in run history **Cause.** The trigger's own call failed — a polling trigger on a connector that throttled or a service that was down. The run is logged as a trigger failure with no actions. **Fix.** Usually self-healing on the next poll; recurring trigger failures mean the connection or the source needs attention. ## When it is not the flow's fault A flow that calls Dataverse and gets a business error back — "The record already exists", a plug-in's `InvalidPluginExecutionException`, a privilege error — is reporting a Dataverse problem. The error body contains the Dataverse message and code; look them up in [Dataverse Web API errors](https://www.solvingdynamics365.com/guides/dataverse-web-api-errors-explained) and [Dataverse plug-in exceptions](https://www.solvingdynamics365.com/guides/dataverse-plugin-exceptions-explained). Likewise a Business Central connector error carries the BC API message — [Business Central API errors](https://www.solvingdynamics365.com/guides/business-central-api-errors) decodes those. ### Frequently asked questions **What does 'ActionFailed. An action failed. No dependent actions succeeded' mean?** Nothing by itself. It is the status of a scope, condition, or Apply to each whose child action failed. Expand the container in the run history and find the action with the red icon — its own error is the real one. **How do I fix 'Could not find a property named X on type Microsoft.Dynamics.CRM.account'?** The Dataverse action's filter, select, or expand uses a column name that is not the logical name — a display name, a schema name with the wrong case, or a lookup used without the _value suffix. Use the exact lowercase logical name (new_customerid), and for lookups in filters use _new_customerid_value. **Why does my Dataverse trigger not fire?** Almost always scope or filters: the trigger's Scope is User or Business unit while the change was made by someone outside it, Select columns names a column that did not change, or Filter rows excludes the row. Set Scope to Organization for integration flows, and test with a change that touches a listed column. **What does a 429 'Rate limit is exceeded' error mean?** The connector or the Dataverse service protection limit throttled the call. Dataverse's limit is 6,000 requests per user per five minutes among others, and connectors have their own per-minute caps. Reduce calls — filter at the trigger, batch, avoid polling — add a retry policy with exponential backoff, and honour Retry-After. --- # Power Automate vs Make Power Automate vs Make (formerly Integromat) — visual scenario building, data transformation, operations-based pricing, Dynamics 365 depth, governance. Source: https://www.solvingdynamics365.com/guides/power-automate-vs-make Section: Power Platform / Comparisons Published: 2026-09-03 ### Key facts - Make (formerly Integromat) is priced per operation executed per month across its plan tiers; Power Automate Premium is a flat $15 per user per month with no per-run metering, and is already included for in-context flows under a Dynamics 365 or Microsoft 365 licence. - Make has no RPA capability at all — desktop flows and the on-premises data gateway are Power Automate-only, with no Make equivalent. - Make's visual scenario builder (routers, iterators, aggregators mapped by drag and drop) handles complex data reshaping more directly than Power Automate's expression language, Select/Compose actions, and Apply to each loops. - Only Power Automate respects the Dataverse security model natively — row-trigger filters, scope, and service-principal connections — which is why Dynamics 365 process automation belongs there even in a shop that also uses Make for edge integrations. Make is the tool people reach for when Zapier feels too simple and Power Automate feels too Microsoft. It has a devoted following among technically minded operators and agencies, a visual builder that makes data flow legible, and pricing that stays reasonable at moderate volume. Against Power Automate in a Dynamics 365 context the question is the same as with any third-party automation tool: where does the platform end and the edge begin? ## What each product is **Make** (Integromat until 2022, owned by Celonis) is a visual integration platform. A scenario is a diagram: a trigger module, then modules connected by routes, with routers for branching, iterators to split arrays, aggregators to combine them, filters on every route, error handlers, and a general-purpose HTTP module for any API. It connects to 2,000+ apps and is priced per operations executed — every module run counts — in plans from Free through Core, Pro, and Teams to Enterprise, with scenario scheduling intervals that shorten on higher tiers. It runs in Make's cloud (EU and US regions). **Power Automate** is Microsoft's workflow and RPA platform inside the Power Platform: cloud flows across roughly 1,000+ connectors, desktop flows for RPA, business process flows, approvals, and process mining, priced per user and per bot with rights included in Dynamics 365 and Microsoft 365 licences for in-context flows. It lives in Dataverse environments with solutions, DLP policies, and admin governance. See [what is Power Platform](https://www.solvingdynamics365.com/guides/what-is-power-platform). ## Head to head | Area | Make | Power Automate | | --- | --- | --- | | Builder | Visual diagram: modules, routes, routers, iterators, aggregators | Linear designer with conditions, scopes, loops, parallel branches | | Catalogue | 2,000+ apps plus HTTP module | ~1,000+ connectors plus custom connectors and HTTP | | Pricing (2026) | Per operations per month by plan; free tier; Core and Pro from roughly $10–20/month | Premium $15 per user per month; Process $150 per bot; included with Dynamics 365 and Microsoft 365 for in-context flows | | Data transformation | Excellent: iterators, aggregators, mapping, array and text functions | Capable: expressions, Select, Compose, Filter array, Apply to each | | Triggers | Webhooks (instant), polling on a schedule (interval by plan), app triggers | Dataverse row events with filters and scope, app events, schedules, HTTP, manual | | Microsoft depth | Connectors for Microsoft 365 and Dynamics 365 | Native Dataverse, Dynamics 365, SQL, on-premises gateway, Entra service principals | | Approvals | Via integrations | Native Approvals in Teams and Outlook | | RPA | None | Desktop flows, attended and unattended | | Error handling | Error handler routes: resume, ignore, rollback, break, commit | Configure run-after, scopes, retry policies | | Governance | Teams, roles, SSO and audit on higher tiers | DLP policies, environments, solutions, Managed Environments | | ALM | Scenario versions, templates, blueprints (JSON export) | Solutions, pipelines, Azure DevOps and GitHub Actions | | Who builds | Technically minded business users, agencies | Makers and developers; business users for simple flows | | Regions | EU and US | Environment region; sovereign clouds | ## Where Make wins **The builder.** Seeing the whole scenario as a diagram, with every module's output mapped into the next by drag and drop, makes complex integrations legible in a way Power Automate's vertical designer does not. Routers and iterators are first-class concepts rather than actions to discover. **Transformation.** Reshaping arrays, aggregating results, and building request bodies is Make's home turf. In Power Automate the same work is possible but leans on expressions and Apply to each loops that grow unwieldy. **Price at moderate volume without Microsoft licences.** A small operations team or agency running tens of thousands of operations a month pays little. **The HTTP module.** Any REST API, with pagination, in a few clicks. Power Automate's HTTP action is a premium connector and a blunter instrument. **Speed for the technically inclined.** Operators who think in data flows are productive in Make within an afternoon. ## Where Power Automate wins **Dataverse and Dynamics 365.** Row triggers with filter attributes and scope, actions that respect the security model, service-principal connections, and no per-operation metering. Automation on Dynamics 365 data belongs in the same platform as the data — [Power Automate connectors for Dynamics 365](https://www.solvingdynamics365.com/guides/power-automate-connectors-for-dynamics-365) covers what is native. **Cost for licensed users.** Dynamics 365 and Microsoft 365 users already have Power Automate for flows in their app's context. Make's operations metering punishes exactly the high-frequency automations that matter in an ERP or CRM. **Approvals and the Microsoft 365 surface.** Native approvals in Teams and Outlook, adaptive cards, SharePoint, Planner, Excel — the everyday enterprise workflow. **Governance.** DLP policies, environments, solution-based ALM through pipelines, Managed Environments, and an admin centre that sees every flow. Make's Enterprise tier adds governance; Power Automate's is the default. **RPA and on-premises.** Desktop flows and the on-premises data gateway have no Make equivalent. **Data residency and compliance.** Flows run in the environment's region, including sovereign clouds, under the tenant's Purview and audit — a hard requirement for regulated organisations that Make's EU/US regions may not meet. ## Where the differences do not matter Point-to-point SaaS automations of moderate complexity. Both are reliable, both have the popular connectors, both handle errors and retries competently. ## How the decision usually gets made **Stack.** Microsoft 365 and Dynamics 365: Power Automate owns process automation, and Make — if present — handles specific edge integrations under governance. No Microsoft commitment: Make is a strong general-purpose choice. **Nature of the work.** Heavy data reshaping across third-party APIs: Make is more pleasant. Business processes on Dynamics 365 records with approvals and security: Power Automate. **Volume.** Very high volume in either tool becomes expensive or throttled; the answer at that point is a plug-in, Logic Apps, or Azure Functions — see [Logic Apps Standard vs Consumption](https://www.solvingdynamics365.com/guides/logic-apps-standard-vs-consumption). **Compliance.** Regulated data and residency requirements: Power Automate in the tenant's environment. ## Using both Where Make is already in use — often via a marketing agency — the pattern that works is an inventory of scenarios with owners, a DLP-aware list of what data they touch, a service account rather than a person's credentials, and a policy that anything touching Dataverse rows migrates to Power Automate. [Integrating Dynamics 365 with Zapier and Make](https://www.solvingdynamics365.com/guides/integrating-dynamics-365-with-zapier-and-make) covers the mechanics and the governance. ## The short version **Verdict: Make wins for technically minded teams doing data-heavy integrations across third-party APIs without a Microsoft commitment; Power Automate wins for anything touching Dynamics 365 or Dataverse.** Make for technically minded teams doing data-heavy integrations across third-party APIs, especially without Microsoft licences. Power Automate for anything on Dynamics 365 or Dataverse, for approvals and Teams, for RPA and on-premises, for governance and residency — which in a Microsoft shop is nearly everything. Zapier, the third tool in this space, is compared in [Power Automate vs Zapier](https://www.solvingdynamics365.com/guides/power-automate-vs-zapier). ### Frequently asked questions **What is Make?** Make, formerly Integromat, is a visual automation platform where scenarios are built as diagrams of modules connected by routes — with routers, iterators, aggregators, and a strong HTTP module — priced by operations executed per month. It is popular with technically minded business users and agencies for its transformation power and its price at moderate volume. **Is Make cheaper than Power Automate?** For a small team without Microsoft licences, usually: Make's Core and Pro plans are priced per operations bundle from roughly $10–20 per month as of 2026, and a moderate workload fits. For Dynamics 365 or Microsoft 365 users, Power Automate is already included for flows in their app's context, and Premium is $15 per user with no per-run metering, so at volume Power Automate wins. **Which is better at data transformation?** Make. Its iterators, aggregators, array and text functions, and the way every module's output is mapped visually make complex reshaping easier than Power Automate's expression language, Select and Compose actions, and Apply to each loops. Power Automate can do the same work, but with more expressions and more steps. **Should a Dynamics 365 shop use Make?** Only at the edges — for a long-tail SaaS tool or an agency-built marketing pipeline — and with an owner and a DLP-aware inventory. Dataverse triggers, the security model, service principals, approvals, and solution-based ALM live in Power Automate, and that is where Dynamics 365 process automation belongs. --- # Power Automate vs Zapier Power Automate vs Zapier — connector breadth, pricing models, Microsoft and Dynamics 365 depth, governance, RPA. Source: https://www.solvingdynamics365.com/guides/power-automate-vs-zapier Section: Power Platform / Comparisons Published: 2026-09-03 ### Key facts - Zapier's catalogue (8,000+ apps) is far broader than Power Automate's roughly 1,000+ connectors — for a niche SaaS tool, Zapier almost always has the connector and Power Automate probably does not. - Zapier prices per task executed; Power Automate Premium is a flat $15 per user per month with no per-task metering, so Zapier's model punishes exactly the high-volume automations that matter most in an ERP or CRM context. - Zapier can connect to Dynamics 365 and Business Central for simple create-and-update scenarios, but it has no Dataverse row triggers with filter attributes and cannot run as a service principal inside the Dataverse security model the way a flow can. - Zapier has no RPA capability and no on-premises data gateway equivalent — desktop flows and gateway connectivity to on-premises SQL or file shares are Power Automate-only. Zapier is the automation tool most business users already know; Power Automate is the one that comes with the Microsoft licences they already have. For a company running Dynamics 365 the question is rarely which is the better product in the abstract — it is which one should own business-process automation, and whether the other has a role at the edges. ## What each product is **Zapier** is the original no-code integration service: a trigger in one app runs a sequence of actions in others, across a catalogue of 8,000+ apps. It is priced by task — each action executed — in plans from Free through Professional and Team to Enterprise, with multi-step Zaps, paths, filters, formatters, tables, interfaces, and AI features on the higher tiers. It is browser-based, fast to learn, and run mostly by the business users who build the Zaps. **Power Automate** is Microsoft's workflow and RPA platform inside the Power Platform: cloud flows across roughly 1,000+ connectors, desktop flows for RPA, business process flows inside model-driven apps, approvals, process mining, and Copilot for building flows. It is priced per user (Premium) and per bot for unattended RPA, with usage rights included in Dynamics 365 and Microsoft 365 licences for flows within those apps' context. It runs inside Dataverse environments with solutions, DLP policies, and admin governance. See [what is Power Platform](https://www.solvingdynamics365.com/guides/what-is-power-platform). ## Head to head | Area | Zapier | Power Automate | | --- | --- | --- | | Catalogue | 8,000+ apps | ~1,000+ connectors plus custom connectors and HTTP | | Pricing (2026) | Per task by plan; free tier; Professional from roughly $20/month annual and up with task volume | Premium $15 per user per month; Process $150 per bot; included with Dynamics 365 and Microsoft 365 for in-context flows | | Microsoft depth | Connectors for Outlook, Teams, SharePoint, Dynamics 365, Business Central | Native: Dataverse triggers with filters, Dynamics 365 actions, SQL, on-premises gateway, Entra service principals | | Triggers | App events, schedules, webhooks | App events, Dataverse row events with filter attributes and scope, schedules, HTTP, manual and button flows | | Logic | Paths, filters, loops on higher tiers | Conditions, switches, loops, scopes with run-after, parallel branches, child flows | | Approvals | Via integrations | Native Approvals with Teams and Outlook actionable messages | | RPA | None | Desktop flows, attended and unattended, machine groups | | Governance | Team folders, roles, SSO and audit on Enterprise | DLP policies, environments, solutions, Managed Environments, admin centre | | ALM | Versioning, folders | Solutions, pipelines, Azure DevOps and GitHub Actions | | Error handling | Retry, autoreplay on paid plans, alerts | Configure run-after, scopes, retry policies, error-handling patterns | | Who builds | Business users | Makers and developers; business users for simple flows | | Data residency | Zapier's cloud | Environment region; sovereign clouds | ## Where Zapier wins **Breadth.** If the tool is a niche SaaS product — a scheduling app, a form builder, a marketing tool — Zapier has the connector and Power Automate probably does not. For marketing and sales operations teams living in best-of-breed SaaS, this is decisive. **Time to first automation.** A non-technical user can build a working Zap in ten minutes with no environment, solution, or connection reference in sight. Power Automate's learning curve is real, especially once flows live in solutions. **No Microsoft prerequisite.** A company on Google Workspace, HubSpot, and Slack has no reason to buy into the Power Platform for automation. **Simplicity of the mental model.** Trigger, actions, done. Zapier's interface hides complexity Power Automate exposes. ## Where Power Automate wins **Dataverse and Dynamics 365.** Row triggers with filter attributes and scope, actions that respect the security model, service-principal connections, and no per-task metering. Automation on Dynamics 365 data belongs in the same platform as the data — see [Power Automate connectors for Dynamics 365](https://www.solvingdynamics365.com/guides/power-automate-connectors-for-dynamics-365). **Cost at volume for licensed users.** Dynamics 365 and Microsoft 365 users already have Power Automate rights for flows in their app's context; Premium is a flat per-user fee. Zapier's per-task pricing punishes exactly the high-volume automations that matter. **Approvals, Teams, and Microsoft 365.** Native approvals routed to Teams and Outlook, adaptive cards, SharePoint, Excel, Planner — the everyday enterprise workflow surface. **Governance.** DLP policies that stop a flow moving Dataverse data to a personal Dropbox, environments that separate dev from production, solutions that move flows through a pipeline, and an admin centre that sees everything. Zapier's Enterprise tier has governance; Power Automate's is the platform's default. **RPA and on-premises.** Desktop flows for legacy applications and the on-premises data gateway for SQL and file shares have no Zapier equivalent. **Error handling.** Scopes, run-after, retry policies, and the patterns in [Power Automate error handling](https://www.solvingdynamics365.com/guides/power-automate-error-handling-patterns) produce automations that fail safely. Zapier's autoreplay helps but is not a design surface. ## Where the differences do not matter Simple point-to-point automations between well-known SaaS apps — a form submission creates a record, a new file posts a message, a schedule sends a digest. Both do these in minutes and both are reliable for them. ## How the decision usually gets made **Stack.** Microsoft 365 and Dynamics 365: Power Automate owns process automation; Zapier, if present, handles edge connectors under a DLP policy. Google Workspace and best-of-breed SaaS: Zapier, with Power Automate only if Dynamics 365 or Dataverse enters the picture. **Who builds.** Business users with no IT involvement: Zapier is easier. Makers inside a governed platform: Power Automate. **Volume.** Thousands of runs a day: Power Automate, or for very high volume a plug-in or Logic Apps — see [plug-ins vs Power Automate](https://www.solvingdynamics365.com/guides/integrating-with-dataverse-plug-ins-vs-power-automate) and [Logic Apps Standard vs Consumption](https://www.solvingdynamics365.com/guides/logic-apps-standard-vs-consumption). **Governance and compliance.** Regulated data, audit, data residency: Power Automate inside a Dataverse environment. ## Using both The realistic pattern in many Microsoft shops is Power Automate as the platform with a small, inventoried set of Zaps for tools it cannot reach — each with a named owner, a DLP-approved connector list, and a plan to replace it if a Power Automate connector appears. [Integrating Dynamics 365 with Zapier and Make](https://www.solvingdynamics365.com/guides/integrating-dynamics-365-with-zapier-and-make) covers the mechanics and the governance. ## The short version **Verdict: Zapier wins for breadth, speed, and organisations with no Microsoft commitment; Power Automate wins for anything touching Dynamics 365 or Dataverse.** Zapier for breadth, speed, and organisations with no Microsoft commitment. Power Automate for anything that touches Dynamics 365 or Dataverse, for approvals and Teams, for RPA and on-premises, for volume, and for governance — which in a Microsoft shop is nearly everything. The other tool in this space, Make, is covered in [Power Automate vs Make](https://www.solvingdynamics365.com/guides/power-automate-vs-make). ### Frequently asked questions **Is Zapier or Power Automate cheaper?** It depends on what you count. Zapier prices per task (each action run), so a busy automation gets expensive fast; Power Automate Premium is $15 per user per month (2026 list) with request limits, and Dynamics 365 and Microsoft 365 licences already include Power Automate for their own contexts. For a Microsoft shop with existing licences, Power Automate is usually free at the margin; for a small team without them, Zapier's entry plans are cheaper. **Which has more integrations?** Zapier — 8,000+ apps against Power Automate's roughly 1,000+ connectors. For long-tail SaaS tools Zapier almost always has the connector. For Microsoft services, Dataverse, Dynamics 365, SQL, and on-premises systems through the gateway, Power Automate is deeper. **Can Zapier connect to Dynamics 365?** Yes, through its Dynamics 365 CRM and Business Central integrations, and it works for simple create-and-update scenarios. It does not have Dataverse triggers with filter attributes, cannot run inside the Dataverse security model as a service principal the way a flow can, and every task costs money — so it is a tactical bridge, not the platform for Dynamics 365 automation. **Should a Microsoft shop ever use Zapier?** Occasionally, for a marketing or sales tool Power Automate has no connector for, with a DLP policy and an owner attached. The failure mode is dozens of unmanaged Zaps holding business processes together outside any governance — the guide on integrating Zapier and Make with Dynamics 365 covers how to keep that contained. --- # Power BI dataflows vs datamarts Power BI dataflows, datamarts, semantic models, and Fabric items — when to use each, how they relate. Source: https://www.solvingdynamics365.com/guides/power-bi-dataflows-vs-datamarts Section: Power Platform / Power BI Published: 2026-05-01 Power BI has grown from a desktop reporting tool into a layered data platform. The layering — dataflows, datamarts, semantic models, paginated reports — is confusing without a map. With Microsoft Fabric's emergence, the layers shift further, with some legacy concepts deprecated in favour of Fabric items. This article maps the terrain. **The traditional Power BI stack.** - **Dataset (now semantic model)** — the analytical model: tables, relationships, measures (DAX). Backed by Vertipaq in-memory columnstore. Consumers connect to it from reports and Excel. - **Dataflow** — ETL artefact built in Power Query Online. Outputs to a CDM-folder-structured storage in OneLake (Fabric) or a workspace (legacy). - **Datamart (legacy)** — a self-contained dataflow + Azure SQL DB + semantic model. Designed for self-serve "I want a small star schema with SQL access" scenarios. - **Paginated report** — pixel-perfect operational reports; SSRS heritage. - **Power BI report** — interactive dashboards built in Power BI Desktop. **Fabric introduces.** - **Lakehouse** — files-based store on OneLake; Delta tables; Spark and SQL access. - **Data warehouse (Fabric)** — full T-SQL warehouse on OneLake. - **Eventstream** — real-time ingestion. - **Pipelines** — orchestration. - **KQL database** — telemetry/logs. - **Notebook** — Spark code. - **Direct Lake mode** — semantic model reads Lakehouse Delta tables directly, no import. ## Dataflows The Power Query ETL workspace asset. Reads from sources (SQL, OneDrive, REST APIs), applies transformations, writes to CDM-folder output. Multiple semantic models can reference the same dataflow — central place to do "join customer master once" without each model duplicating logic. ## Datamarts Introduced 2022; provided self-serve a "SQL endpoint plus model in one click" experience. With Fabric, datamarts are effectively superseded by Lakehouses (for files) and Fabric warehouses (for SQL). Microsoft has signalled datamarts won't see significant new investment; existing datamarts continue working. ## Semantic models The analytic engine. Two import modes: - **Import** — data copied into the in-memory model; updates via scheduled or incremental refresh. - **DirectQuery** — queries pushed to the source at report time; no copy in the model. - **Direct Lake (Fabric)** — reads Lakehouse Delta tables directly without import or query at run time. Direct Lake is the new default for Fabric-resident data: in-memory performance without import overhead. **When to use a dataflow vs other ETL.** - **Quick self-serve transformations** for non-engineering users → dataflow. - **Enterprise-grade ETL with version control and testing** → pipelines + notebooks in Fabric, or Azure Data Factory. - **Real-time ingestion** → Eventstream into a Lakehouse. Dataflows remain a strong middle ground for citizen data engineers. **Centralised vs decentralised modelling.** - **Centralised semantic models** — IT/BI team owns; business consumers connect. Quality controlled; less duplication. - **Decentralised personal models** — every analyst builds their own from raw data. Fast for that analyst, chaotic across organisation. Modern Power BI practice favours **certified semantic models** at the centre with self-serve report building on top. ## Connectivity from Excel and Power BI Semantic models are consumable from: - **Power BI reports** in the same workspace or other workspaces. - **Excel** — `Connect to Power BI dataset`. - **External tools** through XMLA endpoint. - **Custom apps** via the Power BI REST API. This makes the certified semantic model the "single version of truth" surface. **Capacity considerations.** - **Premium per user (PPU)** — for the user, models up to capacity limits. - **Premium capacity (P SKU)** — for the workspace, defined throughput. - **Fabric capacity (F SKU)** — Fabric's unified compute/storage capacity. Fabric capacity is the future; new investments should land there. **Refresh patterns.** - **Scheduled refresh** — N times per day; standard for batch reporting. - **Incremental refresh** — only updated data refreshes; saves time and storage. - **Hybrid table** — recent data DirectQuery, older data imported. - **Direct Lake** — no refresh; reads live from Lakehouse. **Common pitfalls.** - **Dataflow proliferation.** Every report builds its own dataflow; duplication explodes. - **Mixed modes in one model.** Some tables import, some DirectQuery; performance unpredictable. - **Semantic model dependencies broken.** Underlying data source schema changes; model fails. Build version checks into pipelines. - **Datamart investment.** Building new datamarts in 2026 — likely wasted effort given Fabric direction. - **Capacity contention.** Multiple heavy workspaces on shared capacity; reports slow. ## Strategic direction Microsoft Fabric is the unifying story: OneLake holds the data, Lakehouses and warehouses serve it, semantic models analyse it, Power BI surfaces it. New investments should think Fabric-first: Lakehouse for raw and curated data, Fabric pipelines for ETL, semantic models in Direct Lake mode for analytics, Power BI reports on top. Legacy Power BI artefacts continue working but the centre of gravity has shifted. ### Frequently asked questions **What is a Power BI dataflow?** A Power Query Online ETL artefact that reads from sources, applies transformations, and writes CDM-folder output that multiple semantic models can reuse — the place to join customer master data once rather than in every model. **Are Power BI datamarts deprecated?** Effectively superseded. Datamarts, introduced in 2022, are replaced in Microsoft Fabric by lakehouses for files and Fabric warehouses for SQL. Existing datamarts keep working, but Microsoft has signalled no significant new investment, so building new ones in 2026 is likely wasted effort. **What is Direct Lake mode?** A semantic model mode in Fabric that reads lakehouse Delta tables directly, giving in-memory performance without import refresh or DirectQuery round-trips. It is the default for Fabric-resident data. **Should I use dataflows or Fabric pipelines for ETL?** Dataflows for quick self-serve transformations by citizen data engineers; Fabric pipelines and notebooks (or Azure Data Factory) for enterprise-grade ETL with version control and testing; Eventstream for real-time ingestion. --- # Power BI dataset refresh failures Why a Power BI dataset refresh against Dynamics 365 data fails — gateway, credential, and timeout errors, decoded. Source: https://www.solvingdynamics365.com/guides/power-bi-dataset-refresh-failures Section: Power Platform / Troubleshooting Published: 2026-09-06 A Power BI dataset built on Dynamics 365 data (Dataverse, Business Central, or Finance and Operations) refreshes on a schedule or on demand, pulling fresh data through either a cloud connection or an **on-premises data gateway**. Refresh failures are usually about the connection or the credential, not the report design itself. ## "Gateway timeout" / "The operation has timed out" **Symptom.** A scheduled refresh fails after running for a long time, often the same duration every time. **Cause.** The query against the source (a large Dataverse or Business Central table, a complex DAX-driven query) is taking longer than the gateway's or the refresh's timeout allows — Power BI Pro has a lower refresh-duration ceiling than Premium/Fabric capacity. **Fix.** Reduce the data volume pulled per refresh (filter to a relevant date range, use incremental refresh instead of a full reload), or move the dataset to a capacity with a higher timeout ceiling if the underlying data volume genuinely requires it. **Prevention.** Design incremental refresh policies from the start on any table large enough to be a timeout risk — refreshing only the changed partition of data is both faster and less likely to hit a timeout than reloading everything every time. ## "Gateway not found" / "No gateway is configured for this data source" **Symptom.** A refresh that depends on an on-premises or virtual-network-gated data source fails immediately, without attempting any query. **Cause.** The on-premises data gateway the dataset depends on is offline, was uninstalled, or the data source's credentials inside the gateway configuration were never mapped after a dataset was published or moved to a new workspace. **Fix.** Confirm the gateway is running and check the gateway's data source mapping in the Power BI admin portal — every data source a dataset needs must be explicitly mapped to a gateway data source, not just have the gateway installed somewhere. **Prevention.** Run the gateway on a server with monitoring and automatic restart on failure, not a single individual's workstation — a gateway machine going to sleep or being rebooted for Windows updates is one of the most common causes of "it worked yesterday" refresh failures. ## "Credentials could not be validated" / "You don't have access to this data source" **Symptom.** A previously-working refresh starts failing citing a credential problem. **Cause.** The account whose credentials are stored for the data source connection had its password changed, its MFA requirement changed, or its access to the underlying Dataverse/Business Central/F&O environment revoked or reduced. **Fix.** Re-enter and re-validate the data source credentials in the dataset's settings, ideally using a dedicated service account rather than a named individual's credentials. **Prevention.** Use a service account with a non-expiring or centrally-managed credential for scheduled refreshes, and exclude it from personal password-rotation and MFA policies that assume an interactive human is behind the sign-in. ## "Something went wrong. Please try refreshing again later" (a generic failure) **Symptom.** A refresh fails with a message that gives no specific cause. **Cause.** This generic message covers a wide range of underlying issues — a transient service issue on Power BI's side, a query that changed shape unexpectedly (a column renamed or removed at the source), or a capacity/throttling limit reached. **Fix.** Check the detailed refresh history (not just the summary status) in the dataset settings for the underlying error, which is usually more specific than the generic banner message. If the source schema changed, update the Power Query steps to match. **Prevention.** Alert on refresh failures explicitly (a Power Automate flow watching the Power BI REST API, or a Premium capacity's built-in monitoring) rather than relying on someone noticing a stale report — since a failed refresh leaves the last-good data visible with no obvious visual sign anything is wrong. ## Where to go next Refresh strategy sits alongside the wider platform choice covered in [Power BI incremental refresh](https://www.solvingdynamics365.com/guides/power-bi-incremental-refresh), [Power BI gateway for on-prem data](https://www.solvingdynamics365.com/guides/power-bi-gateway-for-on-prem-data), and [Power BI deployment pipelines](https://www.solvingdynamics365.com/guides/power-bi-deployment-pipelines). For the newer alternative to a scheduled refresh entirely, see [Microsoft Fabric and Dynamics 365](https://www.solvingdynamics365.com/guides/microsoft-fabric-and-dynamics-365) on DirectLake. ### Frequently asked questions **Why does a refresh that works on-demand fail on schedule?** Scheduled refreshes run under the dataset owner's stored credentials with no interactive prompt available, so any credential that has changed, expired, or needs re-consent — invisible during an on-demand refresh you triggered yourself while signed in — surfaces only on the scheduled run. **Does a refresh failure affect the report viewers?** No — viewers keep seeing the last successfully refreshed data; a failed refresh doesn't blank the report. This is exactly why refresh failures go unnoticed for longer than they should unless someone is actively monitoring refresh history or failure alerts. --- # Power BI deployment pipelines How Power BI deployment pipelines automate Dev/Test/Prod promotion of reports, semantic models, and dataflows — configuration, rules, and the ALM patterns. Source: https://www.solvingdynamics365.com/guides/power-bi-deployment-pipelines Section: Power Platform / Power BI Published: 2026-05-01 Promoting Power BI artefacts from development to production should not be a manual download-upload-reconfigure exercise. **Deployment pipelines** in Power BI Premium and Fabric provide a structured Dev → Test → Prod promotion path with deployment rules, validation, and history. For organisations with serious Power BI investments, pipelines are the canonical ALM mechanism. **The pipeline structure.** - **Dev stage** — connected to a dev workspace. - **Test stage** — connected to a test workspace. - **Production stage** — connected to a production workspace. - **Items in scope** — reports, semantic models, dataflows, paginated reports. Each stage corresponds to a Power BI workspace; deployment moves items between workspaces with appropriate transformations. **Setting up.** 1. Create a deployment pipeline in Power BI Service. 2. Assign workspaces to stages. 3. (Optional) Connect Dev workspace from VS Code / Power BI Desktop for editing. 4. Deploy artefacts from Dev to Test, Test to Prod. The pipeline is a record; workspaces hold actual artefacts. **Deployment rules.** - **Data source rules** — switch connection string per stage. - **Parameter rules** — change parameter values per stage. - **Refresh schedule** — different per stage. For example: Dev pipeline connects to dev SQL; Test to test SQL; Prod to prod SQL. Rules automate the switch. ## Compare and deploy Before deploying: - See what's different between stages. - Per-item: New, Different, Unchanged. - Review changes; confirm intent. - Deploy selected items. This is the safety net — see what'll change before clicking. ## Selective deployment Don't have to deploy everything: - Pick specific items. - Useful for hotfix scenarios. - Useful when multiple items are in flux but only some are ready. ## Cross-stage deployment Standard flow: Dev → Test → Prod sequentially. Sometimes: - Hotfix straight to Prod skipping Test (with care). - Rollback by deploying older Test version back to Prod. Pipeline handles both directions; discipline applies. **Permissions.** - Pipeline admin can deploy. - Individual workspace permissions still apply. - Granular: someone can be Dev admin but Test reviewer. For governance, role separation across stages matters. **Workspace setup.** - Workspaces typically have descriptive names: `Sales-Dev`, `Sales-Test`, `Sales-Prod`. - Items moved by pipeline; manual changes in Prod risk drift. - For "no manual production changes" policy, lock down Prod workspace access. ## Deployment history Each pipeline records: - Deployments made. - Who deployed. - When. - What changed. This is the audit trail. ## Integration with Git Power BI integrates with Git (Azure Repos, GitHub): - Workspaces backed by Git repository. - Changes versioned in commits. - Branch-based development. - Merge to deploy. For mature ALM, Git integration + pipelines is the combination. Adoption varies; the integration is improving. ## API-based pipelines Power BI REST API supports pipeline operations: - List pipelines. - Trigger deployments. - Get deployment history. Used by CI/CD tools (Azure DevOps, GitHub Actions) for automation beyond what the UI provides. **Comparison with manual export/import.** | Aspect | Pipeline | Manual | |---|---|---| | Speed | Fast | Slow | | Error rate | Low | High | | Audit trail | Native | Manual | | Rules | Automated | Manual | | Cost | Premium feature | Free | For organisations on Premium / PPU, pipelines are clearly preferred. ## Premium vs Fabric Both support deployment pipelines: - **Power BI Premium** — original; well-tested. - **Fabric** — newer; integrated with broader Fabric workspace concept. Functionally similar; Fabric is the strategic direction. **Common pitfalls.** - **No pipeline.** Manual promotion; drift inevitable. - **Deployment rules incomplete.** Production points at test data source. - **Manual changes in Prod.** Workspace divergence; future deploys conflict. - **No environment isolation.** Dev workspace points at prod data; unintentional impact. - **Refresh credentials mismatched** — pipeline deploys but refresh fails in target. - **No deployment review.** Deploy without checking what changed. **Best practices.** - **Strict workspace separation** by stage. - **Deployment rules for every source** — no environment-specific URLs in code. - **Compare before deploy.** - **Document deployment in change ticket.** - **Test in Test stage** — actually test before promoting. - **Monitoring post-deployment** — verify refreshes succeed in Prod. ## Hotfix patterns Production issue: 1. Identify the problem. 2. Fix in Dev or directly in a hotfix workspace. 3. Test minimally. 4. Deploy through pipeline (Dev → Test → Prod, or skip). 5. Document the hotfix and root cause. 6. Plan permanent fix into next regular cycle. ## Power Apps Pipelines comparison Similar concept across Power Platform: - **Power BI deployment pipelines** — for BI artefacts. - **Power Platform pipelines** — for Power Apps / flows. Each pipeline tool specific to its surface; both follow similar Dev → Test → Prod patterns. ## Strategic positioning Deployment pipelines are how serious Power BI deployments handle change. The pipeline provides the discipline; the operational rhythm (regular deploys, post-deploy validation, incident retros) provides the value. For Premium / PPU customers, treating pipelines as default infrastructure rather than optional convenience is the right approach. The cost in setup is small; the benefit in reliability and traceability is significant. --- # Power BI for Dynamics 365 How Power BI integrates with Dynamics 365 — pre-built apps, Dataverse and F&O connectors, Microsoft Fabric, and where the data actually lives. Source: https://www.solvingdynamics365.com/guides/power-bi-for-dynamics-365 Section: Power Platform / Power BI Published: 2026-05-01 Updated: 2026-09-04 ### Key facts - Microsoft ships pre-built Power BI apps for Sales, Customer Service, Finance, Business Central, Supply Chain, Field Service, and Project Operations, each answering roughly 80% of typical analytical questions out of the box. - Embedded Power BI reports honour Power BI row-level security, configured independently of Dataverse security — the two models do not sync automatically and must be aligned deliberately, commonly by mapping business units or territories to RLS roles. - Synapse Link streams both Dataverse and F&O data into OneLake near-real-time, giving Power BI's DirectLake mode fast query performance without scheduled import refreshes. - Direct query against Dataverse works well for live operational reports under roughly a million rows in the fact tables; beyond that, DirectQuery gets painful and a lake-based architecture becomes the better fit. - The old F&O entity store is deprecated for new customers in favour of Synapse Link for Finance and Operations, which is itself moving toward Fabric mirroring. Power BI is the default analytics layer for any Dynamics 365 customer. Microsoft ships pre-built Power BI apps for every major Dynamics 365 product, and customers extend or replace them with their own. The biggest design choice is where the data sits — and there are now three serious answers. ## Pre-built Power BI apps From the Power BI app marketplace, install **Microsoft's published apps** for Sales, Customer Service, Finance, Business Central, Supply Chain, Field Service, and Project Operations. Each app contains a curated dataset, dashboards, and reports tuned to the source product. Out of the box, these answer 80% of the typical analytical questions and are the right starting point even if you eventually replace them. For pixel-perfect, print-ready output — a statutory form or an invoice-style report rather than an interactive dashboard — [paginated reports](https://www.solvingdynamics365.com/guides/power-bi-paginated-reports) is the right tool alongside these apps, not a replacement for them. ## Direct connectors Power BI has first-class connectors to: - **Dataverse** — direct query against the Dataverse SQL endpoint or import via the Dataverse connector. The right pattern for CRM-side reporting where data volumes are modest and you want live numbers. - **Business Central** — REST API and OData connectors. Fast for moderate volumes; for years of history, prefer the data lake export. - **F&O entity store / data lake** — historical fact-table extracts for large reporting needs. ## Microsoft Fabric and OneLake The strategic direction. **Synapse Link for Dataverse** streams Dataverse changes into OneLake near-real-time; **Synapse Link for F&O** does the same for Finance/SCM. The result is a Fabric lakehouse containing both CRM and ERP data, queryable with Power BI's **DirectLake** mode for fast performance without import refreshes. For mid-to-large customers, this is becoming the default analytics architecture. ## Embedding Power BI reports embed inside Dynamics 365 model-driven apps as **system charts** or as embedded reports in dashboards. Embedded reports respect row-level security configured in Power BI. ## Row-level security Power BI supports **row-level security (RLS)** that scopes data per user — typically by mapping a Dataverse business unit or territory to an RLS role. Configure it in Power BI Desktop, deploy to the service, and reports show each user only their data. ## Performance Import models are fastest for end users but require scheduled refresh — and are the models that hit [dataset refresh failures](https://www.solvingdynamics365.com/guides/power-bi-dataset-refresh-failures) when a source schema or credential changes. DirectQuery is live but slower and load-sensitive. DirectLake bridges the two, querying OneLake parquet without import. Pick deliberately per dataset. ## Costs Power BI Pro per user, Premium per user, or Premium capacity. Pre-built apps require at least Pro for end users; large embedded scenarios usually justify a Premium capacity. ## Operational reality Don't build a custom Power BI model the day before go-live. Start with Microsoft's app, evolve from real user questions, and migrate to Fabric when scale demands it. ## Choosing the storage layer: a decision matrix | Situation | Right architecture | |---|---| | A single BC company, less than 100 users, ad-hoc finance and inventory reports | BC's built-in analytical reports + Power BI direct connector against the API | | A Sales-only CRM, under 500k rows across accounts + opportunities + activities | Dataverse DirectQuery with the pre-built app extended in place | | Sales + Service + Field Service, multiple business units, mixed live and historical | Synapse Link for Dataverse into OneLake, Power BI DirectLake mode | | F&O only, single legal entity, standard modules | The published F&O Power BI apps + Data Lake export for history | | F&O + Business Central + Dataverse, multi-country, cross-domain KPIs | Fabric lakehouse via Synapse Link (both sides) with Power BI DirectLake | | CRM data + external systems (Snowflake, Salesforce, SAP) | Fabric lakehouse with mirrored sources; Power BI on top of the unified model | The pattern repeated across every one of those is: land clean data once, model once, report many times. Custom Power BI models built directly on top of an OData endpoint tend to become impossible to maintain past 10-15 tables. ## Common mistakes - **Rebuilding the pre-built app on day one.** Microsoft's shipped app is usually 80% of what a finance or service team wants. Rewrite it once you know which 20% is wrong for you, not before. - **Forgetting to align RLS with Dataverse security.** Reports show numbers no one on the CRM side can see, or vice versa, and trust in the numbers evaporates. - **Running DirectQuery on hundreds of millions of rows.** The report page loads for 40 seconds, users stop opening it, and someone declares Power BI slow. Move to import or DirectLake; do not blame the tool. - **Ignoring workspace lineage.** In a Premium workspace with pipelines you can promote dataset changes deterministically dev → test → prod. Without that, one broken measure ends up in production because someone published from Desktop straight to the wrong workspace. - **Underestimating capacity for embedded scenarios.** A dashboard embedded in a public-facing portal at scale requires Premium capacity, not Pro. Model the peak-hour queries before committing to a design. ## Governance in one paragraph Power BI in a Dynamics 365 tenant needs the same treatment as any Power Platform product: tenant settings that restrict who can publish to production workspaces, sensitivity labels on the datasets that carry personal or financial data, workspace roles that map to real jobs, and an admin API job that exports the tenant's inventory of reports and datasets weekly so nothing is invisible to the platform team. The rest is normal report engineering. ## Where to go next The analytics layer underneath is [Microsoft Fabric and Dynamics 365](https://www.solvingdynamics365.com/guides/microsoft-fabric-and-dynamics-365) and [Synapse Link for Dataverse](https://www.solvingdynamics365.com/guides/azure-synapse-link-for-dataverse). On the Power BI side: [row-level security](https://www.solvingdynamics365.com/guides/power-bi-row-level-security-deep-dive), [dataflows vs datamarts](https://www.solvingdynamics365.com/guides/power-bi-dataflows-vs-datamarts), and [deployment pipelines](https://www.solvingdynamics365.com/guides/power-bi-deployment-pipelines) for moving reports between workspaces. ### Frequently asked questions **Do I need Power BI Premium for Dynamics 365 reporting?** Not for the pre-built apps or a small internal team on Power BI Pro. Premium per user or a Premium capacity becomes necessary once you need DirectLake against OneLake, large models, deployment pipelines, or external sharing beyond a handful of users. **Should I use Dataverse direct query or export to a lake?** Direct query for live operational reports on modest data volumes (roughly under a million rows in the fact tables). Once history matters, DirectQuery gets painful and Synapse Link (or Fabric mirroring) into OneLake, then Power BI in Import or DirectLake mode, is the answer. **Do Power BI reports embedded in Dynamics 365 honour Dataverse security?** No. Embedded Power BI reports honour Power BI row-level security, which you configure independently. A common pattern is to map Dataverse business units or territories to RLS roles so the two security models line up, but they do not sync automatically. **What replaces the old F&O entity store?** Synapse Link for Finance and Operations (moving toward Fabric mirroring) streams data into Azure Data Lake / OneLake in near real time. The entity store is deprecated for new customers; existing models should be planned for migration. --- # Power BI gateway for on-prem data How the on-premises data gateway bridges Power BI to on-prem data sources — installation, configuration, security. Source: https://www.solvingdynamics365.com/guides/power-bi-gateway-for-on-prem-data Section: Power Platform / Power BI Published: 2026-07-26 Power BI lives in the Microsoft cloud; many Dynamics 365 customers still have on-premise data sources — old SQL Server databases, legacy ERPs, file shares, internal services — that must be combined with cloud data for analytics. The **on-premises data gateway** is the bridge — a small Windows service running inside the customer's network that securely brings cloud Power BI queries to on-prem data. **The architecture.** The gateway sits in the customer's network as a Windows service: - **Outbound-only connection** to Microsoft's Azure Service Bus relay. The gateway doesn't accept inbound from the internet; it polls Microsoft. - When Power BI cloud needs to query an on-prem source, it sends the query through Azure Service Bus. - The gateway picks up the query, runs it against the configured on-prem source, and returns results back through Service Bus to Power BI. - The result lands in Power BI's data model; the user sees their report. This pattern works without VPN setup, without opening firewall ports, without exposing on-prem data to the internet. **Two gateway types.** - **Standard mode** — for use by multiple users / Power BI reports. Production scenario. Multiple users share the gateway; admin centrally manages. - **Personal mode** — for an individual maker's exploration; the gateway runs on the maker's PC. Less robust but quick for prototyping. Production deployments use standard mode. **Installation.** 1. Download the on-premises data gateway installer from Microsoft. 2. Install on a Windows server inside the network — typically a dedicated server, not a shared one. 3. Sign in with a Microsoft 365 / Entra ID account that has appropriate Power BI admin rights. 4. Register the gateway with a name and recovery key. 5. Configure data source connections — add each on-prem source the gateway will serve, with credentials. **Data source configuration.** For each on-prem data source the gateway should serve: - **Type** — SQL Server, file share, OData feed, custom connector. - **Server / database / path** — connection details. - **Credentials** — typically a service account dedicated to gateway use, with read-only access to the source. - **Privacy levels** — for combining data sources, declare each source's sensitivity to prevent cross-contamination in queries. ## High availability Single-gateway deployments are a single point of failure. Production: - **Gateway cluster** — multiple gateway machines registered to the same logical cluster. Power BI load-balances across them. - **Failover** — if one gateway fails, queries route to others. - **Maintenance windows** — rolling restarts during low-usage hours. For mission-critical analytics, gateway clusters are essential. ## Refresh Power BI datasets refresh from on-prem sources via the gateway: - **Scheduled refresh** — Power BI cloud kicks off refresh on a schedule. - **On-demand refresh** — user triggers refresh; same path through the gateway. - **Refresh rate limits** — Pro datasets refresh up to 8 times per day; Premium up to 48 times per day. - **Real-time queries (DirectQuery)** — every report interaction queries through the gateway; minimal latency required. **Performance.** - **Latency** — every query has gateway round-trip overhead; 100-500ms typical. - **Bandwidth** — large result sets transit through Service Bus; can saturate the gateway's link to Azure. - **Concurrent queries** — gateway has limits per CPU / memory; oversized concurrent load needs cluster expansion. **Security.** - **Outbound-only** — no inbound exposure. - **Service Bus relay** — encrypted via TLS. - **Authentication** — Power BI authentication and gateway-resident credentials are separate; query authorisation respects Power BI; data-source connectivity uses gateway-configured credentials. - **Audit** — gateway logs every query; configurable retention. **Use cases for Dynamics 365 customers.** - **Combining cloud BC / D365 with on-prem ERP data** — for customers transitioning or running parallel systems. - **Joining D365 data with on-prem SQL Server** — internal data marts, legacy applications. - **File-share document references** — pulling document metadata from on-prem SharePoint or file servers. - **Custom internal APIs** — accessing custom services that aren't internet-exposed. **Maintenance.** - **Gateway version updates** — Microsoft releases updates monthly. Stay current. - **Credentials rotation** — periodically rotate data source credentials. - **Resource monitoring** — gateway CPU, memory, disk I/O. Plan for growth. - **Connection refresh** — connections occasionally need re-authentication. **Limits.** - **Gateway file size** — large datasets (gigabytes) through gateway are slow. Consider replicating to Azure SQL or Synapse for analytics. - **Some connectors aren't supported** through gateway — primarily cloud-native ones don't need it. - **DirectQuery performance** — gateway adds latency per query; not always suitable for high-interaction reports. **Common pitfalls.** - **Single gateway as production** — outage takes down all reports. Cluster. - **Gateway server under-resourced** — slow queries, timeouts. Right-size CPU and memory. - **Stale credentials** — gateway data sources fail mysteriously; rotate and refresh. - **Insecure credentials** — gateway service account with admin rights to source. Use read-only. ## Operational reality For Dynamics 365 customers with on-prem data, the gateway is essential infrastructure. Plan for it, maintain it, monitor it like any other production service. Cloud-first analytics with cloud-first data sources doesn't need it; mixed environments do. Reaching an on-premises or VNet-isolated data source from Power Platform generally is a related but distinct problem, covered in [the virtual network data gateway for Dynamics 365](https://www.solvingdynamics365.com/guides/virtual-network-data-gateway-for-dynamics-365). --- # Power BI incremental refresh How Power BI incremental refresh works — partitioning by date, range parameters, the refresh policy, and the patterns for large datasets. Source: https://www.solvingdynamics365.com/guides/power-bi-incremental-refresh Section: Power Platform / Power BI Published: 2026-05-01 A semantic model with 10 years of transactional data shouldn't refresh all 10 years every day. **Incremental refresh** in Power BI partitions data by time, refreshes only recent partitions, and leaves historical partitions untouched. For any model with > 1M rows or significant data refresh latency, incremental refresh is essential. ## The concept Data is partitioned by a date column: - **Historical partitions** — older data; refreshed rarely or not at all. - **Incremental partitions** — recent data; refreshed every cycle. - **Active partition** — current period; may be refreshed. The model query has filter parameters that determine the date range; refresh dynamically computes which partition to refresh. ## Setup In Power BI Desktop: 1. Add two parameters: `RangeStart` (datetime) and `RangeEnd` (datetime). 2. Apply filter in Power Query: `Source[Date] >= RangeStart and Source[Date] < RangeEnd`. 3. Right-click the table → Incremental refresh. 4. Configure refresh policy: - **Archive data starting** — how far back to store. E.g., "5 years". - **Incrementally refresh data starting** — refresh window. E.g., "10 days". 5. Save and publish. On first publish, Power BI partitions the data; subsequent refreshes only update the recent partition. **The refresh policy.** - **Archive period** — how far back history is kept (5 years). - **Refresh period** — how recent the refresh window (10 days). - **Detect data changes** — optional column tracking modifications; refresh only modified records. The window between archive and refresh is "cold" — stored but not refreshed. ## Detect data changes Smarter incremental: - Specify a "last modified" column. - Refresh only checks rows modified since last refresh. - Most efficient for slowly-changing dimensions. ## Real-time data Combine incremental with DirectQuery: - Recent partition in DirectQuery for real-time. - Older partitions in Import. - **Hybrid Tables** feature in Power BI Premium. Hybrid combines the best of both: real-time recency, performant import for history. **Performance benefits.** - **Refresh time** — minutes instead of hours. - **Memory** — partitions loaded on demand. - **Storage** — efficient compression per partition. For a 100M-row table, incremental refresh can cut refresh time by 95%+. **Partition strategy.** - **Yearly** — for slowly changing data, longer history. - **Monthly** — most common; balances granularity and refresh cost. - **Daily** — for very recent / fast-changing data. The refresh policy determines partition granularity. **Limitations.** - **DirectQuery and Live Connection** — partial support; DirectQuery to many sources fully supports. - **Service-side scheduled refresh** — must be enabled. - **Source must support range filter** — pushdown to source for efficiency. ## Source pushdown Critical for performance: - Power BI sends the range filter to source. - Source returns only matching rows. - Source-side filter avoids transferring full data. Without pushdown, even incremental refresh reads everything. ## Premium / Premium Per User Incremental refresh requires: - **Power BI Pro** for basic incremental (limited). - **Premium / PPU** for full feature including detect data changes and hybrid tables. For meaningful data sizes, Premium is the practical choice. ## Initial load First refresh is expensive: - Reads full history per archive period. - Can take hours. - Often broken into manual partitions to manage. Plan the initial load carefully; may need to schedule it manually first. ## Partition troubleshooting Tabular Editor and SQL Server Management Studio can connect to the Premium dataset and show partitions: - Per-partition row count. - Refresh timestamp. - Memory footprint. Visibility helps when refresh seems wrong. **Common pitfalls.** - **No source pushdown.** Each refresh reads all source data; defeats incremental. - **Filter not on date column.** Filter on derived date; pushdown fails. - **Detect data changes column wrong.** Misses updated rows. - **Archive period too long.** Wastes storage on unused history. - **Initial load timeout.** First refresh exceeds limits; partitions incomplete. - **Cross-table dependencies.** Two tables with different partition strategies; joins inefficient. **Best practices.** - **One date column per fact table** — incremental aligns. - **Pushdown verified** — check query trace. - **Archive period justified.** Don't archive 10 years if 3 suffice. - **Refresh window short.** 5–10 days typical; longer if source data changes far back. - **Monitoring** — refresh duration trends. **Schema changes.** - Adding a column requires full refresh. - Changing data types may invalidate partitions. - Major changes: deploy then full refresh; subsequent refreshes incremental again. **Operational rhythm.** - **Daily / hourly** — scheduled refresh. - **Monthly** — refresh metrics review. - **Quarterly** — full refresh to reset partitions if drift. ## Strategic positioning Incremental refresh is essential for any Power BI semantic model with material data volume. The setup investment is moderate (defining parameters, configuring policy); the operational benefit is substantial (faster refreshes, predictable resource usage, scalable to billions of rows). For new models with growing data, design with incremental from the start; retrofitting later is harder. The pattern is mature; the discipline of using it is what separates production-grade models from prototypes. --- # Power BI paginated reports How paginated reports differ from interactive Power BI reports — SSRS lineage, design tool, when pixel-perfect matters. Source: https://www.solvingdynamics365.com/guides/power-bi-paginated-reports Section: Power Platform / Power BI Published: 2026-05-01 Power BI's headline experience is **interactive reports** — dashboards built in Power BI Desktop, browsed in the service. But every Power BI deployment of any size eventually needs the *other* report type: **paginated reports** — pixel-perfect, page-oriented documents born from SQL Server Reporting Services (SSRS). ## Why the distinction Interactive Power BI reports excel at exploration: filters, drillthrough, slicers, charts. They don't excel at print: a 47-page month-end pack with vendor statements, regulatory submissions, customer invoices. For these, paginated reports are the right tool. **Paginated reports in short.** - Lineage: SSRS RDL format. - Designed in **Power BI Report Builder** (free download). - Hosted in the Power BI service or Power BI Report Server. - Output formats: PDF, Excel, Word, CSV, image. - Page-based — explicit page breaks, headers, footers. - Data-bound at runtime via parameters. **Use cases for paginated.** - **Regulatory submissions** — government forms with exact layouts. - **Customer-facing invoices and statements** — branded, printable. - **Operational reports** — picking lists, packing slips, daily sales by store, formatted for printer. - **Long tabular exports** — sub-ledger details, audit packs. - **Email blasts** — generate a PDF per customer with personalised content. ## Designing a paginated report Open Report Builder: 1. **Data source** — connect to a Power BI semantic model, SQL Server, Azure SQL, Dataverse, or OData. 2. **Dataset** — query the data source. 3. **Layout** — drag controls onto pages: tables, matrices, charts, text boxes, images. 4. **Parameters** — define inputs the user provides (date range, customer ID). 5. **Formatting** — fonts, colours, page size, headers, footers. 6. **Preview** — runtime test. 7. **Publish** to Power BI service. The design experience is more traditional than Power BI Desktop — closer to Crystal Reports or SSRS than to modern interactive design tools. ## Data sources Paginated reports can query: - Power BI semantic models (modern recommended path). - Azure Synapse, Azure SQL, on-prem SQL via gateway. - Dataverse. - OData feeds. - Many others through extensions. A modern pattern is centralising in a Power BI semantic model and having paginated reports query the same model — single source of truth across interactive and paginated. **Hosting.** - **Power BI service** — the cloud, requires Premium or PPU. - **Power BI Report Server (PBIRS)** — on-prem alternative, useful for sovereignty requirements. Slower release cadence; tend to lag service features. **Triggering reports.** - **Manual** — user opens the report and provides parameters. - **Subscription** — email schedule sends PDF to recipients. - **Power Automate** — flow generates the report with parameters and routes the output (email, attach to a record, save to SharePoint). - **API** — programmatic generation. The Power Automate integration is the workhorse for operational delivery — "every Monday email each sales rep a paginated PDF of their week ahead." **Comparison to interactive Power BI.** | Aspect | Interactive | Paginated | |---|---|---| | Purpose | Exploration | Print/export | | Layout | Flexible canvas | Pixel-precise | | Output | Browser experience | PDF/Excel/etc | | Author | Power BI Desktop | Report Builder | | Data | Semantic models | Many sources | | Parameters | Slicers (in-report) | Run-time inputs | | Hosting | Service / PBIRS | Service / PBIRS | **Where paginated is still essential.** - Anything that needs to be **printed or emailed as a static document** with fixed layout. - **Regulatory-format submissions** with strict pagination. - **High-volume per-record generation** (10,000 customer statements at month end). **Modern alternatives.** - **Power BI mobile** — interactive but mobile-friendly. - **Export to PDF from interactive** — works for simple cases, awkward for complex. - **Generate documents from Power Automate** — Word templates, dynamic PDF generation; for documents with limited data and high formatting needs, sometimes simpler than paginated. **Common pitfalls.** - **Migrating SSRS reports as-is.** They work but look dated; consider redesign in Report Builder. - **Overcomplicated queries inline.** Heavy SQL embedded in datasets; performance hit. Push to views or semantic models. - **No subscription discipline.** Reports emailed forever to people who left; subscription audit is a recurring hygiene task. - **Wrong tool choice.** Building an exploration scenario as paginated, or a printable scenario as interactive — both lead to friction. - **Forgotten data refresh dependencies.** Paginated against an out-of-date semantic model emails wrong numbers. ## Operational guidance A mature Power BI deployment uses both: interactive for analytical consumption, paginated for operational document delivery. Treat them as complementary, not competing. The teams that try to force one to do the other's job end up with frustrating experiences and unhappy users. --- # Power BI row-level security — a deep dive How row-level security (RLS) works in Power BI semantic models — DAX roles, dynamic security, object-level security. Source: https://www.solvingdynamics365.com/guides/power-bi-row-level-security-deep-dive Section: Power Platform / Power BI Published: 2026-05-01 A Power BI report that shows everyone's data to everyone is rarely the right answer. Sales managers see their team; account executives see their accounts; HR sees their region. **Row-level security (RLS)** in Power BI semantic models filters data per user, so the same report shows different rows to different people. Designed well, it's transparent and reliable; designed poorly, it leaks data or breaks queries. **The two patterns.** - **Static RLS** — roles with hardcoded filter values. "Region = US" for the US Sales role. - **Dynamic RLS** — roles that filter based on the current user's properties. "AccountManager.Email = USERNAME()" returns only the current user's accounts. Dynamic is far more flexible; one role serves many users. ## Defining a role In Power BI Desktop: 1. Modeling tab → Manage Roles. 2. Add Role; give it a name. 3. Add DAX expression as a filter on relevant tables. Example role "Region Manager": ```dax Sales[Region] = LOOKUPVALUE(RegionMapping[Region], RegionMapping[UserEmail], USERNAME()) ``` Filters Sales to rows matching the current user's mapped region. ## USERNAME() function Returns the current authenticated user's identity: - In Power BI Service: email or UPN. - In Power BI Desktop: usually `DOMAIN\username`. Use `USERPRINCIPALNAME()` for consistent UPN across surfaces. ## Mapping table approach Common pattern: - Separate mapping table: `UserAccess[UserEmail, Region]`. - Role filter joins user email to the mapping. - Adding/removing user access = editing the mapping table. Cleaner than hardcoding user emails in roles. ## Testing RLS In Power BI Desktop: - View as Roles → select role. - Optionally "Other user" → enter email. - Report renders as that user would see it. Test every role before publishing. ## Assigning users to roles In Power BI Service: - Semantic model → Security. - Per role, add users or groups. - Microsoft Entra security groups recommended for scale. ## Group-based assignment Critical at scale: - Map an Entra group to a role. - Add user to the group → automatically has the role. - Remove from group → no access. Maintenance happens in Entra, not Power BI; cleaner separation. ## Multiple roles per user If user has multiple roles assigned: - Filters are OR'd. - User sees union of what each role allows. So Role A (Region = US) + Role B (Region = EMEA) = sees US + EMEA. Sometimes desirable (regional manager covering two regions); sometimes confusing (overlapping role assignments hide intent). ## Object-level security Beyond rows: - Hide specific columns from specific roles. - Hide entire tables. - Configured in Tabular Editor or Power BI external tools. Use cases: - Sales sees customer financial data; Marketing doesn't. - Engineers see technical fields; Operations doesn't. Object-level is newer; less commonly used but powerful. **Performance considerations.** - RLS filters apply on every query. - Complex DAX in roles → slow queries. - Indexes / relationships help. - Cardinality of filtering column matters. For very large datasets with many users, RLS can become a performance limiter; optimise role definitions. **DirectQuery vs Import.** - **Import mode** — RLS filters applied at query time against imported data. - **DirectQuery** — filters translated to source query. - **Direct Lake (Fabric)** — filters applied at OneLake query. All support RLS; mechanisms differ. ## Inheritance and composite models When composite (mixed import + DirectQuery): - RLS rules must cover both sources. - Misconfiguration risks data leak from unfilters source. Audit composite models carefully. **Common pitfalls.** - **Role not assigned.** User has access to report but no role → sees nothing (or all data, depending on default). - **Default access too broad.** No role = all data; should be no role = no access. - **Hardcoded user emails.** Mapping table preferred. - **Cross-filter direction not set.** Filter doesn't propagate; data leaks. - **Role left for testing.** "Test Admin" role with no filter; assigned in production. - **No audit of role changes.** Role definitions drift; security gaps emerge. **Audit and testing.** - **Periodic role audit** — what roles, who's in them, what they see. - **Penetration test** — try to access data outside role; should fail. - **Documentation** — role purpose and definition documented. **RLS vs workspace permissions.** - **Workspace permissions** — coarse: can user open this report? - **RLS** — fine: which rows does this user see? Both apply. Workspace permissions give access to the report; RLS filters within. **Dynamic vs static trade-offs.** - **Static**: simpler, more roles needed, harder to maintain. - **Dynamic**: more complex DAX, fewer roles, easier maintenance. Dynamic almost always wins for deployments with > 10 users. ## Cross-system consistency If Dataverse has its own row-level security (BU-based, hierarchical), aligning Power BI RLS to match is essential: - Same user → same data in Dataverse and Power BI. - Mapping table can be sourced from Dataverse user / team structure. ## Strategic positioning Row-level security is foundational for enterprise Power BI. Without it, every report exposes all data; reports become useless for sensitive content. With it, the same semantic model serves diverse audiences appropriately. Investment in proper role design, group-based assignment, and periodic audit pays back continuously. Skipping it means either limiting reporting scope or accepting data exposure — neither acceptable for serious deployments. --- # Power Fx explained The Power Fx formula language — Excel-like syntax, where it's used in the Power Platform, and what's different from JavaScript. Source: https://www.solvingdynamics365.com/guides/power-fx-explained Section: Power Platform / Power Apps Published: 2026-05-01 **Power Fx** is Microsoft's low-code formula language. It's the language used in Power Apps canvas apps, Dataverse formula columns, certain Power Automate scenarios, and is being adopted across more of the Power Platform every release. Designed deliberately to feel like Excel — strongly typed, declarative, functional — it's accessible to anyone who has ever written `=SUMIF(...)` in a spreadsheet. ## Excel-like syntax Power Fx looks like Excel formulas. `=` prefix isn't used in Power Apps but the syntax is `Filter(Customers, Country = "Sweden")`, `Sum(Orders.Total)`, `If(Status = "Active", "Yes", "No")`. Anyone fluent in spreadsheets is productive in Power Fx within hours. ## Declarative Power Fx is declarative — you describe what you want, not how to compute it. The runtime decides evaluation order, caching, and dependencies. Variables are mostly avoided; **[named formulas](https://www.solvingdynamics365.com/guides/power-fx-named-formulas)** and **collections** (in-memory tables) are the idiomatic way to manage state. ## Functions Hundreds of built-in functions cover text manipulation, math, dates, table operations (Filter, Sort, AddColumns, GroupBy, Sum, Count), navigation, controls, and data connection actions. Most have direct Excel equivalents. ## Records and tables First-class data types. A **record** is a JSON-like object: `{Name: "Karen", Country: "Sweden"}`. A **table** is a list of records. Table operations are vectorised — `Filter(Customers, Country = "Sweden")` returns a table without explicit looping. ## Tables and connectors When connected to Dataverse, SharePoint, SQL, or another data source, tables in Power Fx are *backed by* the underlying source. **Delegation** matters: functions that can be evaluated server-side (delegable) run efficiently on large datasets; non-delegable functions fall back to a 2000-row client-side limit. The maker is warned in the editor when they write a non-delegable expression. **Where it's used.** - **Canvas Power Apps** — every property of every control is a Power Fx expression. - **Dataverse formula columns** — calculate values stored on records, similar to Excel formulas in a sheet column. - **Power Apps custom pages** — embedded in model-driven apps with Power Fx behaviour. - **Power Automate desktop** — increasingly in flow design. - **Excel** — the syntax is converging; some Power Fx functions are now in Excel directly. ## Differences from JavaScript No variables required, no statements, no loops. Side effects exist (`Set`, `Patch`, `Collect`, `Navigate`) but are expressions, not statements. Errors propagate as values rather than thrown exceptions. ## Limits Not Turing-complete in the traditional sense — there are no arbitrary loops. Heavy programmatic logic still belongs in JavaScript (in HTML web resources), Power Automate flows, or C# plug-ins. ## Adoption Excel-literate users build working apps in days. Microsoft is open-sourcing the language; a Power Fx command-line interpreter exists for testing expressions. ### Frequently asked questions **Where is Power Fx used?** Every property of every control in canvas Power Apps, Dataverse formula columns, custom pages embedded in model-driven apps, increasingly Power Automate, and the syntax is converging with Excel itself. **How is Power Fx different from Excel formulas?** The syntax is deliberately Excel-like — Filter, Sum, If — but expressions run against tables backed by data sources, records are first-class JSON-like values, and side effects such as Set, Patch, and Collect exist as expressions rather than statements. **What is delegation in Power Fx?** Whether a function can be evaluated server-side by the data source. Delegable expressions run efficiently on large tables; non-delegable ones fall back to a client-side limit of 2,000 rows, and the editor warns when you write one. **Can Power Fx replace JavaScript or C#?** Not for heavy programmatic logic. Power Fx has no arbitrary loops or statements; complex logic still belongs in JavaScript web resources, Power Automate flows, or C# plug-ins. --- # Power Fx named formulas How named formulas in Power Fx differ from variables — declarative, recomputed, no side effects — and how they reshape canvas app code organisation. Source: https://www.solvingdynamics365.com/guides/power-fx-named-formulas Section: Power Platform / Power Apps Published: 2026-05-01 Named formulas are a relatively recent addition to canvas apps that, once understood, change how an experienced maker organises code. They're named expressions evaluated lazily when referenced, with no explicit assignment and no implicit recomputation cost — a properly functional layer on top of Power Fx that complements (and often replaces) variables. ## The historical pattern: variables Canvas apps have long had variables — `Set(varCurrentUser, User())`, `UpdateContext({selected: thisItem})`. Variables are mutable, assigned imperatively, persist until reassigned. They're familiar to developers from imperative languages but they create classic problems: out-of-date values, race conditions on async work, scattered assignments. **Named formulas in App.Formulas.** In the canvas app `App` object's `Formulas` property: ``` CurrentUser = User(); DefaultSiteId = First(Sites).Id; TodayLabel = "Today is " & Text(Today(), "long"); GrossMargin = SalesAmount - CostAmount; ``` Each line names a formula. Anywhere the name is referenced, the formula re-evaluates. There's no `Set`, no `Update`. The compiler can detect dependencies and recompute lazily. **Properties.** - **Declarative** — you say what it is, not when to compute it. - **Pure** — no side effects allowed in the formula. - **Lazy** — only evaluated when referenced. - **Cached intelligently** — re-evaluated when dependencies change, not on every reference. - **Constant by reference** — the name always means the same expression, never "the value at a moment in time." **Compared to variables.** | Aspect | Variable | Named Formula | |---|---|---| | Assignment | `Set(name, value)` | `name = expr;` in App.Formulas | | Mutability | Mutable | Immutable definition | | Update | Manual via Set | Auto-recompute on dependency change | | Side effects | Allowed | Not allowed | | Scope | App-wide or screen-local | App-wide | | Asynchronous | Yes, can store Patch results | No, must be synchronous | **When to use named formulas.** - **Derived values** — anything computed from other state. - **Configuration constants** — labels, defaults. - **App-wide reference data** — current user, current language, today's date. - **Pure transformations** — formatted labels, filtered collections (where filter inputs are stable). **When to keep using variables.** - **Async results** — outputs from `Patch`, custom connector calls. - **Mutable UI state** — selected tab, current step in a wizard. - **Counters and toggles** — anything explicitly time-varying. ## Example: replacing OnStart variables A common pattern is loading reference data in App.OnStart: ``` Set(varCurrentUser, User()); Set(varDefaultSite, First(Sites)); Set(varTodayLabel, "Today is " & Text(Today(), "long")); ``` Equivalent with named formulas in App.Formulas: ``` CurrentUser = User(); DefaultSite = First(Sites); TodayLabel = "Today is " & Text(Today(), "long"); ``` The named formula version: - Doesn't block app start (lazy). - Recomputes automatically when underlying data changes. - Lives in one place; no need to remember Set is called somewhere. For typical reference data loads, this is a meaningful UX improvement — app starts faster. ## Dependency tracking Power Fx tracks dependencies. If `GrossMargin = SalesAmount - CostAmount` and `SalesAmount` is itself a named formula or a data source field that changes, GrossMargin re-evaluates automatically. The maker doesn't trigger updates manually. ## Performance Lazy evaluation means formulas referenced but never used cost nothing. Formulas referenced once compute once. Formulas referenced repeatedly within a render cycle benefit from caching. Heavy formulas referenced in a galaxy of bound controls can still be expensive — design accordingly. **Limitations.** - **No side effects** — `Patch`, `Notify`, `Navigate` are not allowed. - **Synchronous only** — connector calls returning async results not allowed. - **No If/With with control mutation** — pure expressions only. - **App-level scope** — named formulas live on App, not per screen. ## Component formulas Power Fx custom components can have their own named formulas, scoped to the component. Useful for component-internal derived values without polluting app scope. **Best practices.** - **Use named formulas as defaults for any derived value.** Reach for variables only when mutability is genuinely required. - **Name carefully** — these are app-wide; use Pascal or clear prefixes. - **Refactor large App.OnStart** — most Set calls can become named formulas, dramatically simplifying start logic. - **Document the dependency graph** when it gets complex — a comment block at the top of App.Formulas listing key formulas helps future maintainers. **Common pitfalls.** - **Mixing imperative thinking** — trying to "trigger" a formula recompute. Power Fx handles this; if it's not recomputing, it's because dependencies haven't changed. - **Storing async results** — won't work; needs variable. - **Over-reliance on App scope** — sometimes a per-screen variable is genuinely the right scope. ## Operational guidance Named formulas are the modern default for derived state in canvas apps. They reduce code, improve correctness, and produce apps that are easier for the next maker to understand. The "imperative variable everywhere" style is still common but increasingly outdated. --- # Power Pages for Dynamics 365 customer portals Building customer-facing portals on top of Dataverse — Power Pages templates, authentication, security, and operational realities. Source: https://www.solvingdynamics365.com/guides/power-pages-for-customer-portals Section: Power Platform / Power Pages Published: 2026-05-01 **Microsoft Power Pages** is the low-code platform for building secure, external-facing websites that read and write Dataverse. For Dynamics 365 customers, it's the standard way to deliver customer self-service portals, B2B partner extranets, public-sector citizen portals, event-registration sites, and supplier collaboration hubs. The product carries history worth knowing before reading older material: [Power Apps portals history and rebranding](https://www.solvingdynamics365.com/guides/power-apps-portals-history-and-rebranding) covers the name change from Power Apps portals and what actually changed versus what's just a new name. ## The shape of a Power Pages site A site has **pages** (content), **web templates** (Liquid-driven layout), **forms** (rendering Dataverse forms with controlled fields and permissions), **lists** (rendering Dataverse views), and **web files** (assets — images, scripts, stylesheets). Everything is configured through a maker portal with both visual designers and direct code editing. When a Liquid template or a portal page misbehaves, [Liquid and portal errors](https://www.solvingdynamics365.com/guides/power-pages-liquid-and-portal-errors) decodes the common failure messages. ## Authentication Power Pages supports multiple identity providers: **Entra ID**, **Microsoft account**, **Google**, **Facebook**, **LinkedIn**, **Apple**, and any **OpenID Connect** or **SAML 2.0** provider. **Local accounts** (username/password stored in Dataverse) are also supported but discouraged. Anonymous browsing is allowed where the use case fits (public knowledge portals); behind a login is the more common pattern. ## Identity to record mapping Authenticated users map to **Contact** records in Dataverse — one portal user is one Contact. Self-registration and identity-provider sign-up flows create the Contact automatically; admin-driven invitations are also possible. ## Web roles Permissions inside Power Pages are governed by **web roles** assigned to Contacts. Each role grants access to pages, forms, lists, and Dataverse data through **table permissions**. The pattern is similar to Dynamics 365 security roles but scoped to portal users only; production CRM users don't get portal permissions through Dataverse roles. ## Table permissions Critical concept. **Table permissions** define what portal users can read, write, create, delete on specific Dataverse tables, scoped by relationship (e.g. "this Contact can read their Account's Cases", not "any Case"). Misconfigured table permissions are the most common Power Pages security mistake — too permissive grants data leaks; too restrictive blocks users from their own data. ## Customer use cases Most Dynamics 365 customers use Power Pages for at least one of: - **Case logging** — customers create and track cases against Customer Service. - **Knowledge browsing** — exposing the customer-facing slice of the knowledge base. - **Account self-service** — customers update contact info, see invoices, pay online (with payment-processor integration). - **Partner portals** — distributors and resellers access deal registration, pricing, and shared opportunities. ## Limits Power Pages is great at moderate-complexity portals. Highly visual marketing sites, e-commerce checkouts, and complex public-facing experiences often integrate Power Pages for the data-driven sections with a separate CMS or framework for the rest. ## Operating cost Per active user per month, with a separate anonymous-page-view tier. Capacity is bought in packs. --- # Power Pages Liquid and portal errors The Power Pages errors makers hit most — Liquid syntax and permission errors, form submission failures, and the ones that only show up in production. Source: https://www.solvingdynamics365.com/guides/power-pages-liquid-and-portal-errors Section: Power Platform / Troubleshooting Published: 2026-09-06 Power Pages sites are Dataverse-backed and templated with **Liquid**, Shopify's templating language, so most errors either come from Liquid syntax and object references, or from the table permission and web role model that decides what an anonymous or signed-in visitor can actually see and do against Dataverse. ## "Liquid error: Unknown tag" / "Liquid syntax error" **Symptom.** A page renders a raw error message instead of the intended content, visible to whoever is viewing the page (or hidden from anonymous visitors, depending on site settings). **Cause.** A Liquid tag is misspelled, uses a construct Power Pages' Liquid implementation doesn't support (it's a subset, not the full Shopify Liquid feature set), or references a variable that was renamed or removed elsewhere on the page. **Fix.** Check the exact tag name and syntax against Power Pages' supported Liquid reference, and preview the page in the design studio (which surfaces more diagnostic detail than a live site does) while making the fix. **Prevention.** Keep complex Liquid logic in as few, well-tested templates as possible rather than duplicating similar logic across many pages — a syntax mistake in one shared template is one fix, while the same mistake copy-pasted across a dozen pages is a dozen fixes found one at a time as visitors report them. ## "You do not have permission to access this page" on a page that should be public **Symptom.** A page that's meant to be visible to anonymous visitors shows a permission-denied message. **Cause.** The page's associated web page access control (a web role restriction) doesn't include an "Anonymous Users" entry, or the site setting controlling anonymous access is misconfigured. **Fix.** Check the page's web-role-based access control list and confirm anonymous access is explicitly granted where intended — Power Pages defaults toward restricting access, so a page needs an explicit grant, not just the absence of a restriction. **Prevention.** Maintain a simple access matrix (which page, which web roles, anonymous or not) as a design artefact before building pages, so access control is a deliberate decision reviewed at launch rather than discovered through a visitor's bug report. ## Form submission fails silently or with "An error has occurred" **Symptom.** A visitor submits a Basic Form or an Advanced Form and gets a generic failure instead of the expected confirmation. **Cause.** Most commonly a table permission gap (the web role can see the form but lacks Create or Write permission on the underlying table), a required field validation failure the form isn't surfacing clearly, or a business rule or plug-in on the Dataverse side rejecting the write for a reason the portal doesn't translate into a friendly message. **Fix.** Reproduce the submission as a test user with the same web role, check the browser's network tab for the actual API response, and check Dataverse-side plug-in trace logs (via XrmToolBox's Plugin Trace Viewer) if a plug-in is involved in the rejection. **Prevention.** Test every form against a test account holding exactly the web roles a real visitor would have — testing as a system administrator hides every table-permission gap a real visitor will hit. ## Styling or JavaScript changes not appearing after publish **Symptom.** A change to a web template, CSS, or a portal's custom JavaScript doesn't show up on the live site even after a clear browser cache. **Cause.** Power Pages caches content aggressively for performance; a change needs to actually publish (not just save) and the site's content delivery cache needs to expire or be explicitly cleared. **Fix.** Use the "Clear Cache" action available from the Power Pages management app or design studio after publishing, rather than assuming a save alone propagates immediately. **Prevention.** Build a habit of publish-then-clear-cache-then-verify as one deliberate sequence for content changes, especially before a scheduled go-live, so a caching lag isn't mistaken for a failed deployment at the worst moment. ## Where to go next Table permission design specifically is covered in [Power Pages security in depth](https://www.solvingdynamics365.com/guides/power-pages-security-in-depth); the templating side in [Power Pages Liquid templating](https://www.solvingdynamics365.com/guides/power-pages-liquid-templating). For the portal's relationship to Dataverse search, see [Power Pages with Dataverse search](https://www.solvingdynamics365.com/guides/power-pages-with-dataverse-search). ### Frequently asked questions **Why does a Liquid error only show a generic message to site visitors?** Power Pages deliberately hides detailed Liquid error messages from anonymous or authenticated site visitors for security reasons — the diagnostic detail is only visible to a site administrator through the portal's own error logging or by reproducing the issue in the Power Pages design studio. **Is a table permission error the same as a web role error?** No — a web role controls which portal pages and site content a visitor's role can see, while a table permission controls which Dataverse rows that same visitor can read, create, or edit through the portal. Both need to be right; a visitor can pass the web-role check and still be denied at the table-permission layer, which is the more common source of confusing "I can see the page but not the data" reports. --- # Power Pages Liquid templating How Liquid templates work in Power Pages — variables, tags, filters, rendering Dataverse data, and the design patterns for customer-facing portals. Source: https://www.solvingdynamics365.com/guides/power-pages-liquid-templating Section: Power Platform / Power Pages Published: 2026-07-28 Power Pages portals — Microsoft's external-facing website platform on top of Dataverse — render content through the **Liquid** template language. Originally created by Shopify, Liquid is a logic-light templating language designed for safe content rendering. Understanding it is essential for building anything beyond the simplest Power Pages portal. ## The Liquid concept Liquid templates mix HTML with **objects** (data variables), **tags** (control flow), and **filters** (transformations). Templates compile and render server-side; the result is HTML sent to the user's browser. **Three types of Liquid elements.** - **Output** (in `{{ }}`) — print a value. - **Tags** (in `{% %}`) — control flow (if, for, capture, etc.), but no output. - **Filters** (in `| filter`) — transform values during output. Example: ```liquid {% if user.fullname %}

Welcome, {{ user.fullname | upcase }}!

{% else %}

Welcome, guest.

{% endif %} ``` The `{% if %}` and `{% endif %}` are tags; `{{ user.fullname }}` is an output; `| upcase` is a filter. ## Power Pages-specific objects The portal exposes specific objects: - **`user`** — the authenticated user (when signed in). Properties include `fullname`, `email`, `id`, `roles`. - **`page`** — the current page being rendered. Properties: `title`, `summary`, `url`. - **`entities`** — access to Dataverse entities. Used for querying records: `{% entitylist logical_name:"contact" %}`. - **`entityform`** — for forms tied to specific Dataverse forms. - **`weblinks`** — navigation menus configured in Power Pages. - **`request`** — current HTTP request context. - **`settings`** — site-level configuration. - **`now`** — current date/time. These objects give templates access to the live data layer of the portal. **Querying Dataverse records.** ```liquid {% fetchxml entities_query %} {% endfetchxml %} {% for opp in entities_query.results.entities %}

{{ opp.name }} — {{ opp.estimatedvalue | currency }}

{% endfor %} ``` The `{% fetchxml %}` tag runs a FetchXML query; the result is available in subsequent template logic. Power Pages also supports the `{% entityview %}` tag for using saved Dataverse views and `{% entitylist %}` for configured lists. **Common filters.** - **`upcase`, `downcase`, `capitalize`** — case manipulation. - **`date`** — format dates (`{{ contact.createdon | date: "yyyy-MM-dd" }}`). - **`currency`** — format money values. - **`escape`** — HTML-escape (default for user content; rarely turned off). - **`size`** — count of array or characters of string. - **`first` and `last`** — first / last element of an array. - **`limit`** — limit array to N elements. - **`truncate`** — shorten text. - **`replace`** — string replace. - **`url_encode`** — for building safe URLs. **Logic — `if`, `unless`, `case`.** ```liquid {% if user.roles contains 'VIP' %}

VIP content

{% elsif user.roles contains 'Member' %}

Member content

{% else %}

Public content

{% endif %} {% case user.country %} {% when "Sweden" %}

Welkommen!

{% when "Germany" %}

Willkommen!

{% else %}

Welcome!

{% endcase %} ``` **Loops — `for`.** ```liquid {% for opportunity in opportunities %}

{{ opportunity.name }}

{% endfor %} {% for product in products limit: 5 %}

{{ product.name }}

{% endfor %} ``` ## Capture and variables `{% capture %}` stores rendered output in a variable for later use: ```liquid {% capture greeting %} Hello, {{ user.fullname | default: "guest" }} {% endcapture %}

{{ greeting }}

``` ## Includes Reusable template fragments via `{% include %}`: ```liquid {% include 'header' %} ... main content ... {% include 'footer' %} ``` ## Performance Liquid is fast but complex queries inside loops can degrade: - Move queries outside loops where possible. - Use `{% fetchxml %}` with precise filters rather than fetching everything. - Cache repeated lookups in `capture` variables. ## Security Liquid is sandboxed — templates can't execute arbitrary code; they can only call defined functions and access defined data. This is the deliberate safety property — templates run as content, not as code. User-supplied input rendered through Liquid is escaped by default (HTML-escaped), preventing XSS. Don't bypass escaping unless you know the source is trusted. **Common pitfalls.** - **Queries inside heavy loops** — N+1 query pattern slows rendering. - **Forgetting to escape** — using `| raw` or similar to bypass escaping on user content is an XSS vulnerability. - **Templates that mix too much logic** — Liquid is for presentation; complex business logic belongs in Power Automate / plug-ins, not templates. - **Unfamiliar filter / tag** — Microsoft documents Power Pages-specific extensions; verify exists before using. ## Operational reality Liquid is straightforward once you've built a few templates. The Power Pages designer + Liquid combination produces effective portals without diving into full web development. For more complex needs (rich client interaction, custom UI), consider whether Power Pages is the right tool or if a custom-built solution makes more sense. --- # Power Pages security, in depth How Power Pages secures external-facing portals — identity providers, web roles, table permissions, page permissions, and the audit and DLP that wraps them. Source: https://www.solvingdynamics365.com/guides/power-pages-security-in-depth Section: Power Platform / Power Pages Published: 2026-05-01 Power Pages portals are exposed on the public internet, and most of them give external users authenticated access to Dataverse data. Getting the security model right matters more here than in any internal Power Platform application. The good news: the security model is well-defined and the pitfalls are documented. ## Identity Authenticated portal users are represented in Dataverse as **Contact** records. The contact has a primary identity-provider linkage — usually OAuth-2.0 via Entra ID, an external identity provider (Google, Microsoft, Facebook, Apple, LinkedIn), or a SAML/OpenID Connect federation. **Local accounts** (username/password stored in Dataverse) are supported but discouraged; identity-provider sign-in is more secure and scales better. ## Multi-factor authentication Configurable at the identity-provider level (e.g. Entra ID Conditional Access policies enforce MFA on the IdP, and Power Pages inherits it). ## Web roles Once authenticated, a portal user gets one or more **web roles**. Web roles are the portal-side equivalent of Dataverse security roles, but scoped to the portal only — they don't grant access to the underlying Dynamics 365 application. Each web role is associated with **table permissions**, **page permissions**, and **content permissions**. ## Table permissions The most important and most misconfigured Power Pages concept. **Table permissions** define what portal users (in specific web roles) can do with specific Dataverse tables. The privileges are familiar — Read, Create, Write, Delete, Append, Append-To — but the scope is what makes it nuanced: - **Global** — across all rows in the table. Use sparingly; usually too permissive. - **Contact** — rows owned by the signed-in contact. The default for self-service: a customer sees their own profile. - **Account** — rows owned by the signed-in contact's parent account. A B2B portal: a buyer sees their company's data. - **Parental** — through a configured 1:N relationship from a parent the user has permission to. E.g. cases linked to the user's account: the user has permission on cases because they have permission on the account, and the relationship grants child access. Misconfigured table permissions are the #1 source of Power Pages data leaks. Test every permission scenario before going live. ## Page permissions Control which authenticated users see which pages. Anonymous browsing of certain pages, web-role gating of others. A "members area" exists because page permissions block unauthenticated users. ## Content permissions Control which file attachments are visible per user — for portals that distribute documents (statements, policy documents) per customer. ## Anti-CSRF and request validation Power Pages includes built-in protection against cross-site request forgery, with form-level tokens. Don't disable these. ## Audit and logging Portal access events log to Dataverse audit; configure audit on sensitive tables. Identity-provider login events log at the IdP. ## DLP Power Pages can be governed by **data loss prevention policies** like any other Power Platform app, classifying connectors as Business / Non-Business and preventing inadvertent data flow. ## Operational reality Run a security review before every Power Pages launch. Test every web role with a real test user. Audit table permissions quarterly. Treat portal security with the same rigour as a public website. --- # Power Pages with Dataverse search How to make Power Pages portals searchable — enabling Dataverse search, scoping by table and security, indexing, and the patterns for portal-friendly search UX. Source: https://www.solvingdynamics365.com/guides/power-pages-with-dataverse-search Section: Power Platform / Power Pages Published: 2026-05-01 A Power Pages portal exposing dozens of tables, hundreds of articles, and thousands of cases needs **search** to be usable. The built-in answer is **Dataverse search** — the Lucene-based search service powering global search in model-driven apps, exposed to Power Pages through portal-aware components and security trimming. **What Dataverse search provides.** - **Full-text indexing** of configured tables and columns. - **Relevance ranking** across multiple tables. - **Auto-suggest** as the user types. - **Faceting** — filter by table type, by attribute. - **Security trimming** — results respect user permissions. For a portal, security trimming is the headline feature — anonymous users see public articles; authenticated contacts see public + their organisation's records. ## Enabling Dataverse search At environment level: 1. Power Platform admin centre → environment → Settings → Product → Features. 2. Enable Dataverse search. 3. Wait for initial indexing — depends on table sizes, typically minutes to hours. Per table, in the table designer: 1. Properties → Searchable: Yes. 2. Search index: add specific columns to index. Without searchable tables, Dataverse search returns nothing. ## Search in Power Pages The portal exposes search through: - **Search bar component** — drop into a page; users type, results display. - **Search page** — dedicated full results experience. - **Filtering** — facet by table or by attribute. - **Highlighting** — matched text highlighted in results. The component handles security trimming via the portal's authenticated identity (anonymous or contact-bound). ## Indexing columns thoughtfully Index columns users actually search: - Title, name, subject columns — always. - Description, body columns — usually. - Tag/keyword columns — yes. - Internal IDs, system columns — usually no, unless users search by ID. Over-indexing inflates the index and slows ranking; under-indexing makes search blind. ## Search results security Power Pages search uses **table permissions** — the portal-specific access control mechanism. A search result row is shown only if: - The user has read access to the row through the portal's web role and table permission configuration. - The row matches the search query. Anonymous users see only rows accessible to the "Anonymous Users" web role; authenticated users see additionally what their contact's web roles grant. ## Auto-suggest Typing a few characters returns instant suggestions: - Top 5–10 results. - Live as the user types. - Includes top tables to scope to. The suggestion experience is critical for portal usability — users abandon search if it's slow. ## Custom search For requirements beyond Dataverse search: - **Azure Cognitive Search** integration via custom code. - **External search engines** (Algolia, ElasticSearch) via integration. - **Liquid templates** invoking custom search APIs. Most portals stay with Dataverse search; custom search is for unusual cases (specific ranking logic, advanced linguistic analysis). **Common pages with search.** - **Knowledge base** — search KB articles. - **Case lookup** — find existing cases. - **Product catalogue** — search products. - **Forum / community** — search discussions. - **Document library** — search uploaded files. For each, the search page is configured to scope to relevant tables. ## Liquid-template integration Power Pages' Liquid templating language lets you embed search results into pages programmatically — render a featured-results widget on the home page, run a "you might also like" search based on the current page context. ## File search Power Pages supports **file attachments** on Notes and Document Locations. Dataverse search can index the content of attached files (PDF, Word, Excel, text) — searching for "warranty terms" finds the PDF where the phrase appears. Indexing is asynchronous after attachment upload. **Common pitfalls.** - **No initial indexing wait.** Search runs against an empty index for a while; users assume it's broken. - **Table permissions missing.** A table is indexed but no portal permission; search finds nothing for the user. - **Wrong columns indexed.** The user searches by SKU; SKU column isn't indexed; finds nothing. - **Too many tables enabled.** Search returns noise; faceting helps but only if the user knows to use it. - **Performance under load.** Large portals with thousands of concurrent searches hit indexing limits; Premium capacity may be needed. ## Reindexing When you change indexed columns: - The index needs to rebuild. - Power Platform handles rebuild asynchronously. - During rebuild, results may be incomplete. - Schedule reindexing for low-traffic windows. ## Operational rule Portal search is the navigation tool users actually reach for after the first day. Tune it: pick the right tables, index the right columns, design search pages that respect security, and monitor search analytics for "no results" patterns that reveal indexing gaps or missing content. A portal whose search "just works" is a portal users return to. --- # Power Platform ALM with Azure DevOps How to set up CI/CD for Power Platform using Azure DevOps — Build tools, pipelines, source control, and automated deployment between environments. Source: https://www.solvingdynamics365.com/guides/power-platform-alm-with-azure-devops Section: Power Platform / ALM & governance Published: 2026-05-01 For Power Platform teams that take application lifecycle management seriously, the canonical CI/CD path runs through **Azure DevOps** (or its sibling GitHub Actions). The Microsoft-published **Power Platform Build Tools** extension supplies the building blocks; the rest is pipeline composition. ## Power Platform Build Tools A free Azure DevOps extension Microsoft maintains. It provides tasks for: - **Authenticate** — service-principal sign-in to a Power Platform environment. - **Tool installer** — install / cache the `pac` CLI. - **Pack / unpack solution** — convert between solution.zip and unpacked source files. - **Import / export solution** — pull from or push to an environment. - **Publish customisations** — make changes effective after import. - **Apply / unpack solution upgrade** — managed solution upgrade flow. - **Solution checker** — static analysis against Microsoft's published rules. - **Set solution version** — update version in metadata before packaging. - **Reset environment** — wipe and restart a sandbox. These tasks compose into pipelines covering build, validation, and deployment. **Typical pipeline structure.** ```yaml # Build pipeline (runs on PR or main commit) - Checkout source from Git - Pack solution from unpacked source folder - Run solution checker against the packed solution - Publish artefact: the .zip # Release pipeline (deploys to environments) - Stage 1: Deploy to UAT - Import managed solution to UAT environment - Run smoke tests (Power Automate or custom) - Manual approval gate - Stage 2: Deploy to Production - Import managed solution to Production environment - Publish customisations - Notify stakeholders ``` ## Source control structure A typical repo: ``` src/ Solution.Customer/ Other/ (solution.xml, customizations.xml) Entities/ (per-table folders with metadata) Workflows/ Reports/ Plugins/ WebResources/ PluginAssemblies/ build/ build.yml release.yml ``` `pac solution unpack` extracts a solution.zip into this folder structure for source control; `pac solution pack` converts back to a .zip for deployment. ## Service principals Pipelines authenticate to Power Platform environments as **service principals** registered in Microsoft Entra ID. Each environment trusts a service principal with appropriate permissions (System Administrator role on the target Dataverse environment). Storing credentials in Azure DevOps secret variables (or Azure Key Vault for higher security) keeps them out of source. ## Solution checker integration A best practice is to gate every PR build on **solution checker** results. The checker scans for performance issues, security concerns, accessibility problems, and platform misuse. Failing the build on critical issues forces fixes before merge. ## Environment variables Solutions can contain **environment variables** that hold values differing per environment — API URLs, connection identifiers, feature flags. The pipeline injects the correct values per target environment at import time. ## Connection references Power Automate flows depend on **connection references** that abstract the specific connection used. The pipeline maps connection references to actual connections per environment, so a flow that calls SharePoint in dev hits the dev SharePoint, and in production hits production SharePoint. ## Approval gates Production deployments should require manual approval — typically a release manager or governance team signing off. Azure DevOps supports approvals with deferral, audit, and Teams integration. ## Telemetry and rollback Capture deployment success / failure events to Application Insights. Configure rollback as a separate pipeline that imports the previous solution version. Test the rollback occasionally. ## Operational reality Teams that adopt Power Platform ALM with Azure DevOps deploy more confidently and recover from issues faster. The initial investment — pipeline build, training, source-control migration of existing solutions — takes a week or two; the ongoing pay-off compounds over years. --- # Power Platform ALM with managed solutions Application lifecycle management on the Power Platform — solutions, managed vs unmanaged, environments, pipelines, and source control. Source: https://www.solvingdynamics365.com/guides/power-platform-alm-with-managed-solutions Section: Power Platform / ALM & governance Published: 2026-05-01 ### Key facts - Solutions exist as unmanaged (editable, the state of every dev environment) or managed (read-only at the component level, the state of every UAT and production environment). - The canonical release flow is develop unmanaged in dev, export as managed, import to UAT for testing, then import the same managed package to production. - A healthy deployment uses at least three environments — Dev, Test/UAT, and Production — each administered through the Power Platform admin centre. - Solutions can be unpacked with the pac CLI into a folder of XML and YAML files, one per table, form, flow, or app, so the customisation lives in Git with reviewable pull requests. - Power Platform pipelines is Microsoft's built-in dev-to-UAT-to-prod promotion mechanism with approvals and validation gates, while Azure DevOps or GitHub Actions with the Power Platform build tools cover more complex end-to-end CI/CD. Application lifecycle management (ALM) is what turns one-off Power Platform experiments into a maintainable system. Microsoft's ALM story is centred on **solutions** — versioned, deployable containers of components — moving through a chain of environments with controlled promotion. ## Solutions A **solution** is a Dataverse-aware bundle of customisations: tables, columns, forms, views, charts, web resources, Power Automate flows, canvas apps, model-driven apps, business process flows, security roles, and many more. A solution has a publisher (with a prefix that scopes custom names) and a version number. ## Unmanaged vs managed Solutions exist in two states: - **Unmanaged** — editable. Components inside an unmanaged solution can be modified in the environment they live in. The state of every dev environment. - **Managed** — read-only at the component level. Imports of managed solutions install or update components without letting downstream users edit them. The state of every UAT and production environment. ## The flow Develop in an unmanaged solution in a **dev environment**. Export the solution as managed. Import the managed solution to **UAT**. Test. Import the same managed package to **production**. Repeat per release. ## Environments A healthy Power Platform deployment uses at least three environments: **Dev**, **Test/UAT**, **Production**. Larger organisations add per-feature dev environments, hotfix environments, and training environments. Each environment is administered through the **Power Platform admin centre**. ## Pipelines **Power Platform pipelines** is Microsoft's built-in promotion mechanism: configure a pipeline from dev → UAT → prod, with approvals and validation gates, and run promotions from the maker portal. For more complex needs, **[Azure DevOps](https://www.solvingdynamics365.com/guides/power-platform-alm-with-azure-devops)** or **GitHub Actions** with the **Power Platform build tools** automate end-to-end CI/CD: export solution on commit, build, validate, deploy. ## Source control Solutions can be **unpacked** with the `pac` CLI into a folder of XML and YAML files — one file per table, form, flow, app — that lives in Git. Pull requests review the diff, branches isolate features, and pipelines build and deploy on merge. This is the canonical way to manage non-trivial Power Platform development. ## Solution layering Multiple solutions can install on top of each other (e.g. ISV base + customer customisations). Layering is helpful for ISV scenarios; for in-house teams it complicates things — start with one solution per logical app. ## Anti-patterns Editing directly in production. Building in the default environment. Having no version control. All trade speed today for pain forever; resist them from day one. ## Where to go next Next: [solution patches vs upgrades](https://www.solvingdynamics365.com/guides/solution-patches-vs-solution-upgrades) for the release rhythm, [connection references and environment variables](https://www.solvingdynamics365.com/guides/connection-references-and-environment-variables) for environment-specific configuration — with [connection references best practices](https://www.solvingdynamics365.com/guides/dataverse-connection-references-best-practices) and [environment variables, in depth](https://www.solvingdynamics365.com/guides/dataverse-environment-variables-deep-dive) going further on each — [import and export pipelines](https://www.solvingdynamics365.com/guides/solution-import-export-pipelines) and [ALM with GitHub Actions](https://www.solvingdynamics365.com/guides/alm-with-github-actions-for-power-platform) for automation. When an import fails, [solution import errors](https://www.solvingdynamics365.com/guides/dataverse-solution-import-errors) is the reference. --- # Power Platform environments Environments in the Power Platform — types, capacity, regions, and how they relate to Dynamics 365 and Dataverse. Source: https://www.solvingdynamics365.com/guides/power-platform-environments Section: Power Platform Published: 2026-05-01 Updated: 2026-09-06 ### Key facts - Every tenant's default environment is owned by Entra ID and intended for personal productivity only — it should be locked down with DLP policies, never used for production business apps. - Production is only ever a copy source, never a copy or reset target — the platform's own guardrail against accidentally overwriting live data. - An environment with no assigned Entra security group is open to anyone in the tenant with a sufficient licence, which is rarely what's wanted for production; setting the group on day one is the standard practice. - Sandbox environments that outlive the project they were created for are the single biggest source of forgotten Dataverse capacity consumption — environment sprawl from uncontrolled self-service creation, not too few environments, is the more common governance failure. An **environment** in the Power Platform is an isolated container for apps, flows, Dataverse data, and security. Environments are the unit of administration, capacity, region, and licensing. Every Dynamics 365 CRM-side app *is* an environment with Dataverse plus the relevant Dynamics 365 components installed. Understanding the environment model is foundational. **Environment types.** - **Default.** Every tenant has a single default environment, automatically created and owned by Microsoft Entra ID. It's intended for personal productivity makers and casual flows, *not* for production business apps. Treat it as untrusted; lock it down with DLP policies. - **Production.** A first-class environment for running real apps. Includes Dataverse. The standard target for any deployed Dynamics 365 or Power Apps app. - **Sandbox.** A non-production environment for testing, training, and demos. Can be reset, copied from another environment, and converted to production. - **Developer.** Personal environments for individual makers, with Dataverse, scoped to the maker's own work. Free up to a usage cap. - **Trial.** Time-limited environments that expire automatically. - **Microsoft Dataverse for Teams.** A lightweight, Teams-scoped environment with a constrained Dataverse for in-team apps. Different storage model from full Dataverse. ## Capacity Each tenant has Dataverse storage capacity allocated by licences and add-ons. Environments compete for that capacity; the **Power Platform admin centre** shows usage per environment. Production environments consume more capacity than sandboxes; defaults are surprisingly small. ## Regions Environments are pinned to a region (Europe, North America, Asia Pacific, etc.) at creation. Region determines where Dataverse data physically lives. Moving an environment between regions requires a Microsoft-supported migration; default to creating in the right region. ## Security groups Each environment can be assigned a **Microsoft Entra security group** that controls who's allowed in. Without one, anyone in the tenant with a sufficient licence can access the environment — usually not what you want for production. Set the security group on day one. ## Environment admin and DLP Tenant admins enforce **data loss prevention (DLP) policies** that classify connectors (e.g. SharePoint and Dataverse as Business; Twitter and HTTP as Non-Business) and forbid flows from combining Business with Non-Business. DLP applies per environment or globally. ## Lifecycle Environments can be copied (data and customisations), reset (data wiped), backed up (Dataverse storage), and restored from backup. Production environments get 28 days of point-in-time restore by default. ## Cost Beyond Dataverse storage, environments themselves are usually free up to a count. Pay-as-you-go billing is available for tenants that want capacity-billed environments without licence allocation. ## Choosing an environment type in practice | Need | Environment type | Notes | |---|---|---| | Run a real production app used by the business | Production | Assign a security group and Managed Environment on day one | | Test a change before it reaches users | Sandbox | Copy from production for realistic test data, then reset between test cycles | | A maker building a personal app | Developer | Free up to a cap; not for team-shared apps | | A short-lived proof of concept | Trial | Auto-expires; never point production data at it | | A lightweight team app inside one Team | Dataverse for Teams | Constrained storage; migrate to a full environment if the app outgrows the team | | Anything a licensed guest or casual maker touches | Default | Never — lock it down, don't build on it | ## Environment sprawl The most common environment-governance failure isn't too few environments, it's too many uncontrolled ones. Once **Managed Environments** and self-service environment creation are both on, any maker with the right licence can spin up a new Dataverse environment in seconds — useful for experimentation, corrosive for governance if nobody owns the resulting sprawl. A Center of Excellence typically caps who can self-create environments, requires a business justification and an owner on request, and runs a periodic sweep that flags environments with no activity for archival or deletion. Sandbox environments that outlive the project they were created for are the single biggest source of forgotten Dataverse capacity consumption. ## Copying vs resetting a sandbox **Copy** clones an existing environment's data and customisations into a new or existing environment — the standard way to get realistic test data without touching production. **Reset** wipes an environment back to an empty Dataverse with the base solution only — the right move when a sandbox has accumulated months of test junk and a clean slate is more useful than its current state. Neither operation is available on production environments directly; production is only ever a copy *source*, never a copy or reset *target*, which is the platform's guardrail against accidentally overwriting live data. ## Where to go next The design question — how many, for whom — is [environment strategy for Dynamics 365 projects](https://www.solvingdynamics365.com/guides/environment-strategy-for-dynamics-365-projects). Governance on top of environments is [Managed Environments](https://www.solvingdynamics365.com/guides/managed-environments-in-power-platform) and [DLP policies](https://www.solvingdynamics365.com/guides/dlp-policies-in-power-platform), administered from [the Power Platform admin center](https://www.solvingdynamics365.com/guides/power-platform-admin-center). Capacity is explained in [Dataverse storage types](https://www.solvingdynamics365.com/guides/dataverse-storage-types-explained). ### Frequently asked questions **What should the default environment be used for?** Personal productivity and casual flows only. Every tenant gets one, owned by Entra ID, and it should be treated as untrusted and locked down with DLP policies — never as the home for production business apps. **What environment types exist?** Default, production, sandbox (resettable, copyable, convertible to production), developer (free personal environments with Dataverse up to a cap), trial (auto-expiring), and Dataverse for Teams with its constrained storage model. **How do I restrict who can access an environment?** Assign a Microsoft Entra security group to it. Without one, anyone in the tenant with a sufficient licence can get in. Set it on day one for production. **Can I move an environment to another region?** Only through a Microsoft-supported migration. Region is fixed at creation and decides where Dataverse data physically lives, so create in the right region from the start. --- # Power Platform throttling and 429 errors Why Power Automate, Dataverse, or a connector starts returning 429 Too Many Requests — API limits decoded, and how to design around them. Source: https://www.solvingdynamics365.com/guides/power-platform-throttling-and-429-errors Section: Power Platform / Troubleshooting Published: 2026-09-06 Every Dynamics 365 API surface — Dataverse's Web API, Business Central's API, individual Power Automate connectors — enforces **request limits** to protect shared platform capacity: a maximum number of API calls per user (or per connection) per rolling 24-hour window, plus shorter burst/spike limits. A **429 Too Many Requests** response means a limit was hit, and the fix is almost always architectural, not a support ticket asking for a higher limit. ## Dataverse API limit exceeded (0x80072322 / "Number of requests exceeded the limit") **Symptom.** Calls to the Dataverse Web API — from a flow, a plug-in, an external integration, or a Power Apps canvas app — start failing with a rate-limit-specific error after a period of high activity. **Cause.** Dataverse enforces a rolling limit on requests, execution time, and concurrent requests per user within a 5-minute and 24-hour window. A single high-volume integration (or several integrations sharing one service account identity) can exhaust it. **Fix.** Respect the `Retry-After` header Dataverse returns with a 429 and back off for that duration before retrying, rather than retrying immediately (which just re-triggers the limit). For a sustained high-volume need, batch requests (Dataverse's batch/`$batch` operations count as fewer requests than the equivalent individual calls) instead of one call per record. **Prevention.** Give high-volume integrations their own dedicated service account rather than sharing one identity across several integrations or flows — since the limit is per-user, splitting load across separate identities (where the licensing and governance model allows it) genuinely raises the effective ceiling. ## Power Automate connector throttling ("429: rate limit is exceeded") **Symptom.** A flow using a specific connector (Dataverse, SharePoint, an HTTP action, a third-party service) starts failing intermittently, often correlating with a burst of trigger activity. **Cause.** Each connector enforces its own request limits per user per 24 hours plus a shorter burst limit; a flow triggered in a tight loop (a "for each" over hundreds of items, each making its own connector call) can exhaust the burst limit within seconds even while comfortably under the 24-hour ceiling. **Fix.** Add a **retry policy** with exponential backoff on the action (Power Automate supports this natively per-action), and where possible batch operations instead of calling the connector once per loop iteration — many connectors' bulk/batch actions exist specifically to reduce request counts for this reason. **Prevention.** Design flows that process a "for each" over more than a handful of items with the connector's batch capability from the start, rather than retrofitting retry logic after the first throttling incident in production. ## Business Central API 429 responses **Symptom.** An external integration against the Business Central API starts receiving 429 responses under sustained load. **Cause.** Business Central enforces its own per-user, per-24-hour request limits on the API surface, generous for typical integration volumes but real for high-frequency polling or bulk-sync patterns. **Fix.** Reduce polling frequency where a webhook-based push model (see [webhooks in Business Central](https://www.solvingdynamics365.com/guides/webhooks-in-business-central)) can replace frequent polling, and implement retry-with-backoff on 429 responses the same way as any other throttled API. **Prevention.** Prefer event-driven integration (webhooks, business events) over tight polling loops wherever the integration pattern allows it — polling scales request volume with time, while an event-driven pattern scales with actual business activity, which is almost always lower. ## Retrying too aggressively makes throttling worse, not better **Symptom.** A system experiencing intermittent 429s gets progressively worse rather than recovering, sometimes cascading into a broader outage. **Cause.** A naive retry loop with no backoff (retry immediately, forever) adds more requests on top of an already-throttled account, which can extend or worsen the throttling window rather than letting it clear. **Fix.** Implement exponential backoff with jitter (increasing wait time between retries, with some randomness to avoid synchronized retry storms across multiple callers) rather than fixed-interval or immediate retries. **Prevention.** Treat retry-with-backoff as a mandatory design element for any integration against a rate-limited API, not an afterthought added after the first production incident — see [retry policies with Azure services](https://www.solvingdynamics365.com/guides/retry-policies-with-azure-services) for the pattern in more depth. ## Where to go next The connector licensing and selection context is in [Power Automate connectors for Dynamics 365](https://www.solvingdynamics365.com/guides/power-automate-connectors-for-dynamics-365); the wider resilience pattern set is in [retry policies with Azure services](https://www.solvingdynamics365.com/guides/retry-policies-with-azure-services) and [circuit breakers in Dynamics 365 integrations](https://www.solvingdynamics365.com/guides/circuit-breakers-in-dynamics-365-integrations). ### Frequently asked questions **Is a 429 a bug?** No — it's the platform's rate limiter doing exactly what it's designed to do: protect shared capacity from a single tenant or user consuming more than their fair share. The fix is almost always changing how the calling code behaves, not waiting for Microsoft to raise a limit. **Does throttling affect other users in the same tenant?** Dataverse API limits are per-user, per-24-hours, so one user's or one service account's high-volume integration hitting its own limit doesn't directly throttle a different user's separate activity — but if many flows or integrations share one service account's identity, they all draw from that single account's shared limit. --- # Solution Checker and App Checker in Power Platform How Solution Checker analyses Dataverse solutions for issues — categories of findings, integration with Managed Environments. Source: https://www.solvingdynamics365.com/guides/solution-checker-and-app-checker Section: Power Platform / ALM & governance Published: 2026-05-01 Power Platform's static analysis tools — **Solution Checker** for Dataverse solutions and **App Checker** for canvas apps — surface issues before they bite in production. Performance traps, deprecated APIs, security warnings, accessibility issues, plugin best-practice violations. Used systematically, they catch issues that would otherwise emerge as user-facing problems. ## Solution Checker scope Analyses Dataverse solution content: - Plug-in code (.NET DLLs). - Web resources (JavaScript, HTML, CSS). - Workflow definitions. - Power Automate flows. - Forms, ribbons, sitemaps. - Custom connectors. - Metadata (tables, columns, relationships). **Findings categories.** - **Performance** — patterns that slow operations (`RetrieveMultiple` without paging, excessive plug-in cascading). - **Reliability** — patterns that cause runtime failures (null reference risks, missing exception handling). - **Security** — patterns risking unauthorised access (plug-in running as system without checks, hardcoded credentials). - **Usability and accessibility** — forms missing labels, poor keyboard navigation. - **Best practices** — deprecated APIs, outdated patterns. Findings have severity (Critical, High, Medium, Low) and category. Each links to documentation explaining the issue. **Running Solution Checker.** - **From the maker portal** — Solution → Run Solution Checker. - **From Power Platform admin centre** — at scale across environments. - **From CI/CD pipelines** — via `pac` CLI or Build Tools. - **Automatic on import** — when Managed Environments + enforcement enabled. Per run, a report lists findings with file/object/line references. ## Managed Environments enforcement With Managed Environments, Solution Checker can be enforced: - Solutions must pass before import to production. - Critical/High findings block; lower severities warn. - Bypass requires admin justification (audit logged). This is the lever that turns Solution Checker from optional to load-bearing in the ALM pipeline. ## App Checker — canvas apps Static analysis, not functional testing — for regression testing a canvas app's actual behaviour, see [the Power Apps Test Engine](https://www.solvingdynamics365.com/guides/power-apps-test-engine). Built into Power Apps Studio, App Checker itself covers: - Live findings as the maker designs. - Performance warnings (slow data sources, large galleries). - Accessibility violations. - Formula errors. - Connector usage patterns. App Checker runs continuously in the studio; serious issues block save / publish. **Performance findings (canvas apps).** - **OnStart load patterns** — heavy logic blocks app start. - **Filter / Search not delegating** — performance collapses on large data. - **Excessive use of Set()** — variables proliferating. - **Image controls referencing large blobs** — load slow. **Accessibility findings.** - **Color contrast** — text too light against background. - **Missing AccessibleLabel** on controls. - **Tab order** chaotic. - **No keyboard navigation** path. For organisations subject to accessibility regulations (US Section 508, European EN 301 549), App Checker is the first-line tool. ## Delegation warnings Specific to Power Fx on data sources: - Some functions delegate (server executes); others don't (client downloads all rows). - Non-delegating function on a large data source = performance bomb. - App Checker flags non-delegating patterns with yellow warning. Makers can ignore the warning (often without consequence on small data); large-data scenarios must respect it. ## False positives Both tools produce some false positives: - A plug-in genuinely needs to run as system; finding flagged but is correct. - A canvas app uses a function intentionally despite delegation warning. Annotations on the codebase mark explicit acknowledgments — "I read this finding, this is intentional." ## Custom rules Limited but growing: - Organisations can author custom rules for Solution Checker. - Specific to internal coding standards. - Less mature than for traditional linters. **Reporting and dashboards.** - **Per-solution finding count** over time. - **Most common finding categories** — coaching theme for makers. - **Trend** — are we getting cleaner or accumulating debt? **Common pitfalls.** - **Findings ignored.** Run Solution Checker, look at output, dismiss; the findings reappear in production as incidents. - **No baseline.** New project has 500 findings; team disheartened; sets unrealistic expectations. - **All-or-nothing enforcement.** Critical findings block; team has to fix 50 critical findings before any deployment; frustration. - **Outdated rule sets.** Tools update; new patterns flagged; baseline shifts. - **Solution Checker only at deployment.** Should run continuously during development, not gate-keep at the end. **Integration with development.** - **Local checker** — run during development. - **Pre-commit hooks** — run on every commit. - **Pull request gates** — must pass to merge. - **Deployment gates** — must pass to promote to production. Each layer catches issues earlier; left-shift saves time. **Operational rhythm.** - **Continuous in development** — App Checker runs live. - **Per commit** — Solution Checker via CI. - **Pre-deployment** — required for production import. - **Periodic audit** — re-scan existing solutions; track debt. ## Strategic positioning Solution Checker and App Checker turn intuition-driven quality into data-driven quality. They don't catch everything — domain-specific bugs, business logic errors, integration issues escape — but they catch a meaningful fraction of common issues at low cost. Mature Power Platform programmes treat them as essential development tools, not optional reports. The investment in addressing findings systematically pays back in fewer production incidents and easier maintenance. --- # Solution dependencies and managed layer conflicts How solution dependencies work in the Power Platform — required components, layer stacking, conflict resolution, and the maintenance discipline. Source: https://www.solvingdynamics365.com/guides/solution-dependencies-and-managed-layer-conflicts Section: Power Platform / ALM & governance Published: 2026-05-01 Power Platform solutions don't live in isolation. They reference Microsoft's standard components, ISV components from AppSource, and components from other internal solutions. Understanding **dependencies** and **managed layers** is essential for clean deployment, predictable behaviour, and successful upgrades. **Component dependencies.** A solution component depends on others when it references them: - A **flow** depends on **Dataverse tables** it reads or writes. - A **canvas app** depends on **connection references** it uses and **tables** it references. - A **business rule** depends on the **fields** it references. - A **report** depends on the **tables** and **views** it queries. - A **plug-in** depends on the **assemblies**, **tables**, and **other plug-ins** it interacts with. When a solution is exported, dependencies are tracked. When the solution is imported into a target environment, all dependencies must be present — either in the target already, or imported as separate solutions first. **Tracking dependencies.** The maker portal's **Dependencies** view on each solution and each component shows: - **Components that depend on this** — who's pointing at me. - **Components I depend on** — what I need to function. Before deleting a component, check who depends on it. Removing a field that 50 flows reference breaks all 50. ## Solution dependency chain Solution A depends on Solution B (e.g. *Customer Service Customisations* depends on the Microsoft *Customer Service* base solution). Imports must happen in order: 1. Microsoft base solution (Customer Service) — already in the environment from Dynamics 365 install. 2. ISV solution from AppSource (industry vertical for service). 3. Customer-customisation solution layered on top. The target environment must have all parent solutions before child solutions can import. **Managed layers.** When multiple solutions modify the same component, they stack as **layers**: - **Layer 0**: System defaults — the original definition shipped by the platform. - **Layer 1+**: Each managed solution that touches the component adds a layer. - **Top layer**: Unmanaged customisations in the dev environment. The component's effective behaviour is determined by the **topmost active layer**. Underlying layers are hidden but preserved; if a top layer is removed (solution uninstall), the next layer down takes effect. The **Solution Layers** view on each component lists the layers stacked there, with the source solution for each. **Conflicts and resolution.** When multiple managed solutions modify the same component (e.g. two AppSource ISV solutions both adding columns to the Account table), the system stacks both layers; runtime behaviour combines both modifications. For more substantive conflicts (two solutions defining the same workflow on the Account, two solutions changing the same field's display name): - The **last imported** wins typically. - But the system tries to preserve all modifications, which can produce surprising layered effects. - Conflicts are visible in the Solution Layers view. Resolving conflicts is manual — remove one layer's modification or merge intent into one solution. **Common patterns.** - **Microsoft base + AppSource ISV + customer customisation.** Three layers, in that order. The customer-customisation solution depends on the ISV depends on the Microsoft base. - **Multiple customer solutions for separate features.** A *Sales Customisations* solution, a *Service Customisations* solution, a *Reporting* solution. Each has its own scope; minimal overlap. Clean dependency graph. - **One-big-solution anti-pattern.** A single huge customer solution containing everything. Simpler to deploy but harder to reason about, slower to import, harder to retire individual features. **Uninstalling solutions.** Uninstalling a managed solution removes its layer. The underlying state takes effect again. But: - **Data is not removed** — records that depend on the solution's tables remain. - **Dependencies must be checked** — if other solutions depend on this one, uninstall is blocked. - **Order matters** — uninstall top-most solutions before underlying ones. **Common pitfalls.** - **Circular dependencies** — solution A depends on B and B depends on A. The system rejects this; resolve by separating shared components into a third solution. - **Missing dependency on import** — solution import fails because a required parent isn't in the target. Import the parent first. - **Orphan layers after uninstall** — the layer is removed, but the data referencing the removed components becomes orphan. Data cleanup may be needed. - **Solution gigantism** — solutions grow to encompass everything; imports take hours; reasoning is impossible. Split. **Operational discipline.** - **Map your solution dependency graph** — document which solutions depend on which. - **Plan release order** — when releasing multiple solutions together, plan import order. - **Audit layers periodically** — accumulated layers from old solutions clog environments. - **Refactor solutions** when their scope grows unmanageable. Healthy solution architecture pays back over years of operation. --- # Solution history and rollback strategies in Dataverse How to track solution changes over time and roll back when promotions go wrong — solution history table, backup-first patterns. Source: https://www.solvingdynamics365.com/guides/solution-history-and-rollback-strategies Section: Power Platform / ALM & governance Published: 2026-05-01 When a production solution promotion goes wrong — a workflow regression, a broken plug-in, an incorrect form change — the question becomes: how do we get back to the previous state quickly? Dataverse provides some native rollback capabilities but with important limits. A robust rollback strategy combines native features with deployment discipline. ## Solution history Dataverse maintains a **Solution History** record for each import: - Solution name and version. - Type (managed/unmanaged). - Operation (Install, Upgrade, Update, Patch, Uninstall). - Start and end timestamps. - Status (success, failed). - Linked solution file. Navigation: Power Platform admin centre → environment → Solutions → History; or in maker portal. Each history record corresponds to one promotion. Auditable trail of what was installed when. The history doesn't include unmanaged-solution changes — only solution-aware operations. ## Solution layers Multiple managed solutions can layer over the same component (table, column, form). The **active layer** shows which solution's customisation is currently active. When a solution is uninstalled, its layer is removed, exposing the layer beneath. This is the foundation of rollback: if Solution v2 introduces a bug, uninstalling it (or installing v1 as a higher version) re-exposes v1's behaviour. **The four rollback approaches.** **1. Solution version rollback (managed solutions).** Install the previous version as a managed solution upgrade: - Take the previous managed solution package (`MySolution_1.0.0.0.zip`). - Import to the broken environment. - The platform replaces v2 with v1. - Data is preserved (rows aren't deleted on solution rollback). This is the cleanest rollback when the previous package is archived. It requires *archiving every production package* before its successor lands — pipeline practice. **2. Solution patch reversal.** If the change was a patch (not a new version), reverse-patching is more nuanced. Often easier to uninstall the patch (if uninstall is supported) than to apply a counter-patch. **3. Manual repair in the UI.** Open the broken environment in the maker portal; revert the specific changes that broke. Risky and error-prone; only viable for tiny issues. Doesn't update solution metadata cleanly — drift between solution and environment results. **4. Restore from backup.** Each environment has automated **system backups** (typically every few hours, retained 7–28 days depending on tier). Restoring rolls the environment back to a backup timestamp — including data changes since. This is the nuclear option: - Wipes all data created since the backup. - Acceptable for some severe cases where data corruption accompanies the bad deployment. - Not acceptable for most production rollbacks because of data loss. ## Backup-first pattern Before every production solution import: - Take a manual backup (the admin centre supports this). - Note the backup label. - Import the solution. - If the import fails or produces unexpected behaviour, restore the backup. This is the safety net; configure it as a mandatory pipeline step before any production import. ## Pre-deployment validation The cheaper rollback is the one you don't need: - **Test environment** — every solution lands in test before prod; smoke tests run. - **Solution checker** — static analysis catches many regressions before deployment. - **Automated tests** — Easy Repro framework, custom Power Fx tests, or external test harnesses; run before promotion. - **Approval gates** — admin must sign off on prod imports. A robust pre-prod testing discipline reduces production rollback frequency by an order of magnitude. ## Tracking changes outside solutions Some changes don't go through solutions: - **Direct database operations** by users with admin rights. - **Power Apps and flows** edited directly in prod. - **Workflow / business rule changes** edited without solution awareness. These changes don't appear in solution history; rolling them back requires backups or re-editing. The Managed Environments setting "block direct production changes" mitigates this. **Common pitfalls.** - **Previous package not archived.** Can't rollback because the v1 package was lost. - **Backup retention period misunderstood.** Backups only last so long; major regressions discovered weeks later have no backup option. - **Data created since the bad deployment is valuable.** Restoring loses it; manual repair of v2 with care to preserve data is the only path. - **Cascading dependencies.** Solution A's rollback breaks Solution B that depended on changes in A. Solutions should be released together and rolled back together for related changes. - **Async work in flight.** Rolling back while async jobs are processing creates inconsistent state. ## Operational rule Build the rollback path explicitly: - **Archive every production solution package** in a versioned artifact store. - **Pre-import backup** mandatory before any production solution import. - **Document the rollback procedure** as runbook. - **Test the rollback** periodically in a sandbox. A team that has never rehearsed a rollback discovers in the middle of an incident that their plan doesn't work. The rehearsal is the value, not just the documentation. --- # Solution import / export pipelines for Dataverse How to automate Dataverse solution promotion through dev / test / prod — Power Platform CLI, Build Tools, GitHub Actions, and Power Platform Pipelines. Source: https://www.solvingdynamics365.com/guides/solution-import-export-pipelines Section: Power Platform / ALM & governance Published: 2026-05-01 A Dataverse solution moves through environments — typically dev → test → prod, sometimes with additional pre-prod or staging layers — via export, import, and publish. Manual promotion is slow and error-prone. **Pipelines** automate this lifecycle, and there are now several distinct approaches with different trade-offs. **The lifecycle being automated.** 1. Maker / developer builds in **dev environment**, creating components in an unmanaged solution. 2. Solution is **exported** as a managed solution package. 3. Package is **imported** to test environment. 4. Tests pass. 5. Package is **imported** to production. Manual: download a ZIP, click upload in target environment. Repetitive, error-prone, no audit trail. Pipelines fix all three. ## Approach 1: Power Platform CLI (`pac`) The command-line tool ships with everything needed for scripted solution management: ``` pac auth create --url https://dev.crm.dynamics.com pac solution export --path mySolution.zip --name MySolution --managed pac auth select --index 2 # switch to test environment pac solution import --path mySolution.zip ``` Scriptable from any CI/CD runner — GitHub Actions, Azure DevOps Pipelines, Jenkins, GitLab CI. Minimal abstraction; pure commands. ## Approach 2: Power Platform Build Tools Microsoft-published tasks for Azure DevOps Pipelines and GitHub Actions: - `microsoft/powerplatform-actions/who-am-i@v1` — verify connectivity. - `microsoft/powerplatform-actions/export-solution@v1` — export. - `microsoft/powerplatform-actions/import-solution@v1` — import. - `microsoft/powerplatform-actions/pack-solution@v1` — pack unpacked solution. - `microsoft/powerplatform-actions/unpack-solution@v1` — unpack solution for source control. These are wrappers over `pac`. Cleaner pipeline syntax; integrated with CI/CD tooling. ## Approach 3: Power Platform Pipelines A Power Platform–native, in-product capability under Managed Environments: - Configure dev → test → prod stages in the maker portal. - Makers click "Deploy" — solution promotes through the pipeline. - Approvals at each stage. - Audit log in the platform. Designed for citizen developers; no need to learn YAML or CI/CD. Less powerful than full GitHub Actions; great for low-code teams. **Comparing the three.** | Aspect | `pac` scripts | Build Tools | Power Platform Pipelines | |---|---|---|---| | Audience | Pro devs | DevOps teams | Citizen makers | | Source control | Native | Native | Limited | | Approval gates | Via CI | Via CI | Built-in | | Branching strategy | Full | Full | None | | Solution patches | Yes | Yes | Limited | | Power Apps deployment | Yes | Yes | Yes | | Cost | Free | Free (license-dependent) | Bundled with ME | ## Source control pattern The mature pattern: solutions are *not* the source of truth. The source of truth is **unpacked solution source** in a git repository. - `pac solution unpack --zipfile solution.zip --folder src/Solution/` — explodes the ZIP into a directory tree of XML, JSON, JS, CS files. - Developers commit changes to the source tree. - CI pipeline packs the source back into a ZIP and imports to the environment. This pattern enables diffs, code review, branching, conflict resolution — proper engineering workflow. The alternative (export-import shuttling) loses all this. **Managed vs unmanaged.** - **Unmanaged** — for development environments where active editing happens. - **Managed** — for everywhere else; layers prevent unauthorised changes. Promote unmanaged from dev → export as managed → import managed to downstream. Mixing layers creates messes. ## Solution dependencies A solution depends on tables, columns, web resources from other solutions. Pipeline must promote dependencies first. Most pipelines: 1. Build all solutions. 2. Topologically order by dependency. 3. Import in order. **Solution upgrades vs patches.** - **Solution upgrade** — replace the previous managed solution version completely; clean state. - **Solution patch** — apply a delta on top of the previous version; smaller package. For complex production deployments, upgrades; for hotfixes, patches. **Common pipeline failures.** - **Missing dependencies** — solution X imported before Y it depends on; fails. - **Schema breakage** — column type change between versions; import fails. - **Workflow assemblies version mismatch** — plug-in DLLs binary-incompatible with target. - **Solution layer drift** — manual changes in target environment block the managed layer; "drift detection" should fail the pipeline early. - **Connection references missing** — connections need to be created in target before solution imports. ## Connection references and environment variables Solutions reference external resources via: - **Connection references** — abstract references to connectors; bound to actual connections per environment. - **Environment variables** — configurable values per environment. Pipelines set these up post-import — either through pipeline scripts or manual configuration. Without them, flows and connectors fail to run in the target environment. **Common pitfalls.** - **No automation.** Manual promotion in 2026 is hard to justify; pipelines pay back fast. - **Skipping test environment.** "Just promote to prod" — production crashes; rollback under pressure. - **No rollback strategy.** Bad import in prod; no clean way back. Always have export-of-previous before import-of-new. - **Secrets in pipeline scripts.** Connection strings, API keys committed; rotate compromised credentials. - **No success metrics.** Pipeline succeeds technically; nobody verifies the solution actually works in target. ## Operational rule Every production Dataverse environment should be downstream of a pipeline — not directly editable by makers in production. The pipeline enforces process, audit, and rollback safety. The maker's perception of "I just made a change" should be implemented as "the pipeline promoted my change," not as "I clicked Save in prod." --- # Solution patches vs solution upgrades How patches and upgrades differ in Power Platform solution lifecycle — what each does, when to use which, and the trade-offs across layers. Source: https://www.solvingdynamics365.com/guides/solution-patches-vs-solution-upgrades Section: Power Platform / ALM & governance Published: 2026-05-01 In the Power Platform solution lifecycle, deploying changes to an existing solution in a target environment can happen two ways: as a **patch** or as an **upgrade**. Both look similar from the maker's perspective but produce fundamentally different states in the target environment, and the long-term implications of each pattern matter for ongoing maintenance. **Solution patches.** A **patch** is a delta — a solution that contains *only the changes* made since the base solution version. When a patch is imported, it's layered on top of the existing base solution in the target environment. The base solution remains unchanged in the target environment; the patch adds its modifications on top. **Characteristics:** - **Faster to build and deploy** — only the changed components are packaged. - **Smaller solution files** — minutes to import rather than hours. - **Multiple patches can stack** — patch 1, patch 2, patch 3 all layer on top of the base. - **Cannot remove components** — patches can only add or modify, not delete components from the base. - **Eventually cumulate** — over time, the patch stack grows messy. **When to use patches:** Quick fixes, hotfixes, additive features that don't restructure existing components. Especially useful for production hotfixes where a full re-deploy would be too disruptive. **Solution upgrades.** An **upgrade** is a full replacement — the new solution version replaces the existing base solution and all its patches in the target environment. The system reconciles the new version against the existing state, applying additions, modifications, and *deletions*. **Characteristics:** - **Comprehensive** — captures the full current state of the solution. - **Can remove components** that were in the base but no longer in the new version. - **Slower to build and deploy** — larger package, more processing. - **Replaces patches** — after an upgrade, the patch stack collapses into the new base. - **More disruptive** — longer import time, potentially affecting running services. **When to use upgrades:** Planned major releases, end-of-month rollups consolidating recent patches, major feature waves where significant components have changed. **The combined pattern.** The healthy lifecycle pattern: 1. **Base solution** in production. 2. **Patches** for incremental changes (weekly, biweekly, or on demand for fixes). 3. **Upgrade** periodically (monthly, quarterly) consolidating the patches into a new base. This combines the speed of patches with the cleanliness of periodic upgrades. Avoid letting the patch stack grow indefinitely; it becomes harder to reason about, harder to maintain, and slower to deploy as patches multiply. ## Apply upgrade vs Stage for upgrade When importing an upgrade, two modes: - **Apply upgrade** — applies the upgrade immediately. The new version replaces the old in one operation. - **Stage for upgrade** — imports the new version as a "Holding" solution alongside the existing one, then a separate "Apply solution upgrade" step finalises. Lets you test the staged solution before committing. The stage-then-apply pattern is safer for production deployments where validation between import and activation matters. **Managed vs unmanaged considerations.** - In **development environments** (where the base is unmanaged), patches and upgrades work the same way but components can be edited. - In **production environments** (where the base is managed), patches and upgrades override the managed components in their layer; underlying managed components remain read-only. - **Solution layers** stack — managed components from one solution can be modified by patches from another, with the most-recent layer winning. **Common pitfalls.** - **Forgetting components are missing from upgrade** — you intended to delete component X from the base, but it's still in production because the upgrade reconciliation missed it. Verify post-upgrade. - **Patch overload** — 50 patches on top of a base from a year ago. Performance degrades; troubleshooting gets painful. Consolidate. - **Importing patches in wrong order** — patches generally must be imported in sequence; out-of-order imports may fail or produce surprising states. - **Patches that conflict** — two patches both modifying the same component create conflicts the system resolves automatically (last one wins), sometimes surprisingly. **Operational discipline.** - **CI/CD pipelines** for both patch and upgrade workflows, with appropriate approval gates. - **Versioning convention** — semantic versioning on base solutions and patches: `1.0.0` base, `1.0.1` patch, `1.1.0` minor upgrade, `2.0.0` major upgrade. - **Documentation** — what's in each patch and upgrade, communicated to stakeholders. - **Quarterly consolidation** — fold patches into a new base periodically. Done right, the patch-and-upgrade rhythm keeps deployments fast and reliable; done badly, it degrades into an unmanageable mess over months. ### Frequently asked questions **What is the difference between a solution patch and an upgrade?** A patch is a delta containing only components changed since the base version, layered on top of the base — small, fast, but unable to delete components. An upgrade is a full replacement that reconciles additions, modifications, and deletions and collapses the patch stack into a new base. **Can a patch remove a component?** No. Patches only add or modify. To delete a table, column, or flow from the target environment you must ship an upgrade, and verify after import that the reconciliation actually removed it. **What is the healthy patch-and-upgrade rhythm?** Patches for weekly or on-demand fixes, consolidated into an upgrade monthly or quarterly. Letting fifty patches pile on a year-old base degrades performance and makes troubleshooting painful. **What is stage for upgrade?** Importing the new version as a holding solution alongside the existing one, validating it, then running a separate apply step. It is the safer path for production where checks between import and activation matter. --- # The Plug-in Registration Tool — a deep dive How PRT registers Dataverse plug-ins — assemblies, steps, images, secure/unsecure configuration, and where the tool fits in modern ALM. Source: https://www.solvingdynamics365.com/guides/plug-in-registration-tool-deep-dive Section: Power Platform / Custom development Published: 2026-05-01 The **Plug-in Registration Tool (PRT)** has been the workbench for Dataverse plug-in development for over a decade. It registers compiled .NET assemblies into a Dataverse environment, wires them to table events, defines step parameters and pre/post images, and exposes secure configuration. Despite modern alternatives (Power Platform Build Tools, solution-based registration), PRT remains the everyday tool for plug-in developers. ## Where PRT comes from Part of the Dataverse SDK; downloadable as a `Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool` NuGet package. Run-anywhere desktop tool, connects to a Dataverse environment. **Core registration units.** - **Assembly** — the compiled .DLL containing plug-in classes. - **Plug-in class** — a C# class implementing `IPlugin`. - **Step** — a registration tying a class to a table event with execution parameters. - **Pre-image / Post-image** — captured snapshots of the row before/after the operation. - **Service endpoint** — registration of an Azure Service Bus or Event Grid endpoint as a step target. **Workflow.** 1. **Build** the plug-in DLL in Visual Studio. 2. **Connect** PRT to the Dataverse environment. 3. **Register Assembly** — pick the DLL; PRT inspects classes; registers as an assembly record. 4. **Register Step** — pick a class, table, event (Create/Update/Delete), stage (Pre/Post), execution mode (Sync/Async), filtering attributes (only fire on these column changes). 5. **Register Image** if needed — capture snapshot of specified attributes. 6. **Test** — trigger the event; verify the plug-in fired. **Step parameters.** - **Message** — `Create`, `Update`, `Delete`, `Retrieve`, `RetrieveMultiple`, `Associate`, `Disassociate`, custom action. - **Primary table** — the table the event fires against. - **Stage** — Pre-validation, Pre-operation, Post-operation. - **Execution mode** — Synchronous (in transaction) or Asynchronous (background queue). - **Filtering attributes** — limits firing to changes in specified columns. - **Run in user's context / specific user** — security context for the plug-in. - **Deployment** — Server (Dataverse), Offline (mobile offline), or Both. **Stages explained.** - **Pre-validation** — fires before the platform validates the operation; can be on any rollback. Used for very early gates (license checks, custom auth). - **Pre-operation** — fires after validation but before the DB commit. Most common for mutation logic on the operation's record. - **Post-operation** — fires after commit. Most common for cascading side effects. **Sync vs async.** - **Sync** — runs inline with the user's operation; failures roll back the operation. Maximum 2 seconds before the platform considers it slow. - **Async** — runs in the system job queue; out-of-band from the user. For validation, sync. For external integrations and side effects, async. **Pre-image and post-image.** - A plug-in's `IExecutionContext.PreEntityImages` / `PostEntityImages` give snapshots of the row. - Required for Update steps that need to compare before/after. - Each image has a name (typically `PreImage`, `PostImage`); the plug-in code references by name. - Image attributes specify which columns are included — capturing only what you need. **Secure / unsecure configuration.** - **Unsecure** — string passed to the plug-in via `IPluginExecutionContext`; visible in PRT. - **Secure** — encrypted; visible to the plug-in at runtime but not in the registration UI. Use secure for API keys, credentials, sensitive parameters. Use unsecure for non-sensitive tuning (modes, flags). ## Solution-aware registration Modern practice: 1. Create a solution. 2. Add the plug-in assembly to the solution. 3. Add the steps and images to the solution. 4. Export/import the solution to promote across environments. PRT supports this by tagging registrations with solution membership. Promotion happens through solution import in each environment, not through re-registering with PRT in each. **Modern alternatives.** - **Power Platform Build Tools** (Azure DevOps task / GitHub Action) — automate registration as part of CI/CD pipeline. Reduces manual PRT clicking. - **Solutions via packagedeployer** — package the assembly with metadata; promote together. - **CLI commands** — `pac plugin push` from the Power Platform CLI. For mature teams, PRT is the dev-time tool; promotion is automated. **Common pitfalls.** - **Forgot to add the step to a solution.** Step exists in dev but doesn't promote; downstream environment lacks it. - **Wrong stage chosen.** Pre-validation for logic that should be post-operation; cascading effects don't happen. - **Sync plug-in slow.** Drags user-facing operations; flip to async if validation isn't blocking-critical. - **Image not registered or name mismatch.** Plug-in code refers to `"PreImage"` but registration created `"preimage"`; case-sensitive failure. - **Secure configuration leaked.** Connection strings in unsecure config; visible to anyone with admin access; rotate immediately. - **Plug-in chains causing recursion.** A plug-in updating its own table triggers itself; infinite loop; protect with depth checks (`IExecutionContext.Depth > 1` is a common guard). ## Operational discipline PRT is the daily tool for plug-in developers but should never be the production deployment tool. Build/test with PRT; promote via solutions. The line between "registered in dev" and "registered in prod" should be the solution import pipeline, not someone clicking PRT in prod. --- # The Power Platform admin centre The Power Platform admin centre — what it does, who uses it, and how it relates to the Microsoft 365 and Dynamics 365 admin centres. Source: https://www.solvingdynamics365.com/guides/power-platform-admin-center Section: Power Platform Published: 2026-05-01 The **Power Platform admin centre** at admin.powerplatform.microsoft.com is the central console for managing environments, capacity, governance, DLP, and increasingly Dynamics 365 itself. It sits alongside the Microsoft 365 admin centre and is gradually absorbing functions that used to live in Dynamics 365 admin or LCS. ## Environments The main screen. List of every environment in the tenant with type, region, Dataverse status, version, and storage usage. Drill into one to manage users, security groups, backups, copying, resetting, and platform updates. ## Resources Beyond environments, the admin centre shows tenant-wide resources: **capacity** (Dataverse storage broken into database/file/log), **API call usage**, **AI Builder credits**, **flow runs**, **per-app passes**, and licence assignments. Surface for cost monitoring and capacity planning. ## Analytics Built-in dashboards for environment health, flow usage, app usage, Dataverse storage trends, API call patterns, and user adoption. The kind of thing that catches "we're about to hit the limit" three weeks before disaster. ## Data policies (DLP) Define **DLP policies** that classify connectors as Business, Non-Business, or Blocked, and prohibit flows or apps from mixing classes. Policies apply per environment or globally. Effective DLP prevents accidental exfiltration through a Power Automate flow that posts Dataverse data to a personal Dropbox. ## Help + support Open tickets to Microsoft for Power Platform issues directly from here, including for Dynamics 365 components. ## Settings Tenant-level configuration: AI features, copilot opt-ins, on-premises data gateways, custom connectors, environment groups for fleet management, isolation settings. ## Solutions and apps A managed view of solutions and apps across environments — useful for tracking what's deployed where. Pipelines deploy through here. ## Environment groups A newer feature: group environments and apply a configuration policy (security group, DLP, backup schedule) across the whole group, rather than per environment. Helpful at scale. ## The future Microsoft is consolidating admin experiences: many functions that historically lived in the legacy **Dynamics 365 admin centre** are being deprecated in favour of the Power Platform admin centre. Eventually LCS for F&O will follow suit — already, several F&O lifecycle tasks now appear in this console. ## Permissions Access requires Entra roles — **Power Platform Administrator**, **Dynamics 365 Administrator**, or **Global Administrator**. Day-to-day admin should use scoped roles, not Global Admin, to limit blast radius. --- # What is the Power Platform? Microsoft's low-code platform — Power Apps, Power Automate, Power BI, Power Pages, Copilot Studio, and Dataverse. Source: https://www.solvingdynamics365.com/guides/what-is-power-platform Section: Power Platform Published: 2026-08-27 Updated: 2026-09-03 ### Key facts - Five products: Power Apps (applications), Power Automate (workflow/RPA), Power BI (analytics), Power Pages (external websites), Copilot Studio (AI agents) — all sharing Dataverse as their data foundation. - The CRM-lineage Dynamics 365 apps (Sales, Customer Service, Field Service, Customer Insights, Project Operations) genuinely ARE Power Platform apps — pre-configured model-driven apps on Dataverse. - DLP (Data Loss Prevention) policies classify every connector as Business, Non-Business, or Blocked and are the primary governance lever against unintended data movement (as of 2026-09-03). - Managed Environments add tenant-level governance controls on top of ordinary environments for growing maker communities. The Microsoft Power Platform is a low-code application platform that pairs a suite of maker products with a shared data foundation. The maker products are **Power Apps** (business applications), **Power Automate** (workflow automation), **Power BI** (analytics), **Power Pages** (external-facing web experiences), and **Copilot Studio** (conversational AI agents). The shared foundation is **Microsoft Dataverse** — a relational, secure, enterprise-managed data service. Dynamics 365's CRM-lineage apps (Sales, Customer Service, Field Service, Marketing, Customer Insights, Project Operations) are themselves built on the Power Platform. They ship as pre-configured Power Apps on top of Dataverse. This is not marketing framing — it is architecturally true — and it is why extending Dynamics 365 uses exactly the same tools a maker would use for a fresh Power Apps build. ## The five maker products **Power Apps** builds business applications in two flavours. **Model-driven apps** generate a functional data-centric UI from Dataverse metadata — the pattern Dynamics 365 CRM apps use, right for record-heavy processes with security roles and complex forms. **Canvas apps** are drag-and-drop pixel-perfect designs backed by a spreadsheet-like formula language (Power Fx), right for task-specific workflows that need a bespoke UI. **Power Automate** runs workflows. **Cloud flows** trigger from events (a record change in Dataverse, an email arriving, a form submitted, a schedule) and run steps against 500+ connectors. **Desktop flows** are RPA — a bot that drives a Windows UI when there is no API — increasingly overtaken by the API-first world but still important for legacy systems. **Business process flows** are the guided-process flavour used inside model-driven apps to shepherd a user through Qualify → Develop → Propose stages. **Power BI** is the enterprise BI product — semantic models over Fabric, Dataverse, SQL, files, everything. It sits inside the Power Platform brand but is really its own product with its own licence economy and its own admin surface; the overlap is that Dataverse is a first-class data source and that Power BI reports embed into Power Apps and dashboards. **Power Pages** builds external-facing websites — customer portals, partner portals, self-service forms — with Dataverse as the back end and its own authentication (Entra External ID, Azure B2C, local accounts). It is the descendant of the older **Power Apps Portals** product, rewritten in a modern design experience. **Copilot Studio** builds conversational AI agents — chatbots and Teams-native agents that reason over instructions, tools, and knowledge. It is the successor to Power Virtual Agents; the redesign around Copilot happened in 2024 and continues. ## Dataverse Dataverse sits under the maker products. It is a relational data service with an enterprise-grade security model (role-based, row-level, hierarchical, field-level), a rich metadata layer (tables, columns, relationships, choice sets, business rules), and a scalable transactional storage engine. Every Power Platform environment ships with a Dataverse instance. A Dynamics 365 tenant's Dataverse is the same Dataverse that hosts custom Power Apps — with the pre-built Dynamics 365 tables layered on top. That means a custom Power App can add a table that relates to the Account table and it will show up on Account forms in Sales — no integration involved. The extended Dataverse family includes **elastic tables** (NoSQL-style storage for high-volume append workloads), **virtual tables** (federated data staying in its source system), **file/image columns** (blob storage attached to records), and **Dataverse for Teams** (a lightweight Dataverse that ships free inside Teams). All share the same programming model. ## Environments and governance A Power Platform tenant is organised into **environments** — logically separated containers, each with its own Dataverse, security roles, users, and app inventory. The typical setup is a development environment, one or more test environments, and production, mirroring the classic ALM structure. A **default environment** exists for personal productivity apps that shouldn't touch enterprise data. **Managed environments** is a paid tier that adds sharing controls, weekly usage reports, solution checker enforcement, and pipelines. It's designed for organisations that want central IT visibility over a wide maker community, not for a small dev-only footprint. **Data Loss Prevention (DLP) policies** categorise every connector as Business, Non-Business, or Blocked, and prevent a flow or app from combining connectors across categories. This is the primary governance lever — set it right and low-code makers can't accidentally exfiltrate Dataverse data to a personal Dropbox. ## ALM Power Platform applications ship as **solutions** — packaged units of tables, apps, flows, security roles, and dependencies that move between environments. Solutions come in two flavours: **unmanaged** (editable in the destination environment, used in dev) and **managed** (locked in the destination, used in test and production). **Power Platform Pipelines** is the newest and simplest deployment path — a checklist-driven promotion from dev to prod inside the Power Platform admin center. For heavier ALM there is **Power Platform Build Tools** for Azure DevOps and **GitHub Actions for Power Platform**, both wrapping the same `pac` CLI. Larger tenants that want a full ALM discipline use the CLI + Actions or DevOps combination. ## The AI layer Every product in the platform has a Copilot inside it. **Copilot in Power Apps** turns natural-language descriptions into apps, tables, and formulas. **Copilot in Power Automate** does the same for flows. **Copilot in Power BI** authors DAX and describes visuals. **Copilot Studio** is itself the AI-agent building product. Underneath, **AI Builder** provides pre-built AI models (form processing, sentiment, text translation, custom prediction) that flows and apps can call as steps — a lower-code alternative to calling Azure Cognitive Services directly. ## Licensing shape Licensing is intricate and changes frequently. In broad strokes: Power Apps is licensed per app or per user, Power Automate per user or per flow, Power BI per user (Pro, Premium Per User) or per capacity, Power Pages per site with anonymous/authenticated user metering, Copilot Studio per message pack. Dataverse consumption (storage and API calls) is metered against the tenant. Every Dynamics 365 licence includes rights to use the CRM-lineage app's own Dataverse tables inside custom apps and flows. Extending Dynamics 365 with a custom app that uses only Dynamics tables typically does not need an additional Power Platform licence; a custom app that adds new Dataverse tables usually does. Always check the licensing guide before assuming. ## Where the platform starts and ends Power Platform is a low-code platform. It optimises for time-to-first-app, integration breadth, and delegation to Dataverse's transactional engine. It is not a pro-code IDE, not a raw ML platform, and not a general-purpose Kubernetes runtime — for those, Azure sits alongside it (Azure Functions, Azure ML, AKS). The right mental model: Power Platform is the delivery layer for business applications and automations that need to be built quickly, governed centrally, and integrated with Microsoft 365 and Dynamics 365. Azure is the platform for everything more ambitious than that. ## Choosing the first product New teams routinely try to adopt all five at once and stall. In practice the entry point is the shape of the first problem, not a platform-wide rollout: | Shape of the first problem | Start with | Why | |---|---|---| | A shared form or lightweight app replacing a spreadsheet | Power Apps (canvas) with Dataverse | Fast time-to-first-app, security at the row level, no server | | A record-heavy business process with roles and views | Power Apps (model-driven) with Dataverse | The pattern Dynamics 365 CRM apps use; scales with the process | | An approval, notification, or scheduled data movement | Power Automate cloud flow | Trigger + connectors solves most SaaS integration without code | | A UI-driven task against a legacy Windows app with no API | Power Automate desktop (RPA) | Bridging patterns while an API-first replacement is being built | | A report or dashboard for the business | Power BI | Semantic model, distribution, phone-friendly visuals | | A public sign-up, application, or customer self-service | Power Pages | Anonymous + authenticated pages backed by Dataverse | | A conversational agent in Teams or on a site | Copilot Studio | Instructions + tools + knowledge without a bot framework | The rule of thumb: pick one product for the first delivery, land it in production with real users, then add the second product once the first is stable. Trying to master all five in parallel is what makes governance a mess later. ## First-time buyer checklist Before signing a Power Platform commitment or handing an environment to a first business team: - **Environment strategy.** How many environments (dev, test, prod, default), who can create them, and what does the default environment hold? See [Power Platform environments](https://www.solvingdynamics365.com/guides/power-platform-environments). - **DLP policies.** At minimum: Business + Non-Business classification of connectors, a Blocked set for personal storage and consumer social, one policy per environment tier. See [DLP policies in Power Platform](https://www.solvingdynamics365.com/guides/dlp-policies-in-power-platform). - **Identity and licensing.** Which users have Power Apps rights today via Microsoft 365 (limited), which need per-user or per-app; who administers the Power Platform admin center and Managed Environments. - **Data source.** Dataverse is the default and cheapest to govern; SharePoint lists and Excel look free but are the biggest source of ungoverned sprawl. Decide the rule. - **ALM path.** Pipelines for the simple case; Power Platform Build Tools or GitHub Actions once solutions cross environments daily. See [ALM with GitHub Actions for Power Platform](https://www.solvingdynamics365.com/guides/alm-with-github-actions-for-power-platform). - **Governance visibility.** Center of Excellence Starter Kit or Managed Environments reports — one of them needs to be watching maker activity from day one, not after month twelve. - **Copilot posture.** Whether makers can use Copilot in Power Apps and Power Automate, which connectors it can reason over, and whether Copilot Studio agents are allowed to be published outside Teams. - **Sunset plan.** How an app or flow that lost its owner gets identified and retired — the single most under-discussed piece of adoption. ## Where to go next Next reads: [Power Platform environments](https://www.solvingdynamics365.com/guides/power-platform-environments) for the operating model, [canvas apps vs model-driven apps](https://www.solvingdynamics365.com/guides/canvas-apps-vs-model-driven-apps) for the first build decision, [flow design patterns](https://www.solvingdynamics365.com/guides/power-automate-flow-design-patterns) for automation, [DLP policies](https://www.solvingdynamics365.com/guides/dlp-policies-in-power-platform) for governance, and [Copilot Studio for Dynamics 365](https://www.solvingdynamics365.com/guides/copilot-studio-for-dynamics-365) for agents. Licence costs are on the [Power Apps](https://www.solvingdynamics365.com/pricing/power-apps) and [Power Automate](https://www.solvingdynamics365.com/pricing/power-automate) pricing pages. ### Frequently asked questions **What are the five Power Platform products?** Power Apps (business applications), Power Automate (workflow and RPA), Power BI (analytics), Power Pages (external-facing websites), and Copilot Studio (conversational AI agents), all sharing Microsoft Dataverse as their data foundation. **Is Dynamics 365 built on the Power Platform?** The CRM-lineage apps — Sales, Customer Service, Field Service, Customer Insights, Project Operations — genuinely are: they ship as pre-configured model-driven apps on Dataverse. That is why extending them uses the same tools a maker would use for a brand-new Power App. **What is a DLP policy in Power Platform?** A Data Loss Prevention policy classifies every connector as Business, Non-Business, or Blocked and prevents a flow or app from combining connectors across groups. It is the primary governance lever against makers accidentally moving Dataverse data into personal services. **What are managed environments?** A paid tier that adds sharing controls, weekly usage reports, solution checker enforcement, and pipelines. It is meant for organisations governing a wide maker community, not for a small dev-only footprint. **When should I use Azure instead of the Power Platform?** For anything that is not a business application or automation: pro-code services, raw machine learning, or container runtimes. Power Platform optimises for time-to-first-app, connector breadth, and central governance; Azure Functions, Azure ML, and AKS sit alongside it for everything more ambitious. **Which product should a first-time team pick?** Pick by the shape of the first problem, not by the platform. A shared form replacing a spreadsheet is a canvas Power App on Dataverse; an approval chain or scheduled data movement is a Power Automate cloud flow; a record-heavy process with roles is a model-driven Power App; a report is Power BI; a customer sign-up is Power Pages; a Teams-embedded agent is Copilot Studio. Land one in production with real users before adding the second — parallel adoption of all five is what makes governance a mess.