AB-410 Cheatsheet
Building Intelligent Applications
Download free PDFDataverse data design
Columns and shared choices
- **Dataverse** stores relational business data with table metadata, relationships and security. Extend suitable standard tables before creating custom tables for genuinely different business concepts.
- **Choice** selects one predefined option; **Choices** allows multiple selections. A **global choice** reuses one option definition across columns and tables; a local choice belongs to one column.
- **Text** suits identifiers and short descriptions; multiline text suits longer content. Select appropriate maximum lengths and numeric precision. **Customer** is a special lookup that can reference an Account or Contact.
- **Status** represents the row state; **Status Reason** describes a reason within that state. Add distinct reasons such as Cancelled and Duplicate under the appropriate inactive state.
Identifiers, keys and discoverability
- A row's **GUID primary key** is its platform identity. **Autonumber** creates readable identifiers; neither an autonumber nor a display name replaces a carefully designed external business key.
- An **alternate key** uses one or more supported columns to identify rows uniquely and creates an index. Use it for external-ID lookup and upsert; verify the key becomes active before integration uses it.
- A unique key and a **required value** address different constraints. Prevent missing external identifiers explicitly; nullable key values do not provide the same uniqueness protection as populated keys.
- The column **Searchable** property controls availability in supported filtering tools such as Advanced Find. Quick Find search columns control search matching. Neither setting protects confidential data.
Relationships and cascading
- For **1:N**, place the lookup on the child: many Shipments can reference one Vendor. A lookup links a row; a rollup aggregates related rows. A lookup alone does not enforce a one-to-one relationship.
- Use **N:N** for multiple rows on both sides. Use an explicit junction table when the association needs attributes such as dates or quantities. **Connections** add flexible relationship roles and optional start/end dates.
- Configure cascading from the **referenced parent** to its referencing children. **Cascade delete** removes related children; **Remove Link** clears their lookup; **Restrict Delete** blocks deleting a parent with referencing rows.
- **Parental** behavior cascades supported actions. **Configurable cascading** lets Assign, Share and Delete differ. Reassigning children follows relationship settings; it does not automatically reassign every row linked by any lookup.
Formula, calculated and rollup columns
- **Formula columns** use Power Fx for derived values, such as Amount minus Payment. They calculate when retrieved rather than requiring an app or flow to maintain a separate ordinary value.
- **Calculated columns** use the classic expression designer. Function names and supported types differ from Power Fx: classic **TRIMLEFT** removes leading characters; canvas Power Fx uses its own text functions.
- **Rollup columns** store aggregates such as SUM or COUNT over supported related rows. Recalculation is asynchronous or explicitly requested; do not assume an immediately current total after each child update.
- Match result **type, precision and length** to the calculation. Date/time calculations require the correct date behavior and timezone assumptions; verify supported functions and currency conversions in the chosen column type.
History, synchronization and duplicates
- Enable **auditing** at environment, table and selected-column levels to record who changed data, what changed and when. Audit only required columns and set suitable retention because audit records consume log capacity.
- **Change tracking** supports incremental synchronization with external systems. It serves a different purpose from a human-readable audit trail; enable both when integration and compliance history are required.
- **Duplicate detection rules** match candidate duplicates using business criteria, such as last name plus email. Scheduled detection jobs can report duplicates without requiring save-time alerts. An alternate key enforces uniqueness instead of merely flagging matches.
Identity, access and governance
App access and user identity
- Model-driven app access requires an eligible **license**, environment access, app sharing and appropriate **Dataverse security roles**. Seeing an app tile or receiving its URL does not establish data access.
- Use the **App access checker** for the affected user's identity to diagnose access. Check licensing, enabled user state, environment security-group membership, app availability and privileges before granting broad permissions.
- **Microsoft Entra group teams** derive membership from the linked group and can receive Dataverse roles. Membership can be evaluated as users access the environment; a static team list is not always proof of effective membership.
- Change a person's **UPN/sign-in name** on the existing identity through the identity administration process. Preserve the underlying user identity to retain ownership and history associations.
Roles, ownership and business units
- Security roles combine **privileges** with an access depth: User, Business Unit, Parent: Child Business Units or Organization, where supported. Effective permissions accumulate across roles and teams; a narrow role does not revoke another role's grant.
- **User or team-owned** tables support row ownership and scoped access. **Organization-owned** tables grant table-wide operations without per-owner privilege depths. Choose ownership deliberately when creating the table.
- **Create, Read, Write, Delete, Assign and Share** are distinct privileges. **Append** allows associating a row with another; **Append To** permits other rows to be associated with the target.
- **User-level** access is based on ownership and other access grants, rather than simply Created By. Use business-unit boundaries and suitable role depths for departmental access, and test with a minimally privileged account.
Teams and hierarchy access
- **Owner teams** can own rows and receive security roles. **Access teams** grant selected rights to particular shared rows without owning them or receiving security roles; members still need underlying table privileges.
- **Manager hierarchy** follows user-manager relationships; **position hierarchy** follows configured positions. Hierarchy security adds access to existing role permissions. Configure depth and business-unit constraints to match the intended reporting reach.
- For temporary assignments, plan both parent and child access, including **Assign cascading** where appropriate. Revoke obsolete sharing and team membership after work ends; changing ownership alone may leave other access paths.
Sensitive columns and least privilege
- Enable **column security** on supported columns, then use **column security profiles** to grant Read, Create or Update rights to users or teams. Table and row access must also permit the operation.
- Hiding a control, removing a view or disabling search improves the interface but does not enforce confidentiality. Protect sensitive data through row privileges and column security, including access through APIs and other apps.
- Separate baseline app privileges from job-specific roles. Validate read-only roles with a **test account** that lacks administrator privileges; administrator testing can hide missing permissions and excessive access.
Canvas and model-driven applications
Choose the app experience
- **Canvas apps** provide control over layout, responsive containers, galleries and mobile input such as camera or photo upload. **Model-driven apps** derive forms, views and navigation from Dataverse metadata.
- A **Dataverse table page** supplies standard lists and forms. A **custom page** brings canvas-style layout and supported connectors into a model-driven app as a page, dialog or pane.
- Design for **touch and accessibility**: readable labels, suitable target sizes, logical tab order and responsive layouts. Save and publish the app, share it, and grant access to its data sources separately.
State, formulas and reusable UI
- **Set** creates an app-wide global variable. **UpdateContext** creates screen-scoped state; **Navigate** can pass context values to another screen. These values are session state unless explicitly saved to durable storage.
- **Collections** hold in-memory tables; **Collect** adds rows and **ClearCollect** replaces their contents. A gallery's **Items** can reference a collection, a data source or a query; a collection is not mandatory.
- **Named formulas** in App.Formulas express values that recalculate from dependencies. **User-defined functions** encapsulate parameterized logic within supported contexts; neither automatically distributes code across separate apps.
- A **component library** centralizes reusable canvas UI. Publish library changes, then review and accept updates in consuming apps and republish them. **PCF code components** provide developer-built controls packaged in solutions.
Delegation and startup performance
- Use **delegable filters and sorting** so the source processes large datasets. Nondelegable expressions can return results from only a limited local subset; increasing the row limit does not make them complete.
- Retrieve only needed rows and columns; use suitable **server-side views** and avoid per-row connector calls in galleries. Defer nonessential loading and keep heavy work out of the critical startup path.
- Use **Concurrent** for independent requests, never for dependent operations. Cache small reference datasets when useful; loading an entire large source into collections risks incomplete results, slow startup and stale data.
Actions, errors and monitoring
- Call an added app-triggered flow with **FlowName.Run(...)** from a behavior formula. If a notification requires a successful form save, call it from the form's **OnSuccess**, using LastSubmit rather than assuming SubmitForm has completed.
- **IfError** handles errors in the expression it wraps; it does not retroactively protect an earlier independent Patch. **Notify** displays a message. Forms also expose **OnFailure** and Error for submission feedback.
- Use **Live monitor** to inspect events, network calls and remote-user sessions; connect the user and download session data for later analysis. **Trace** adds custom diagnostic events; a local log collection is not durable telemetry.
- **Match** extracts text matching a pattern; use an exact digit-count pattern for fixed-length reference numbers. For **mobile push notifications**, configure the Power Apps notification connector and target users with the app and required permissions.
Forms, views and navigation
- **Main forms** edit rows; **quick view forms** display related-row information read-only. **Subgrids** list related rows; a **form component control** can expose an editable related form when permissions allow.
- Assign **main-form security roles**, configure form order and provide an appropriate fallback. Add required tables and assets to the app. Organize navigation with **areas, groups and subareas**; navigation does not grant data privileges.
- **View filters** select rows and **view columns** choose displayed attributes. Personal views can be shared with users or teams. Role-based public-view management filters eligible nondefault views in the table list selector; it does not secure the data.
- For table **icons**, add the web resource before referencing it in table metadata; include the resource in the solution and publish. Save and publish form, view and app changes before testing the released experience.
Charts and dashboards
- Use **line charts** for trends, **pie charts** for a small number of part-to-whole categories, **stacked columns** for category contributions, and **funnels** for stage distributions. A funnel alone does not prove historical conversion rates.
- **System charts** aggregate data alongside a row list. **Dashboards** combine charts and lists. Include required assets in the app and ensure users can read the underlying rows.
- Configure a dashboard component's **Default View** for its starting dataset. Control view and chart selectors separately; disable chart selection when users must remain on one configured chart.
Business logic and guided processes
Business rule actions and scope
- **Business rules** combine conditions with actions: set or clear values, set defaults, require columns, show errors, change visibility or locking, and offer recommendations. Validate, save and activate the rule.
- **Specific form** scope affects one model-driven form; **All Forms** affects the table's model-driven forms. **Table/Entity** scope also runs supported logic on the server, including data changes from other clients.
- Canvas apps do not inherit model-driven form visibility or recommendation actions. Use **table-scoped data logic** for shared enforcement and canvas Power Fx for the canvas interface; keep form-only behavior scoped to forms.
- A **recommendation** guides the user; **requiredness** and validation prevent invalid form submission. Protect critical invariants on the server too, because client controls and form-required settings are not universal API validation.
Client behavior and server validation
- **JavaScript web resources** implement model-driven client behavior through events such as OnLoad, OnChange and OnSave. Reuse libraries across forms; client scripts do not execute for every background or API update.
- A synchronous **Dataverse plug-in** can enforce transaction-time validation and reject an operation. A **real-time workflow** provides supported synchronous process logic; automated cloud flows run asynchronously and cannot reject the original save transaction.
- **Automated low-code plug-ins** use Power Fx for server-side table events where the preview capability is available. Distinguish them from client formulas and verify support before choosing them for a production design.
Business process flow structure
- A **business process flow (BPF)** guides people through stages and data steps. Mark a **data step Required** to gate stage progression without making the column mandatory everywhere else.
- Use **condition branches** for different process paths, such as revenue below a threshold versus revenue at or above it. Add the relevant columns and optional flow steps to the corresponding stage.
- A **flow step** lets a user invoke configured automation from the BPF. Automatic emails on row creation belong in an event-triggered cloud flow. Background work alone does not guarantee that a stage transition waits for approval.
Process access, instances and offline use
- BPF **activation, security-role availability, process-table privileges and order** affect which processes users can use. Moving a process lower in the order changes default selection; it does not prohibit switching to it.
- A BPF **definition** describes the process; a **process instance** stores a row's progress. Test definition changes against existing active instances and stages instead of assuming every row restarts at a newly inserted stage.
- For supported **mobile offline BPFs**, use a single-table process and include needed data in the offline configuration. Cloud automation still needs connectivity and executes after relevant data reaches the service.
Cloud automation and integration
Triggers and event filtering
- Use **automated flows** for events, **scheduled flows** for recurrence and **instant flows** for explicit invocation. Dataverse's **When a row is added, modified or deleted** trigger selects change type, table and scope.
- For updates, **Select columns** narrows triggering attributes and **Filter rows** narrows qualifying row values. An update can trigger when an attribute is submitted even if its value is unchanged; guard against flows retriggering their own updates.
- **Trigger conditions** prevent unnecessary runs. Distinguish creation from later modification when requirements differ. Persist a processed marker or external event ID when repeated events must not create duplicate downstream work.
- Use **When an action is performed** for eligible Dataverse business events exposed by a configured custom API/action. Listening for its resulting row creation alone can also catch unrelated operations.
Data, expressions and control flow
- **Get a row by ID** retrieves one Dataverse row; **List rows** retrieves matching rows. Use filter and select options and pagination deliberately. **Compose** holds an action result; initialize a typed **variable** before setting or reusing it.
- Use **greater/greaterOrEquals**, **equals**, **contains**, **and/or**, **if** and **concat** for comparisons, branching and text. Match actual data types: the boolean true differs from the string 'true'; Choice values differ from their labels.
- Use **empty** or explicit null checks before processing incomplete inputs. Compute overdue thresholds from dates consistently, including timezone and inclusive boundaries; seven or more days means **>= 7** after calculating elapsed days.
- **Apply to each** iterates an array; **Do until** repeats until a condition becomes true or a limit is reached. Requery inside the loop when new data must be included. Neither loop alone guarantees exactly-once processing.
Approvals, routing and outcomes
- **Start and wait for an approval** creates a request and waits for a decision. Resolve the intended approvers, then branch on the action's **Outcome**; the action succeeding is not the same as the request being approved.
- **Approve/Reject - Everyone must approve** requires unanimous approval and can finish on rejection. **First to respond** finishes on the first decision. Use **custom responses** when outcomes include options such as Escalate.
- For unanimous approval by named people, resolve the **individual approvers** explicitly. Assigning to a group is a different pattern and does not mean every group member must respond. Configure email and Teams delivery as required.
- **Create an approval** and **Wait for an approval** can be separated when intermediate actions need the approval ID. Use the overall outcome for routing; response arrays hold individual decisions, comments and responders.
Failure handling and duplicate prevention
- Group dependent actions in a **Scope**. Use **Configure run after** on a catch scope for failure or timeout, notify support and terminate with the appropriate status. A scope does not automatically undo successful actions.
- For operations such as SharePoint writes, implement explicit **compensation** using saved IDs to reverse prior work. Dataverse **changesets** provide supported transactional operations within Dataverse, not a transaction spanning arbitrary connectors.
- Use **retry policies** for transient failures and throttling; inspect connector limits before adjusting **timeouts**. Investigate **401** failures through connection authentication and permissions rather than repeatedly retrying unchanged credentials.
- **Concurrency control** reduces overlapping runs and races. **Idempotency**, unique keys and processed-event tracking prevent duplicate effects across retries or repeated triggers; setting concurrency to one does not deduplicate events.
Connectors, APIs and desktop automation
- Use existing **Dataverse** and **SharePoint connectors** for supported operations. A **custom connector** wraps a reusable external API with defined actions, schemas and authentication; a one-off HTTP action may suffice for a simple isolated call.
- For external AI, map request and response payloads, configure supported authentication, and handle errors. **Environment variables** configure endpoints; **connections** supply credentials. An environment variable alone does not implement an API integration.
- Use **desktop flows** when a legacy website requires UI automation and lacks a suitable API. Prefer stable web elements and resilient selectors, with validation and recovery for changing pages; screen coordinates are fragile.
Completion checks and work distribution
- Before completing a parent request, query its **related children** and confirm all required work is complete. Build the result message from child outcomes, then update parent status and send the notification with duplicate-send protection.
- **Queues** organize work items; queue membership does not replace Dataverse row access. Record the worker and completion time explicitly, and restrict sensitive status transitions with server-enforced permissions or validation.
- For quality review, distinguish **systematic sampling** such as every tenth eligible row from random sampling. Autonumber sequences can contain gaps; divisibility alone does not guarantee exactly ten percent of any arbitrary batch.
AI capabilities and solution delivery
Select and consume AI capabilities
- Use suitable **prebuilt models** for standard tasks such as sentiment or entity extraction. Use a **custom trained model** when labeled business examples are needed; use a **custom prompt** for generation, summarization or rewriting.
- For document extraction in a flow, configure **Process documents** with a published model and supported file content. Map extracted fields and tables into validated ERP or Dataverse writes; text entity extraction serves a different input pattern.
- A canvas app can add an available **AI Builder model or prompt** and invoke its supported **Predict** operation through Power Fx. Supply current inputs and handle the returned schema, failure and latency; prediction is distinct from retraining.
Prompt structure and grounding
- Define the **task**, relevant **context**, success **expectations** and output **format**. Specify tone, audience, required facts and exclusions; a formatting request alone does not define which information matters.
- Use **input parameters** for record data rather than editing static prompt text for each case. Start from a suitable template for common tasks or a blank prompt for specialized instructions; test representative and incomplete inputs.
- **Retrieval-augmented generation (RAG)** supplies relevant business knowledge at runtime, such as supported Dataverse table data. Retrieval needs configured access and relevance; mentioning a SharePoint URL does not automatically load its contents.
- A lower **temperature** can reduce output variation but cannot ensure factual accuracy. **Content moderation** filters harmful content rather than verifying facts. Ground responses, define an insufficient-information response and review important outputs.
Run prompts in apps and workflows
- In a cloud flow, **trigger -> prepare inputs -> Run a prompt -> validate output -> store or route** separates orchestration from generation. A temporary variable is not persistent storage; map accepted results to explicit data columns.
- In **Copilot Studio**, map captured conversation variables to prompt inputs and use returned outputs in later nodes. Use a defined **JSON output schema** for machine-readable results, and validate the result before automated actions.
- A **prompt column** generates and persists AI output from referenced row columns; it runs on creation or relevant input updates. A reusable **custom prompt** stores instructions for runtime use across calling apps and flows.
- An embedded **Copilot Studio agent** can provide contextual help within an app. Pass the relevant record/page context through supported integration. Agents reason and converse; **agent flows** execute defined workflow steps. Govern their access and actions separately.
- A prompt can draft report content, while a **Word template/document-generation flow** controls the actual document layout and file. Require human review before sending consequential customer responses or committing AI-suggested changes.
Environments and controlled releases
- Separate **development, test/UAT and production**. Use isolated development environments for teams that would otherwise overwrite shared components, with source control and an agreed integration process for common dependencies.
- **Sandbox** environments support shared nonproduction work; **Production** hosts operational workloads. **Developer** environments serve individual development. Use supported environment security groups and Dataverse roles to control access.
- **Managed Environments** add governance and visibility to eligible environments; they are a capability layer rather than a replacement for every base environment type. **Power Platform pipelines** support repeatable, governed solution deployments.
Solutions, publishers and dependencies
- Author in **unmanaged solutions** and export **managed solutions** as downstream deployment artifacts. A solution groups components, not isolated copies: editing a shared component in one environment affects every solution that references it.
- Create a suitable **publisher and prefix** before creating custom components to reduce naming collisions. Segment solutions by functional ownership and keep shared foundational components and dependencies intentional.
- Use **Select components** to include changed columns or forms; include **table metadata** for changed table-level properties. Include required dependencies such as flows, connection references and web resources without indiscriminately adding every table asset.
- Run **solution checker**, validate imports and perform functional/security tests in test/UAT. Promote the tested managed artifact through an automated pipeline; use an appropriately privileged deployment identity and retain source-controlled artifacts.
Configuration and managed servicing
- A **connection** authenticates to a service. A **connection reference** is a solution component that binds apps or flows to a target connection. Configure and authorize target connections during deployment; credentials are not automatically transported.
- Use **environment variables** for environment-specific configuration and appropriate secret handling for credentials. Solutions move metadata and app components; **Configuration Migration** moves suitable configuration data separately.
- **Managed properties** restrict permitted downstream customization, such as display-name changes or new forms where supported. Managed deployment alone does not prevent all unmanaged layers; apply governance and inspect solution layers.
- A managed **update** modifies existing components; an **upgrade** can remove components omitted from the newer solution. A **patch** delivers limited changes to its parent solution; plan shared-component dependencies before servicing.
- **Uninstalling** a managed solution can remove components and associated data and is not a general rollback strategy. Plan recoverable releases and backups. **SolutionPackager** or solution-aware CLI tooling supports source control of unpacked components.