MSBA-259 · Lesson 6 of 12 · 20 min

Domain review: cloud flows and business logic

▶ Video coming soon A video version of this lesson is on the way.

The Build business application logic and automation group carries 40 to 45 percent of the exam, so Signe split it over two sessions. This lesson covers two of its three skill areas, Create cloud flows and Implement business and process logic. Lesson 7 covers the third, prompts and models in AI Hub. The running example was the Finance Invoices solution from Automating Processes with Power Automate and Agent Flows, in which invoices arrive in a shared mailbox, are extracted, matched to purchase orders and routed for approval.

Signe began with a point about the catalog. The course outline originally called this review "automation and agent flows". The AB-410 skills measured as of December 18, 2026 do not include agent flows, desktop flows or process mining; the automation skills are all about cloud flows. Agent flows in Copilot Studio are useful at Lumenvale, and the automation course teaches them, but they are background for this exam.

Recommending triggers

Every cloud flow starts with one trigger. The three families are automated flows, started by an event in a connected system; instant flows, started by a person, for example from a button in a canvas app or a model-driven command; and scheduled flows, started on a recurrence. "Recommend cloud flow triggers" questions describe a requirement and ask which trigger fits.

Matching requirements to triggers.
RequirementTrigger
Process each invoice email as it arrives in a shared mailboxOffice 365 Outlook trigger for a new email in a shared mailbox
Run when a work order's status changes to ClosedDataverse trigger when a row is modified, filtered on the status column
Send a summary to managers at 07:00 each weekdayRecurrence (scheduled)
Let a technician request parts from the Field Tech appPower Apps trigger (instant)
Let a dispatcher run a check on a selected record in a model-driven appAn instant trigger for a selected row

The Dataverse trigger "When a row is added, modified or deleted" has settings that often appear in questions: the change type (added, modified, deleted or combinations), the table, the scope (user, business unit, parent: child business unit or organization, which decides whose rows fire the flow), select columns (fire only when those columns change) and filter rows (an OData condition the row must meet). Combined with trigger conditions, these settings stop flows from running needlessly, which saves capacity and avoids loops where a flow updates the row that triggered it.

Trigger settings that fire only when a work order's status changes to Closed, and not when the service account made the change. Values are illustrative.
Trigger: When a row is added, modified or deleted (Dataverse)
  Change type: Modified
  Table name: Work Orders
  Scope: Organization
  Select columns: lcc_status
  Filter rows: lcc_status eq 4
Trigger condition:
  @not(equals(triggerOutputs()?['body/_modifiedby_value'], 'service-account-id'))

Evaluating and recommending connectors

Connectors are grouped as standard, premium and custom. Standard connectors such as SharePoint and Office 365 Outlook are included with Microsoft 365 licences; premium connectors, including Dataverse outside Microsoft 365 scenarios, HTTP and many line-of-business systems, require a premium licence. A custom connector wraps a REST API that has no connector, as Lumenvale did for the LedgerPoint finance system's reporting interface. Questions in this area usually turn on one of three things: whether a connector exists for the system, whether it is premium and the users are licensed, and whether the organization's data policies allow it to be combined with other connectors in the same flow.

Prefer a dedicated connector over the generic HTTP action when one exists, because it handles authentication and paging and is easier to govern. Prefer Dataverse over SharePoint for business data that needs relationships, security roles or large volumes, and SharePoint for document-centred lists that users already manage in Microsoft 365.

Managing approvals

The Approvals connector's Start and wait for an approval action sends approval requests to Outlook, Teams and the Power Automate app and pauses the flow until a response. The approval types decide when it completes:

Approval types in Power Automate.
Approval typeCompletes when
Approve/Reject – Everyone must approveEvery approver approves, or any approver rejects
Approve/Reject – First to respondAny one approver responds
Custom responses – Wait for all responsesEvery approver has chosen one of the custom options
Custom responses – Wait for one responseAny approver chooses an option

Sequential approvals are built from several approval actions one after another, often with conditions such as "if the amount is over 5,000 dollars, also send to the campus finance manager". Approvals can wait for a long time, so flows that use them should include reminders and an escalation path, built with parallel branches, a Do until loop or timeouts on the approval action. The Finance Invoices flow reminded budget holders after five working days and escalated to their delegate after seven.

