MSBA-342 · Lesson 10 of 12 · 20 min
Power Platform integration
▶ Video coming soon A video version of this lesson is on the way.
By the tenth clinic, most rows on the integration register touched the Power Platform somewhere. The technician app was a canvas app over a virtual table. The plant scheduling replacement was a Power Automate flow triggered by a business event. The tender pilot was a model-driven app. Fabric link ran through Dataverse. Kiri Langford asked Desmond to use this clinic to pull the threads together: what the Power Platform integration actually is, which connection pattern suits which need, how makers and developers should divide the work, and how Copilot and agents fit within Cobalt Ridge's rules. Prudence had built Power Apps before she ever saw X++, so for once she knew half the material better than the series had assumed.
What the Power Platform integration is
Every modern finance and operations environment is paired with a Dataverse environment. Microsoft calls this pairing the Power Platform integration. Environments created through the Power Platform admin center, including every unified developer environment, have it from the start; older environments created through Lifecycle Services can have it enabled. The integration is what makes virtual entities, dual-write, business events in Power Automate, Fabric link for finance and operations data, and many Copilot features possible, because all of them depend on Dataverse knowing about the finance and operations environment and being able to call it securely.
With the integration in place, a finance and operations environment and its Dataverse environment are managed together. In the unified model, they are effectively one environment with two sides: finance and operations packages on one side, Dataverse solutions on the other. Application lifecycle management for that combined environment is the subject of the next course, MSBA-343, but Desmond wanted Prudence to understand now that every Power Platform artifact she built, from a flow to a virtual table, belonged in a Dataverse solution and moved through environments the same way her X++ packages did.
Connection patterns
Desmond drew a table of the ways a Power Platform maker can reach finance and operations data, with the clinic in which each had appeared. The point of the table was not that one pattern was best, but that each fits a different need and carries different security and performance behavior.
| Pattern | Good for | Runs as | Cobalt Ridge use |
|---|---|---|---|
| Virtual tables (Dataverse connector) | Apps and flows that read and write entity data live | The signed-in user | Technician app; tender pilot |
| Fin and Ops Apps connector | Flows that work with entities and OData actions directly | The connection's user | Small flows owned by finance |
| Business event trigger | Flows that react when a business moment occurs | The flow owner's subscription | Pump order confirmed to plant scheduling |
| Custom connector to a custom service | Calling an X++ operation from an app or flow | The connection's user | Coverage check from the technician app |
| Dual-write | Copies of data for customer engagement apps | Service identities with mapped roles | Deferred (decision D-INT-06) |
| Fabric link | Analytics | Not interactive | Finance analytics workspace |
The Fin and Ops Apps connector deserves a closer look because makers find it first. It offers actions to list, get, create, update and delete records in an entity, and to execute an OData action, and it includes a trigger for business events. Each connection signs in as a user, so a flow that uses the connector runs with that user's rights. That is convenient for a flow that a finance user builds for herself and risky for a shared flow, because whoever owns the connection lends their access to everyone who uses the flow. Desmond's rule was that shared flows at Cobalt Ridge should run under a service account with a narrow role, created by the security team, and never under a person's own account.
Events into flows
The plant scheduling flow showed the event pattern from end to end. Piotr's analyst opened Power Automate, created an automated cloud flow, and chose the trigger for business events from the finance and operations connector. The trigger asked for the environment, the category, the event and the legal entity. Choosing CRPumpOrderConfirmedBusinessEvent from the Sales order category and the CRCA legal entity created the activation in the business events catalog automatically, with the flow as an endpoint. The flow then parsed the payload using the schema downloaded from the catalog, called the scheduling tool's web API with the sales order, lot ID, configuration, quantity and confirmed ship date, and wrote a line to a SharePoint list used as a simple audit log.
To build the trigger, the analyst needed the privilege that allows subscribing to business events from the service, and the event had to be in a category her roles could see. Microsoft documents that role-based security applies to business event subscriptions in this way. Desmond added the privilege to a small custom role, CR Business event subscriber, assigned only to the two people in operations who were allowed to build event-driven flows.
Flow CR - Pump order confirmed to plant scheduling (solution CobaltRidgeOpsFlows)
Trigger When a Business Event occurs (Fin and Ops Apps)
Category Sales order
Business event CRPumpOrderConfirmedBusinessEvent
Legal entity CRCA
Step 1 Parse JSON schema = downloaded from the business events catalog
Step 2 Condition LineStatus is not Canceled
Step 3 HTTP POST to plant scheduling API /orders/upsert
body: SalesOrder, LotId, ItemId, Configuration,
Quantity, ConfirmedShipDate, ControlNumber
Step 4 Add item SharePoint list 'Scheduling feed log'
On failure Send an email to plant-scheduling-support and terminateThe condition in step 2 shows a subtle point. The flow passes the control number to the scheduling tool so that the tool can ignore a duplicate, because, as the business events clinic explained, delivery is at least once. And it uses the line status symbol, which reads clearly in the flow's condition and would keep its meaning even if Microsoft added a new sales status in a future release.
Apps inside the application
Integration also runs the other way: a Power App can appear inside a finance and operations page. Users with the right permissions can add a Power App to a page from the action pane, and the app receives context from the page, such as the current record's identifier, so that it can show related information without the user retyping anything. Henrik wanted the technician app's warranty card on the customer details page so that service desk staff could see it next to the customer. Because the app already read the virtual table, embedding it took no developer work at all; the context passed the customer account, and the app filtered on it.
Desmond pointed out the design rule that follows. An app embedded in the client should not duplicate what the client already shows, and should not write data that the client's own forms and validation should own. The warranty card was read-only and showed data that the customer form did not, which made it a good candidate. A proposal to let service desk staff edit customer addresses in an embedded app was rejected, because the customer form already did that with all of its rules.
Dataverse and finance and operations business logic
A question Prudence raised led to an important principle. Makers on the Power Platform can write business logic in several places: Power Fx formulas in apps, conditions in flows, Dataverse business rules and plug-ins. When the data lives in finance and operations apps and arrives through virtual tables, where should rules go? Desmond's answer was the one he had given in the first clinic for entities: rules that protect the data belong with the data, in X++ on the tables and entities, so that every path into the data enforces them. Rules about the user experience of one app, such as which fields a technician sees first, belong in the app. A rule that lives only in a Power App is a rule that a flow, an import or the next app will not follow.
Copilot, agents and Cobalt Ridge's rule
Finance and operations apps include Copilot features that Microsoft builds and maintains, and they can be extended. In the extension course, Prudence had built a Copilot client plugin that let a user ask for a casting's inspection status in the Copilot side pane. In this clinic, the topic was the wider Power Platform: agents built in Copilot Studio that use finance and operations data through virtual tables, flows or connectors. Henrik's team had proposed an agent for the service desk that could answer coverage questions from distributors' emails and draft a claim for a person to submit.
Desmond reviewed the proposal against Cobalt Ridge's standing rule from the very first foundation sessions: agents may draft or submit, never post. The coverage answer was a read through the virtual table and the custom service, as the user who owned the agent's connection; that was fine, with the caveat that the connection should use a service account with the technician inquiry role, not a person's account. The draft claim was a record in a Dataverse staging table that a service desk agent reviewed and submitted through the claim operation; that was fine. A suggestion that the agent should approve small claims automatically was struck out, because approval was a posting-equivalent step reserved for people in the claim workflow. The agent design went into the register with those three decisions recorded.
Dividing work between makers and developers
The last part of the clinic was about people. Cobalt Ridge would have makers in operations and finance who built apps and flows, and a small development team led by Desmond. Without a clear split, makers would ask developers for every small change and developers would build things that makers could have built faster. Desmond proposed a split that Kiri adopted for the project's operating model. Developers own entities, actions, custom services, business events, security roles and the X++ rules that protect data. Makers own apps, flows, Power BI reports and agents built on what developers expose, inside managed solutions and environments with data loss prevention policies set by the Power Platform administrator. And every maker artifact that runs in production goes into a solution, has an owner, and appears in the integration register if it moves data between systems.
Environments, solutions and policies
Power Platform work at Cobalt Ridge would follow the same environment path as X++: built in a developer environment, tested in UAT, released to production. Each Dataverse solution had a publisher with the prefix cr, matching the X++ prefix, so that every custom table, column, flow and app was easy to recognize. Solutions were exported from the developer environment as unmanaged, kept in Azure Repos, and imported into UAT and production as managed, so that nobody could edit a production flow directly. Connection references inside solutions let the same flow use a test service account in UAT and the production one in production without editing the flow.
The Power Platform administrator also set data loss prevention policies for each environment. A policy groups connectors into business, non-business and blocked groups, and a flow or app cannot combine connectors from the business and non-business groups. For the production environment, the finance and operations connector, Dataverse, SharePoint, Teams and Outlook were business connectors; social media and personal storage connectors were blocked. That prevented, for example, a flow that copied warranty data to a personal cloud drive. Desmond asked Prudence to read the policy before designing any flow, because a design that depended on a blocked connector would fail at deployment rather than at review.
Testing what makers build
Makers test differently from developers, and the series did not pretend otherwise. Desmond proposed a light standard for anything that would run in production. Every flow that moves data has a test record in UAT that exercises its main path and its failure path. Every app over virtual tables is tested by a user who holds only the production role, not by the maker, because virtual tables run as the user. And every change to an entity that a maker artifact uses is announced in the register so the maker can test before the release. The plant scheduling flow passed all three in UAT, including a failure test in which the scheduling tool's API was switched off and the support mailbox received the email within a minute.
Worked problem
Choosing a pattern for a new request
Teodora Brisebois asks for a Teams notification to the quality engineers whenever a casting inspection certificate is recorded with a status of Waived, showing the purchase order, heat number and the person who waived it. What should be built, by whom?
Show solution
- The trigger is a business moment that already has an event: CRCertificateRecordedBusinessEvent, sent to Service Bus for the quality system.
- The same event can also be activated for a Power Automate endpoint by a maker subscribing to it in a flow, without changing the Service Bus activation.
- The payload has the purchase order, heat number and status, but not the person who waived the inspection; the flow can read that from the certificate through the virtual table or the connector, using the keys in the payload.
- A maker in quality builds and owns the flow, in a solution, running under a service account with read access to certificates.
Answer: A maker-built flow on the existing business event, filtered on Waived, reading the extra field by key, and posting to Teams. No developer work is needed unless the payload must change.
Common mistakes
MistakeRunning shared flows under a person's own connection.
InsteadUse a service account with a narrow role for flows that others depend on.
MistakePutting data protection rules only in a Power App.
InsteadPut rules that protect data in X++ on tables and entities, where every path enforces them.
MistakeLetting an agent approve or post transactions.
InsteadAgents may draft or submit; people approve and post.
MistakeBuilding maker artifacts outside solutions.
InsteadPut every production app, flow and virtual table in a Dataverse solution with an owner.
Summary and key terms
- The Power Platform integration pairs each finance and operations environment with Dataverse and makes virtual tables, dual-write, events in flows and Fabric link possible.
- Makers can reach finance and operations data through virtual tables, the Fin and Ops Apps connector, business event triggers and custom connectors.
- Connections run as a user, so shared flows need service accounts with narrow roles.
- Rules that protect data belong in X++; rules about one app's experience belong in the app.
- Agents built on finance and operations data follow the same rule as people's assistants at Cobalt Ridge: draft or submit, never post.
- Power Platform integration
- The pairing of a finance and operations environment with a Dataverse environment.
- Fin and Ops Apps connector
- The Power Platform connector with actions for entities and OData actions and a trigger for business events.
- Business event trigger
- A Power Automate trigger that subscribes a flow to a finance and operations business event.
- Custom connector
- A maker-defined connector, described by an OpenAPI definition, for calling an API such as a custom service.
- Embedded Power App
- A Power App added to a finance and operations page that receives context from the page.
- Service account
- A non-personal account with a narrow role used by shared flows and integrations.
Practice problems
Work each problem on paper first, then reveal the answer to check.
What happens in the business events catalog when a maker builds a flow with the business event trigger?
Show answer
An activation is created for the event and legal entity with the flow as an endpoint.
Why was editing customer addresses in an embedded app rejected?
Show answer
The customer form already owns that data with its validation; the app would duplicate it and could bypass rules.
Which part of Henrik's agent proposal was struck out, and why?
Show answer
Automatic approval of small claims, because approval is a posting-equivalent step reserved for people.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.