MSBA-252 · Lesson 1 of 12 · 22 min

Process mining and discovery

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

The finance office at Lumenvale Community Colleges sits on the second floor of the Downtown campus, across the hall from the registrar's office where Maribeth Ferreira-Quon built her transcript solution. In September 2026 its accounts payable supervisor, Ysaline Dabrowski, came to Rupert Ellingsworth's Tuesday Power Platform clinic with a complaint that sounded simple. Suppliers were phoning to ask when they would be paid. Her four clerks spent their mornings searching a shared mailbox, a spreadsheet and the college's old finance system, LedgerPoint, to find out. About 1,800 supplier invoices arrived each month, nearly all as PDF attachments sent to one mailbox, and the college's own payment policy promised payment within 30 days. Roughly a third of invoices missed that promise.

"Can Power Automate fix it?" she asked. Rupert's answer became the theme of this course: probably, but not until we know where the time goes. Automating a process you do not understand usually makes a slow process fail faster. This first lesson is about finding out what actually happens before anyone builds a flow. The rest of the course follows Lumenvale's invoice project from that first conversation to a working, governed solution, and lesson 12 brings every piece together as a case study.

A note on the exam. This course belongs to the AB-410 program, Microsoft's Building Intelligent Applications exam. Its current study guide, with skills measured as of December 18, 2026, gives the largest share of the exam, 40 to 45 percent, to building business application logic and automation: creating cloud flows, managing approvals, consuming prompts and AI models in flows, and configuring business process flows. Those objectives are covered in lessons 2, 3, 4 and 7. Several other lessons, including this one on process mining and the lessons on desktop flows, agent flows and governance, go beyond what AB-410 tests. They are here because no one automates a real business process well without them.

Why discovery comes first

Every automation project starts with a picture of the process in someone's head. Ysaline's picture was clear: an invoice arrives, a clerk enters it in LedgerPoint, the budget holder approves it, and the payment run pays it. The picture was not wrong, but it was incomplete. It did not show the invoices that arrived twice, the ones with no purchase order number, the ones approved by email and never recorded, or the ones that sat in a budget holder's inbox for three weeks while that person was on leave. Those exceptions are where most of the delay and most of the frustration live, and they are exactly what a quick build tends to miss.

There are three broad ways to discover how a process really runs. You can ask people, through interviews and workshops, which is quick and captures reasons but is shaped by memory and by what people think should happen. You can watch people work, either directly or by recording their steps on screen, which captures detail but takes time and covers only the cases you happen to see. And you can read the data that systems already record each time work moves from one step to the next, which covers every case but tells you only what was recorded. Good discovery uses all three. Process mining is the name for the third, and it is the part software can do for you.

Three ways to discover how a process runs. Each covers the gaps of the others.
MethodWhat it captures wellWhat it misses
Interviews and workshopsPurpose, rules, pain points, reasons for exceptionsFrequency and timing; steps people forget or skip
Observation and task recordingExact clicks, screens and copy-paste work at a deskRare cases; work that spans days or people
Process mining of event logsEvery case, real paths, waiting times, reworkSteps that leave no record; the reasons behind them

What process mining is

Process mining examines an event log: a table in which each row records that a particular activity happened to a particular case at a particular time. From thousands of rows it reconstructs the paths that cases actually took and draws them as a process map, with boxes for activities and arrows for the transitions between them. Because every case is counted, the map shows how often each path occurs and how long cases wait between steps. It replaces "I think most invoices go like this" with "71 percent of invoices go like this, and the rest take one of 40 other paths".

An event log needs three things at minimum. A case ID identifies each instance of the process, such as an invoice number. An activity name says what happened, such as Invoice received or Approved. A timestamp says when. Optional columns, called attributes, add context such as the campus, the supplier, the amount or the person who did the step, and they are what make the analysis interesting, because they let you filter and compare.

Five rows of an invented event log for one invoice. Each row is one activity for one case.
Case IDActivityTimestampCampusAmount band
INV-24017Invoice received2026-08-03 08:14LakeshoreUnder 1,000
INV-24017Entered in LedgerPoint2026-08-05 10:40LakeshoreUnder 1,000
INV-24017Sent for approval2026-08-05 10:42LakeshoreUnder 1,000
INV-24017Approved2026-08-19 16:05LakeshoreUnder 1,000
INV-24017Paid2026-08-21 09:00LakeshoreUnder 1,000