Configuring actions

"Configure cloud flow actions" expects fluency with the common actions: Dataverse actions such as List rows (with filter, select and expand options), Get a row by ID, Add a new row and Update a row; Compose for building values; variables (initialize, set, append); and expressions written in the workflow expression language. A frequent exam theme is efficiency: filter and select columns in List rows rather than retrieving every row and filtering in the flow.

Flow control

"Implement flow control with conditions and loops" covers Condition (if, then, else), Switch (one of several cases), Apply to each (loop through an array, optionally with concurrency to process items in parallel) and Do until (repeat until a condition is true or a limit is reached). Scopes group actions; together with configure run after, they create try, catch and finally patterns: a Catch scope set to run only when the Try scope has failed or timed out.

A flow diagram with three scopes in a row. Try contains Get invoice, Match purchase order and Update row. Catch, configured to run after Try has failed or timed out, contains Send alert to accounts payable and Set status to Needs review. Finally, configured to run after Catch whether it succeeded, failed or was skipped, contains Log run result.
Scopes with configure run after implement try, catch and finally in a cloud flow.

Testing and troubleshooting

For "test and troubleshoot cloud flows", know where the evidence is. Run history shows each run, its trigger output and each action's inputs and outputs. Test lets a maker run a flow manually or with the trigger data of a previous run. The flow checker reports errors and warnings before saving. Actions have retry policies for transient failures, and failed actions show error codes such as 401 for authentication, 403 for permissions, 404 for something missing and 429 for throttling. A flow that suddenly fails for one connection after someone leaves the organization usually has a connection owned by that person, which is why production flows should run on service accounts.

Business rules

Moving to the second skill area, business rules apply simple logic to a Dataverse table without code. A rule has conditions and actions: set a column value, clear it, set it required or optional, show or hide it, lock or unlock it, show an error message, or show a recommendation. The scope decides where the rule runs. A rule scoped to a specific form or to all forms runs in the model-driven form. A rule scoped to the table (sometimes labelled Entity) also runs on the server, so it applies however the data is changed, but only some actions run on the server, such as setting and clearing values and showing errors; visibility and locking only make sense on forms. Form actions such as showing, hiding and locking have no effect in canvas apps, so a canvas app that needs the same behaviour implements it in its own formulas; a table-scoped rule's server-side actions still apply when the canvas app saves the row.

Business process flows

Business process flows guide users through stages of a process, shown as a bar at the top of model-driven forms. Each stage has steps (columns to complete), and stages can branch on conditions. A business process flow can span more than one table, such as an inspection that becomes a work order. Microsoft documents limits on the number of stages, steps per stage and tables per flow; check current documentation for the exact figures. Each business process flow is itself a Dataverse table whose rows record the process instance, which means you can report on where processes stall and secure who can use each flow with security roles.

Calculated, rollup and formula columns

Three kinds of calculated values in Dataverse.
CalculatedRollupFormula
Defined withA designer with conditions and actionsAn aggregation over related rowsPower Fx
Uses data fromThe row and its parent rowsChild rows (sum, count, minimum, maximum, average)The row and related rows through lookups
When calculatedWhen the row is retrievedAsynchronously, by a system job (by default every 12 hours) or on demandWhen the row is retrieved
ExampleDays until due from Due DateNumber of open findings on an inspectionFull name of the assigned technician's supervisor
Watch out forOlder designer; Microsoft encourages formula columns for new workValues can be stale until the job runsNot every Power Fx function is supported

The exam tests choosing between them. If the value aggregates child rows, it is a rollup, and a requirement for an always-current count points to recalculation on demand or a flow instead. If the value is a calculation on the row or its parents, a formula column is the modern answer, and a calculated column is acceptable. If the value must be stored at the moment something happened, such as the price at the time of an order, none of these fits: a flow or plug-in must write it.

Evaluating use cases for business logic

The last skill, "evaluate use cases for business logic", ties the area together. Signe drew a ladder on the whiteboard from the simplest tool to the most complex and told the circle to choose the lowest rung that meets the requirement.

