A step-by-step tutorial for building an email triage and morning digest system on the Microsoft 365 tenant you already have, with no third-party tools, no additional licenses, and no servers to maintain.
I wanted to write this one up because just about every executive we work with has the same complaint: too much email and not enough signal. Critical alerts get buried under vendor promos, and a ServiceNow change ticket ends up sitting between two Amazon receipts. The morning routine turns into 45 minutes of triage before any real work can start.
The good news is that if you have Microsoft 365, you already have the tools you need to fix this. In this post, I’m going to walk through the full pattern step by step, in a form you can actually build over a weekend.
Here’s what you’ll build:
- A real-time flow that classifies incoming email against business-owned rules, sends high-priority alerts, files messages into categorized subfolders, and logs to Power BI in under 30 seconds.
- A morning digest flow that fires at 7 AM every workday and sends one categorized email in place of manual triage.
- A live Power BI dataset that any dashboard can read from.
- Rules stored in SharePoint, so the business owns them instead of IT.
Reading time: ~10 minutes. Build time: ~4 hours if you’re comfortable with the Microsoft stack, or a weekend if this is new to you.
Prerequisites
Before you start, make sure you have:
- Microsoft 365 with Power Automate license (included in most business plans)
- A SharePoint site where you can create a list
- Power BI Pro or Premium capacity for the streaming dataset
- An Outlook mailbox you can automate against
- SharePoint site owner rights (or a friendly admin nearby)
The Design Decision That Matters Most
Before we start clicking, let’s talk about one architectural decision. In my experience, it’s the one that decides whether this system survives past its first month.
Put the rules in data instead of code.
The rules (which senders count as critical, which folder each category goes to, and whether an alert fires) will live in a SharePoint list, and business users edit the rows themselves. If they need to add a critical vendor, they edit a row. If they want to reclassify marketing, they edit a row. There’s no developer ticket and no flow redeploy.
I’ve found that if you skip this pattern, your nice automation tends to die off around six months in, once the business realizes every rule change needs an IT ticket. People stop asking, and the system slowly drifts out of relevance.
Step 1: Create the SharePoint Rules List
In your SharePoint site:
- Click New → List → Blank list.
- Name it
EmailRules. - Add these columns (Settings → List settings → Create column):
| Column | Type | Options |
|---|---|---|
| RuleName | Single line of text | Title column |
| Priority | Choice | Critical, High, Informational |
| MatchType | Choice | SenderEquals, DomainEquals, SubjectContains |
| MatchValue | Single line of text | — |
| TargetFolder | Single line of text | e.g., Critical/Internal |
| SendAlert | Yes/No | Default: No |
| IncludeInDigest | Yes/No | Default: Yes |
Add a few starter rows to test with:
| RuleName | Priority | MatchType | MatchValue | Alert |
|---|---|---|---|---|
| CEO | Critical | SenderEquals | ceo@yourcompany.com | Yes |
| CISA advisories | High | DomainEquals | cisa.dhs.gov | No |
| Chase alerts | Informational | DomainEquals | chase.com | No |
[Screenshot placeholder: SharePoint list showing the EmailRules columns and 3 sample rows.]
Step 2: Create the Power BI Streaming Dataset
The dataset gets one row for every classified email, and the real-time dashboards read from it.
- Go to app.powerbi.com and pick your workspace.
- Click New → Streaming dataset → API → Next.
- Name it
EmailEvents. - Add these columns:
| Name | Type |
|---|---|
| EventId | Text |
| ReceivedDateTime | DateTime |
| FromAddress | Text |
| Subject | Text |
| Priority | Text |
| Category | Text |
| MatchedRuleName | Text |
Toggle Historic data analysis to On (this keeps the rows around for reporting, not just for live tiles). Click Create. Copy the Push URL that shows up, since you’ll paste it into the flow in Step 4.
Step 3: Create the Outlook Subfolders
In Outlook, under your Inbox, create a folder tree that matches the TargetFolder values you plan to use:
Critical/InternalCritical/CustomerHigh/CyberInformational/BankingInformational/Marketing
Right-click Inbox → New Folder, and nest them as needed. Make sure the names match exactly. Power Automate is case-sensitive on folder paths, and the whole move step fails silently if a folder doesn’t exist.
Step 4: Build the Real-Time Alert Flow
This is the main part of the build.
- Go to make.powerautomate.com → Create → Automated cloud flow.
- Name it
Email - Real-Time Classifier. - Trigger: When a new email arrives (V3) — Outlook connector.
- Configure the trigger:
- Folder: Inbox
- Only with attachments: No
- Include attachments: No
Then add these actions in order:
Get the rules from SharePoint
- Action: Get items (SharePoint connector)
- Site: your site
- List:
EmailRules
Find a matching rule
Use a Filter array action against the SharePoint items:
From: value (output of Get items) Condition: item()['MatchValue'] equals triggerOutputs()?['body/from']
Then check length(body('Filter_array')) to see if a rule matched.
Post the event to Power BI
- Action: HTTP (or the Power BI – Add rows to a dataset connector)
- Method: POST
- URI: the Push URL you copied in Step 2
- Body: JSON matching the dataset schema exactly
[{
"EventId": "@{guid()}",
"ReceivedDateTime": "@{triggerOutputs()?['body/receivedDateTime']}",
"FromAddress": "@{triggerOutputs()?['body/from']}",
"Subject": "@{triggerOutputs()?['body/subject']}",
"Priority": "@{first(body('Filter_array'))?['Priority/Value']}",
"Category": "@{first(body('Filter_array'))?['TargetFolder']}",
"MatchedRuleName": "@{first(body('Filter_array'))?['Title']}"
}]
Send the alert (only if the rule says so)
- Wrap in a Condition:
first(body('Filter_array'))?['SendAlert']equalstrue - Yes branch: Send an email (V2) with Importance: High and Subject:
[CRITICAL] @{triggerOutputs()?['body/subject']}
Move the email to the target folder
- Action: Move email (V2)
- Message ID:
triggerOutputs()?['body/id'] - Folder:
Inbox/@{first(body('Filter_array'))?['TargetFolder']}— theInbox/prefix is required
Save the flow and turn it on.
Step 5: Build the Morning Digest Flow
- Create → Scheduled cloud flow.
- Name:
Email - Morning Digest. - Recurrence: Every day at 7:00 AM Eastern, weekdays only.
Then:
- Get emails (V3) — Folder: Inbox, Top: 100, Received time:
addHours(utcNow(), -24) - Get items — same SharePoint rules list
- Apply to each email — classify against the rules (same Filter array pattern from Step 4) and append the matched result to an array variable
- Get events (V4) from Outlook Calendar — Start:
startOfDay(utcNow()), End:endOfDay(utcNow()) - Compose an HTML string grouping the classified emails by Priority and adding a Calendar Items section from the calendar events. Handle empty sections with No emails found since last run.
- Send an email (V2) — To: the executive, Subject:
Morning Digest — @{formatDateTime(utcNow(),'MMMM dd')}, Body: the HTML, Is HTML: Yes
Step 6: Test End-to-End
- Send a test email from an address matching one of your critical rules.
- Within 3 minutes, check three things:
- The high-priority alert landed in the target inbox.
- The original message moved to the correct subfolder.
- A new row appeared in the EmailEvents Power BI dataset.
- Manually trigger the morning digest flow (the Run button in Power Automate). Open the digest email and check that the grouping and the calendar section look right.
Common Gotchas
Nothing happens for 3 minutes. The V3 trigger polls, it doesn’t push, so anything under 3 min is normal. If it’s longer than that, the flow is off, it’s being throttled, or the trigger authentication expired.
Folder move fails silently. Make sure you include the
Inbox/prefix in the folder path, and remember it’s case-sensitive.Rule lookup returns nothing. The SharePoint connection may be authenticating as a service account that doesn’t have read permissions on the list. Re-authorize the connection and try again.
Power BI push returns 400. The row schema has to match the dataset schema exactly, column names included, and a missing column is a hard error.
Duplicate alerts. The V3 trigger can occasionally fire twice on quick retries. If this bites you in production, de-dupe with a lookup on your event log.
Extending the Pattern
We kept the pattern simple on purpose so you can grow it. A few ways to extend it:
- Teams alerts: replace the email alert action with Post message in a chat for a mobile-first workflow.
- Copilot Studio classifier: for messages that do not match a clear rule, add a call to a Copilot Studio agent trained on your organization’s email patterns.
- Power BI Copilot: publish a report on the EmailEvents dataset and let users ask conversational questions — “Show me spikes in cyber alerts this quarter.”
- Twilio SMS: for true after-hours urgency, add a Twilio connector to send SMS on Critical-priority matches.
- Dataverse instead of SharePoint: when volume grows past ~5,000 rules or you need transactional writes, migrate the rules list to Dataverse. The flow shape stays the same, and in my opinion it’s the better platform at that point.
The Payoff
Once it’s running:
- Morning triage drops from ~45 minutes to about 5.
- Zero critical alerts get missed.
- Every classification decision is auditable in Power BI.
- The business owns the rules, not IT.
- Zero incremental licensing cost.
When to Call Us Instead
With that said, if any of these apply to you, it’s really a project and not a weekend hack:
- Your organization needs formal ALM (dev → test → prod deployment).
- You need Dataverse for the rules from day one (higher volume, transactional writes).
- Compliance requires the classifier to be auditable to a regulatory standard.
- You want a Copilot Studio agent integrated on day one.
That’s where we come in. We’ve built this pattern for multiple clients now, and the production version comes with the ALM, security review, and Copilot integration.
If your executives are drowning in email and Outlook rules aren’t cutting it, feel free to get in touch.