Kwabena Asante-Lowe, the institutional research analyst who sits in Rupert's Centre of Excellence hub, did the extraction. LedgerPoint had no connector, but its nightly reporting database could export invoice status changes to a file. The shared mailbox contributed a received time for each attachment, and the approvals that budget holders gave by email were matched to invoices by number where possible. The result was an event log of about 21,000 rows covering six months of invoices, with case ID, activity, timestamp, campus, supplier category and amount band.

Process mining in Power Automate

Microsoft's process mining tools are part of Power Automate. In the Power Automate portal, Process mining lets a maker create a process from an event log, connect it to a data source, and analyse the result. Event data can come from a file, from Dataverse, from Azure Data Lake Storage or from other sources through Power Query, which is the same data-shaping tool used in Power BI and in dataflows. After the data is mapped, so that the tool knows which column is the case ID, which is the activity and which is the timestamp, it builds the process map and a set of standard analytics.

Microsoft has invested heavily in this area. Its 2026 release wave 1 plan lists an object-centric approach to process mining, which handles processes in which one event touches several kinds of object, such as an order, its invoices and its deliveries, as generally available from June 2026. The same plan lists a newer "process intelligence experience" for analysing processes, also generally available from June 2026, custom KPIs in that experience from July 2026, and export of object-centric process mining data to a Microsoft Fabric semantic model for further reporting. You do not need to memorize those names; the point is that discovery is a first-class part of Power Automate, not an afterthought.

Power Automate also includes task mining, which records the steps a person takes on a Windows computer for a particular task, such as entering an invoice in a desktop application, and studies many recordings to show where time goes and which steps are repeated. Task mining answers a different question from process mining: not "where does the invoice wait?" but "what exactly does a clerk do for the ten minutes it takes to enter one?" It is especially useful before building a desktop flow, the subject of lesson 5.

A process map with boxes Invoice received, Entered in LedgerPoint, Sent for approval, Approved and Paid connected left to right, labelled with case counts and median waits. A loop from Sent for approval back to Entered in LedgerPoint is labelled rework, and the wait before Approved is highlighted as the longest at 9.5 days median.
A simplified version of Kwabena's process map. The longest wait was for approval, and one invoice in seven looped back for rework.

Reading a process map

A first process map often looks like a plate of spaghetti, because every rare path is drawn. The tools let you simplify it by showing only the most common paths, then add detail gradually. Kwabena started with the paths that covered 80 percent of cases and asked three questions of the map. Where do cases wait the longest? Where do they loop back? And which paths are rare but expensive?

The answers surprised Ysaline. Data entry itself was not the problem: once a clerk opened an invoice, entering it took a few minutes. The longest wait, a median of nine and a half days, was between Sent for approval and Approved. The second was the time an invoice sat in the mailbox before anyone opened it, a median of two days, which jumped to five days in the weeks after the monthly payment run when clerks were busiest. And about one invoice in seven looped from approval back to entry, usually because the purchase order number was missing or did not match. Each of those loops added about a week.

Variants are the distinct paths cases take. The most common variant at Lumenvale covered about 61 percent of invoices and was the tidy path in Ysaline's head. The next five variants covered another 25 percent and all involved rework or a second approval. A long tail of rare variants covered the rest. Variant analysis matters for automation because you usually automate the main variants first and design how exceptions leave the automated path, rather than trying to automate every rare case on day one.

Root cause analysis compares cases that took longer with those that did not, across attributes. Kwabena found that invoices from the trades programs at Lakeshore were much slower to approve, not because the approvers there were slower, but because those invoices more often had no purchase order: the trades shops bought supplies on account from local suppliers. That one insight changed the design. The flow would have to handle invoices without purchase orders, routing them to the right budget holder by supplier and campus, rather than assuming every invoice could be matched automatically.

Worked problem

Turning a map into automation candidates

Kwabena's map shows: a two-day median wait before an invoice is opened; a nine-and-a-half-day median wait for approval; one invoice in seven looping back for a missing or mismatched purchase order; and about 4 percent of invoices received twice. Which of these are good candidates for automation, and what kind of automation?

Show solution
  1. Wait before opening: a cloud flow triggered when an email with an attachment arrives can save the file, extract its fields and create a record immediately, removing the queue entirely.
  2. Wait for approval: an approval flow can route to the right person in Teams and Outlook, send reminders and escalate after a timeout. Process mining cannot shorten a manager's decision, but it can remove the days spent waiting for the request to be noticed.
  3. Rework loop: extraction plus a lookup against open purchase orders can catch missing or mismatched numbers at intake and route those invoices to a person before approval, instead of after.
  4. Duplicates: a check for an existing record with the same supplier, invoice number and amount can flag duplicates before they reach approval.

