When a forensic practice came to us, they had a growing problem. Their team was managing an increasing number of cases โ quotes, instructions, expert reports, and a constant stream of client emails โ across a combination of a shared drive, Outlook folders, and a spreadsheet acting as a case register. Nothing was findable. Emails were being missed. Cases were slipping between the cracks.
Eighteen months later they have a SharePoint-led operational platform with eight Power Automate flows running in production. Here's exactly what we built and how we built it.
Before designing anything, we mapped the business process. A forensic practice operates in two phases for each engagement: the quote phase (a potential instruction being evaluated) and the case phase (a confirmed instruction being worked). Every document, every email, every action ties back to one of those two states.
What they needed from SharePoint:
The system is built on four main components, all within a single SharePoint site:
Power Automate flows are what make the system operational rather than just a better filing cabinet. Here's each one:
Triggered when a new record is created in Leads Data. Queries the existing list to find the highest current reference number, increments it, and writes the new reference back to the record. Concurrency controls prevent duplicate references when multiple quotes are created simultaneously.
Runs daily on a schedule. Calculates the number of days since each open quote was created and updates the Quote Age column. Feeds the KPI dashboard and flags quotes that have gone stale โ prompting follow-up before they're lost.
This is the central flow โ the most complex and the most important. When a lead is marked as won in Leads Data, the flow:
The email system operates in two stages. Flow 5 monitors the shared mailbox and captures every incoming email to the Email Filing Review list โ extracting subject, sender, received date, and critically the Internet Message ID. This unique identifier is what allows us to track the email after it's moved between Outlook folders.
Flow 6 then handles enrichment and filing. It reads the Quote Reference from the email subject line, looks up the corresponding case, enriches the record with Case Reference and Client Name, and moves the email's SharePoint representation to the correct subfolder in Active Case Files.
When any document is uploaded to Active Case Files, a flow reads the folder path โ which contains the Case Reference and Instruction Type in its structure โ and writes those values to the document's metadata columns. Staff get correctly tagged documents without doing anything manually.
A companion flow extracts date information embedded in document filenames and populates a Document Date column. This enables date-sorted views in SharePoint without anyone needing to rename files or enter dates manually.
Every flow was tested in a development environment with test data before being promoted to production. The lead-to-case conversion flow was tested for both the clean path (new case, no duplicates) and edge cases (duplicate reference attempt, missing data, Trello API failure). Each failure scenario was tested to confirm the failure log was written correctly and no partial records were created.
Production uses a dedicated service account with the minimum permissions required. The flows run under this account rather than a named user's credentials โ so they don't break when someone leaves or changes their password.
We build SharePoint platforms and Power Automate flows for professional services firms. Book a free consultation to discuss your requirements.
Book Free Consultation โ