A ladder with five rungs from bottom to top: Column settings and required fields; Business rule; Formula, calculated or rollup column; Cloud flow; Plug-in or custom code. Notes beside the rungs say: no code and instant on forms at the bottom, more power and more maintenance toward the top.
Choose the lowest rung that meets the requirement.
  • If the requirement is a value that must always be present, use the column's required setting.
  • If it is a simple condition on a form, such as showing a field only for urgent work orders, use a business rule.
  • If it is a value derived from other values, use a formula, calculated or rollup column.
  • If it involves other systems, waiting, approvals or sending messages, use a cloud flow.
  • If it must run synchronously inside the Dataverse transaction with complex logic, or the volume is too high for flows, a developer writes a plug-in, which is outside AB-410 but may appear as a wrong answer for simple needs.

Worked problem

Choosing the right logic

Facilities has four requirements. (1) On the work order form, the Parts Needed column should appear only when Type is Repair. (2) Each inspection should show the number of findings marked Fail. (3) When a work order is closed, the requester receives an email and the building's manager receives a Teams message. (4) Due Date must be entered before a work order can be saved, whatever app creates it.

Show solution
  1. (1) Show or hide on a form based on another column: a business rule scoped to the form or all forms.
  2. (2) Count of related child rows meeting a condition: a rollup column on Inspection, recalculated on demand if the number must be current.
  3. (3) Messages to two systems when a status changes: an automated cloud flow on the Dataverse modified trigger, filtered to Closed.
  4. (4) Required in every app: set the column's requirement level to business required, which applies on forms and in apps that submit rows.

Answer: A form business rule, a rollup column, an automated cloud flow and a required column. None of the four needs code.

Licensing reminders for automation

Automation questions sometimes hinge on licensing. A flow that uses only standard connectors can run under users' Microsoft 365 rights. A flow that uses Dataverse outside Microsoft 365 apps, HTTP or another premium connector needs premium licensing for the people or the process that run it. If a scenario mentions that users have only Microsoft 365 licences and asks for the lowest-cost design, an answer that relies on premium connectors is unlikely to be intended unless the scenario also adds licences.

Common mistakes

  • MistakeStudying agent flows and desktop flows in depth for AB-410.

    InsteadFocus on cloud flows; agent flows, desktop flows and process mining are not AB-410 skills.

  • MistakeTriggering on every modification of a row.

    InsteadUse select columns, filter rows and trigger conditions to fire only when needed and avoid loops.

  • MistakeExpecting a business rule scoped to a form to apply to data imported or changed by flows.

    InsteadScope to the table for server-side actions, or enforce the rule in the process that changes the data.

  • MistakeUsing a rollup column where the value must be current to the second.

    InsteadRecalculate on demand, or compute the value in a flow at the moment it is needed.

  • MistakeChoosing a plug-in for a requirement a business rule meets.

    InsteadChoose the lowest rung on the logic ladder.

Summary and key terms

  • Cloud flows start from automated, instant or scheduled triggers; Dataverse triggers have change type, scope, select columns and filter rows.
  • Recommend connectors by availability, licensing tier and data policy; prefer dedicated connectors over generic HTTP.
  • Approval types decide completion; build sequential approvals and reminders with conditions and parallel branches.
  • Control flow with conditions, switch, loops and scopes with configure run after; troubleshoot with run history and error codes.
  • Business rules, business process flows and calculated, rollup and formula columns implement logic in Dataverse.
  • Choose the simplest tool that meets the requirement.
Trigger condition
An expression that must be true for a flow to start after its trigger fires.
Premium connector
A connector that requires a premium Power Platform licence.
Configure run after
A setting that makes an action or scope run after another succeeds, fails, is skipped or times out.
Business rule
No-code logic on a Dataverse table that sets values, requirements, visibility or errors.
Business process flow
A staged, guided process shown on model-driven forms.
Rollup column
A column that aggregates values from related child rows, updated by a system job.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Which approval type completes as soon as one approver approves?

    Show answer

    Approve/Reject – First to respond.

  2. A flow updates the row that triggers it and runs in a loop. Name two fixes.

    Show answer

    Select columns on the trigger and a trigger condition that ignores changes made by the flow's own account.

  3. Which business rule scope runs on the server?

    Show answer

    The table (Entity) scope, for actions such as setting values and showing errors.

  4. A count of child rows must update immediately when a child is added. Is a rollup column enough on its own?

    Show answer

    Not on its own, because rollups update by schedule; recalculate on demand or compute it in a flow.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz