← All white papersBuild plan · November 2026

Pay Each Bill Once on Microsoft 365

Three lists and one flow that check every bill you are about to pay against the bills already in your accounts, and hold anything that looks paid twice or headed to a new bank account until you decide.

8 min read·Free to implement·Published by AI Pathway

Used by

  • Business Systems Analyst
  • Bookkeeper
  • Accounts Payable Officer

Most bills paid twice were entered twice: a reminder keyed in as a new bill, a supplier on two records, the same invoice with a new number. This plan runs one flow before each pay run. It compares every approved bill with the bills waiting and the bills paid in Xero, MYOB or QuickBooks, checks the supplier bank details, and puts anything that looks wrong in front of you in Teams with both bills side by side.

In short

  • What this is

    A build plan for the Duplicate Bill Hold standard on Microsoft 365. Three lists and one flow beside the accounts software you already run, Xero, MYOB Business or QuickBooks Online, connected through its own sign-in and only ever read.

  • The core rule

    The flow reads your accounts and writes holds into SharePoint. A held bill goes in the pay run only after a person's name is in DecidedBy.

  • What it does not do

    It never pays, approves, voids or edits a bill, never changes bank details, and never calls a bill clear when part of your accounts could not be read.

  • The hard part

    Cleaning up invoice numbers before comparing them, and remembering a pair you already released so the same weekly bill is not held every week.

Take the spec to Claude, ChatGPT or Copilot. The sentence to paste is one click away.

Want the whole thing by email?

This paper, plus the rest of the library. One click to stop them.

1. Before you start

Read the duplicate bill hold build standard first. It defines its objects, and the lists below are those objects with SharePoint types on them. Shared conventions are in building the standards on Microsoft 365.

Fill Settings with your accounts software, your pay run day and cutoff time, the window (30 days to start), how far back to read paid bills, and the person who works the holds. Run it for two pay runs before anyone relies on it, and compare the holds with what your bookkeeper would have caught.

Before you build the bank detail step, check that your connection can read supplier bank details. If it cannot, the flow marks every bill not checked for that rule until it can, rather than skipping it.

2. The lists, with their columns

For your developer. Show the fields for your developer
Site: DuplicateBillHold

LIST  Holds                 (one row per pair of bills a person has to look at, written by Flow 1)
  HoldKey         Text            indexed, REQUIRED. rule
                                  | both bill ids, sorted | other supplier id
  Rule            Choice          indexed, REQUIRED. same_invoice_number
                                  | same_amount_in_window | supplier_entered_twice | bank_changed | bank_shared
  BillA           Note            REQUIRED. the bill awaiting payment: supplier, contact id, invoice number, date, total, status, bank account
  BillB           Note            the bill it looks like, with its paid date; empty for bank_shared
  OtherSupplier   Note            bank_shared only: the supplier whose record holds the same account
  Fingerprint     Text            REQUIRED. each bill's total, invoice number and bank account when raised; a change raises it again
  Owner           Person          REQUIRED
  Decision        Choice          release | void
                                  filled by the person, never by a flow
  DecidedBy       Person
  DecidedOn       DateTime

LIST  RunLog                (one row per bill in scope per run)
  RunId           Text            indexed, REQUIRED
  BillId          Text            indexed, REQUIRED. the ledger's own id
  Result          Choice          indexed, REQUIRED. clear | held
                                  | not_checked
  HoldKeys        Note
  Reason          Note            for not_checked: what could not be read

LIST  Settings              (one row. A person keeps it.)
  Ledger          Choice          indexed, REQUIRED. Xero | MYOB Business
                                  | QuickBooks Online
  PayRunDay       Choice          REQUIRED. Monday | Tuesday | Wednesday
                                  | Thursday | Friday
  CutoffTime      Text            REQUIRED. bills entered after it wait for the next run
  WindowDays      Number          REQUIRED. rule 3: 30 unless the business changes it
  LookbackDays    Number          REQUIRED. how far back paid bills are compared
  Owner           Person          REQUIRED. who works the holds

The ledger is not in this site. The flow reads bills, paid bills and supplier records through the ledger's own connector and sign-in, writes holds and the run log here, and never pays, approves, voids or edits a bill or changes bank details.

Holds.HoldKey is read before every new hold, so a pair is raised once. DecidedBy is a person column the flow never fills.

3. Every rule, and what enforces it

The ruleEnforced byHow
Every approved bill checkedRunLog, one row per bill per runThe flow lists the bills awaiting payment entered before CutoffTime, leaves out drafts and bills awaiting approval, and writes a RunLog row for each one.
Same supplier, same number or same totalHolds, Rule same_invoice_number or same_amount_in_windowMatched on the supplier's contact id. Numbers upper-cased with spaces, punctuation and leading zeros taken out; totals equal to the cent within WindowDays.
A supplier entered twiceHolds, Rule supplier_entered_twiceThe same cleaned-up number and the same total on two different contact ids.
Bank details changed or sharedHolds, Rule bank_changed or bank_sharedThe supplier's account now against the account on its last paid bill, and against every other supplier's account. The Teams message reminds the person to ring a number already on file.
Never clear on a partial readRunLog.Result not_checked and ReasonA paid bills read that comes back cut short, or a bank detail read that fails, marks every bill not held as not checked with the reason.
Raised once, released stays releasedHolds.HoldKey and FingerprintThe flow skips a pair whose latest hold has the same fingerprint, decided or not, and raises it again only when a total, number or account changed.

4. The flow

For your developer. Show the fields for your developer
FLOW  Hold before paying                  (pay run day, before CutoffTime)
  read     Settings
  read     bills awaiting payment, entered before
           the cutoff; drafts and awaiting approval
           left out
  read     bills paid since cutoff - LookbackDays
           cut short -> every bill: not checked
  read     supplier records with bank details
           fails -> every bill: not checked
  each     bill in scope, against every other bill
           waiting and every paid bill:
             same contact id, same clean number
               -> same_invoice_number
             same contact id, same total, dates
               within WindowDays, number differs
               or missing -> same_amount_in_window
             other contact id, same clean number,
               same total -> supplier_entered_twice
           its supplier's account:
             not the account last paid to
               -> bank_changed
             on another supplier's record
               -> bank_shared
  each     hold found: HoldKey and Fingerprint
           latest hold for the key has the same
           Fingerprint -> skip
           otherwise -> one Holds row, both bills
  log      one RunLog row per bill:
           open hold -> held
           anything not read -> not_checked
           else -> clear
  post     to the owner in Teams: the holds, and
           for a bank hold, ring a number on file
  never    a write into the ledger

The flow has no step that writes to your accounts. Releasing or voiding is the person's, in the Holds list and in the accounts.

5. What the flow can reach in your Microsoft 365 and your accounts

The flow holds any bill that looks paid twice, or about to be paid to a new account, before the pay run. It reads the approved bills, the bills paid in the last few months and the supplier bank details, and compares each bill with the rest. You release or void each held bill, and anything it could not check comes to you marked not checked.

  • Your accounts software, through its own connector. Read bills, paid bills and supplier records. No write.
  • SharePoint, the DuplicateBillHold site. Contribute on Holds and RunLog; read on Settings.
  • Teams, a chat with the person who works the holds. One message per run with the holds and anything not checked.

How to cut it off. Turn the flow off. Revoke the connection on your accounts software’s own connected apps page and it stops reading.

6. The order to build it in

  1. Create the DuplicateBillHold site, the three lists and a read-only connection to your accounts as a service account.
  2. Build the flow and run it on last quarter's bills: any duplicates you already found should be held.
  3. Enter a test bill with a known paid bill's number typed differently, and check it is held with both bills.
  4. Run it again: no new hold.
  5. Release that hold, change the test bill's total, and run it again: it is raised once more.
  6. Turn off the paid bills read and run it: every bill not held is marked not checked.

7. Three traps specific to this build

Matching on the supplier's name

Two records called Bayside Plumbing and Bayside Plumbing Supplies are one supplier entered twice. Match on the contact id, and let the third rule catch the second record by its invoice number and total.

Comparing numbers as typed

INV-0042, inv 42 and 42 are the same invoice. Clean every number the same way before comparing, and keep the number as typed for the hold so the person sees what was entered.

A blank read counted as nothing to find

An empty list of paid bills from a connection that timed out looks the same as no paid bills. Treat a failed or cut-short read as not checked, never as clear.

8. Where the automation stops

  • Releasing or voiding each held bill, by name.
  • Ringing the supplier on a number already on file before releasing a bank detail hold.
  • Every bill marked not checked, before it goes in the pay run.
  • Merging a supplier entered twice, and fixing bank details on a supplier record.

The pass test. In a test file of your own accounts. Enter one duplicate for each of the five rules and a clean set of near misses, and run the flow. Every duplicate is held once with both bills and its rule, the clean set has no holds, and your accounts’ history shows no change. Run it again and nothing new is raised.

Related reading