Answer: All four are candidates, but each needs a different tool: an automated cloud flow for intake, document processing for extraction, an approval flow for decisions, and a duplicate check built from flow logic. The map also tells you the order: intake and the approval wait together account for most of the delay, so they come first.

From discovery to a backlog

Discovery ends with a short, prioritized list of what to automate. A useful way to score each candidate is to estimate four things: volume (how many cases a month), effort per case (minutes of human work), delay (how much elapsed time it adds) and risk (what happens if the automation gets it wrong). High volume, high delay and low risk make a strong first candidate. Low volume and high risk usually stay manual, at least at first.

Lumenvale's scoring of automation candidates after discovery.
CandidateVolumeEffortDelayRiskDecision
Intake from mailboxHigh (1,800 a month)MediumHighLowAutomate first
Approval routing and remindersHighLowVery highLowAutomate first
Field extraction from PDFsHighMediumMediumMedium (errors)Automate with human review of low-confidence results
Entry into LedgerPointHighMediumLowMediumAutomate later with a desktop flow
Supplier dispute handlingLowHighMediumHighKeep manual; give staff better information

The list deliberately includes things that will not be automated. Supplier disputes are rare, varied and sensitive, so they stay with people. The automation's job there is to give the clerk everything about the invoice in one place, not to make decisions. Being explicit about what stays manual is part of good process design, and it reassures the people whose work is changing.

Discovery also sets a baseline. Before the project, Lumenvale paid 66 percent of invoices within 30 days, clerks spent roughly 35 hours a week on status enquiries and searches, and the median time from receipt to payment was 24 days. Writing those numbers down now means the team can show later whether the automation worked. Kwabena saved the process mining analysis so the same map could be rebuilt from new data after go-live and compared side by side.

People and change

Process mining shows where work waits, and it is tempting to read a slow step as a slow person. That reading is usually wrong and always damaging. The approval wait at Lumenvale was not caused by careless managers; it was caused by approval requests that arrived as forwarded emails with attachments, mixed in with hundreds of other messages, with no reminder and no way to see what was waiting. Rupert insisted that the analysis be presented by process step and attribute, not by named individual, and that Ysaline's clerks and two budget holders see the map before anyone else. Their comments added the reasons the data could not show, and they became the project's strongest supporters.

Privacy rules apply too. Event logs often contain personal information, such as the names of people who performed steps, and task mining records what appears on screen. Lumenvale's privacy officer, Dr. Philippa Ondaatje-Ruiz, reviewed the extraction plan, and the team removed staff names from the log before analysis, keeping only roles. Task mining recordings were made only with the clerks' agreement, on test data, for a defined period.

Common mistakes

  • MistakeBuilding a flow from the process as people describe it, without checking the data.

    InsteadCombine interviews with process mining of real event logs to see every path, including exceptions.

  • MistakeTrying to automate every variant at once.

    InsteadAutomate the main variants first and design clear exits for exceptions.

  • MistakeReading a slow step as a slow person.

    InsteadAnalyse by step and attribute, and ask the people involved for the reasons behind the data.

  • MistakeStarting without a baseline.

    InsteadRecord volume, cycle time and effort before building so results can be measured later.

Summary and key terms

  • Discover how a process really runs before automating it, using interviews, observation and process mining together.
  • Process mining reads event logs with a case ID, an activity and a timestamp, plus optional attributes, and draws a process map.
  • Process maps show the common paths (variants), waiting times between steps and rework loops.
  • Power Automate includes process mining for event logs and task mining for desktop steps; Microsoft extended both in 2026.
  • Score candidates by volume, effort, delay and risk, and record what will stay manual.
  • Set a baseline before building so the results can be measured.
  • Present findings by process step, not by person, and protect personal data in event logs.
Process mining
Analysing event logs to reconstruct and measure how a process actually runs.
Event log
A table of events, each with a case ID, an activity and a timestamp.
Case ID
The identifier for one instance of a process, such as an invoice number.
Process map
A diagram of activities and transitions built from an event log.
Variant
One distinct path that cases take through a process.
Task mining
Recording and analysing the steps people take on their computers for a task.
Baseline
Measurements of a process before change, used to judge the results.

Practice problems

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

  1. What three columns must an event log contain?

    Show answer

    A case ID, an activity name and a timestamp.

  2. What did Kwabena's process map show was the longest wait?

    Show answer

    The wait for budget holder approval, with a median of nine and a half days.

  3. How does task mining differ from process mining?

    Show answer

    Task mining records desktop steps for one task; process mining examines events across a whole process from system logs.

  4. Why did the team keep supplier disputes manual?

    Show answer

    They were rare, varied and high risk, so automation would add little value and could do harm.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz