Cloudek.Request a service session

AI operations

Power Automate Invoice Data Extraction: PDF Tables to SharePoint (No Third-Party OCR)

A cautious Power Automate design for extracting invoice fields into SharePoint, validating totals, handling exceptions and checking current AI Builder licensing.

Treat extracted invoice fields as a draft

An invoice flow can remove repetitive typing, but a correctly parsed number is not necessarily a correct payable. A robust design stores AI output as a draft, validates it against deterministic rules, and asks an authorised person to compare it with the original document before approval. This guide is part of the Power Automate AI for IT operations series.

Use invoice data extraction to prepare a review record, and treat invoice validation as a separate control owned by finance. The extraction step transcribes fields; validation determines whether they agree with policy and source evidence.

The pattern below uses a SharePoint document library as the intake point and a SharePoint list as a review queue. It uses Microsoft AI Builder invoice processing or a suitable document processing model in Power Automate. “No third-party OCR” means this example does not call an outside OCR vendor; it does not mean the document is processed locally. Check current Microsoft product terms, region, data handling and licensing before using financial documents.

Before building

Decide who owns each stage. A finance owner defines which fields are needed and who can approve them. A Power Platform maker owns the flow and its connections. An administrator confirms environment policies, capacity and data handling. A records owner sets retention for the source file, extracted draft, approvals and run history.

Write down an allowed field list before testing:

FieldExample typeValidation idea
Supplier nameTextMatch an approved supplier record; do not create one from model output
Invoice numberTextRequired; preserve leading zeroes
Invoice dateDateValid calendar date and within an expected range
CurrencyFixed codeMust be in the organisation's allowed list
Net, tax and totalDecimal valuesCheck arithmetic, sign and permitted tolerance
Purchase orderText or nullMatch an open order if required
Reviewer statusFixed choiceAlways begins as Needs review

This is a schema proposal, not a statement about the exact output fields of every AI Builder model. Confirm the model's current output shape in the maker portal and map only the fields it actually returns. Keep unknown properties out of the list instead of storing the entire raw response.

Flow outline

  1. Trigger: When a PDF is created in a restricted intake library.
  2. Filter: Allow only expected file types and enforce your own file-size and page-count limits.
  3. Extract: Call the documented invoice-processing or document-processing action.
  4. Validate: Check required fields, types, totals, currency and supplier lookup.
  5. Draft: Create a SharePoint review-list item with status Needs review and a link to the source document.
  6. Approve: Notify the assigned finance reviewer using the organisation's approved process.
  7. Record: After approval, send the validated result to the finance system using a separate, controlled action.
  8. Handle failure: Route timeouts, unsupported documents, missing values and inconsistent totals to a person.

For the initial version, stop at step 5. Run it in a non-production environment with synthetic invoices and confirm that the output, access controls and retention are correct before integrating a finance system.

Set up the SharePoint intake and review list

Create a document library with restricted membership and a review list whose columns are explicit. Useful columns include source document link, supplier reference, invoice number, date, currency, net, tax, total, extraction state, validation warnings, reviewer, decision and timestamps. Do not create a generic Raw AI Output column unless the data owner has justified and protected it; raw responses can contain more information than the review needs.

Use a generated correlation value from the flow to connect the list item to run history. Do not include a person's email or invoice contents in that correlation value. Ensure the service identity can access only the intake and review locations it needs. Verify permissions with a test account, not only with the flow owner's account.

Extract and map fields

Microsoft's invoice processing documentation describes how to use a prebuilt invoice processing model in a flow. The exact action label and returned schema can change, so select the current documented model in your environment and inspect the dynamic content offered by the designer. Map each desired field explicitly. Do not paste an assumed JSON path from a different version of the action.

If you use a custom document processing model instead, confirm which fields were included in training, what confidence information it returns, and how it handles tables or multiple pages. Keep the model identifier and version in your design record. A missing field should remain missing and trigger review, not be inferred from the supplier name or another invoice.

Treat the file name and document contents as untrusted. Do not allow text in an invoice to change the destination, approval policy or action sequence. File names should not become list column names, site paths or email recipients.

Validate before writing the draft

Use a Condition or equivalent deterministic checks before creating the review item:

  • Required fields exist and have the expected type.
  • Date values parse to valid dates and are not outside your process window.
  • Currency belongs to a fixed allowed list.
  • The supplier resolves to a known supplier record where policy requires it.
  • Net plus tax equals total within an explicitly chosen rounding tolerance.
  • A purchase order matches an open order when a PO is required.
  • Repeated invoice numbers are flagged for a person rather than silently duplicated.
  • Confidence information, if the selected model provides it, meets a finance-approved threshold.

The threshold and tolerance belong to the finance process owner. Do not choose them because a demo looks tidy. If the model does not return field confidence, use a stricter review rule rather than inventing a score.

Make the write idempotent where possible. A flow retry should not create two review items for the same document. One approach is to maintain a unique external reference from the source document and check for an existing draft before writing. The exact implementation depends on the SharePoint list design; test duplicate trigger delivery and a timeout after the item was created.

Approval card and review experience

The reviewer should see the extracted draft next to the source document, plus each validation warning. The approval should be a real business decision, not a generic “approve AI” button. Include the supplier, invoice number, date, currency, amounts and purchase-order match state. Link to the document using permissions that the reviewer already has; do not attach it to a broad channel by default.

On rejection, keep the item in a state that supports correction and document why it was rejected. Do not ask the model to silently retry a changed field. A correction by finance should be distinguishable from the original extraction so later reviews can see what was changed by a person.

The AI Builder licensing guide explains how to count document pages, actions and retries without inventing a price. Check the current capacity in the correct environment before connecting a real intake library.

Exceptions and rollback

FailureSafe outcome
Unsupported or unreadable PDFCreate a manual-review task without guessed values
Missing required supplier or totalMark Could not extract and ask finance to enter it
Totals do not reconcileShow the difference and hold for review
Duplicate invoice numberFlag a potential duplicate; do not auto-delete either record
Action timeoutCheck whether the item was already written before retrying
Capacity unavailableStop automated extraction and route the document to manual processing

Keep the first release reversible: the flow should create only a draft review record. Turning off the flow stops new drafts; it does not remove the source files or already-created list entries. Document how to identify and review those items before changing the flow's permissions or deleting data.

Before expanding beyond a pilot, review list permissions with an account that should not see invoices. Confirm that it cannot read source-document links, extracted amounts or reviewer comments. Also verify that deleted or rejected records follow the finance retention schedule. A flow may be read-only during testing while still creating list items, so describe the actual side effect accurately and clear test data only through the approved process.

Monitor exceptions by category and count: unreadable files, missing fields, arithmetic mismatches, duplicate warnings and action failures. Avoid placing the supplier name or invoice values in a general alert. A weekly count can show whether the process is stable without broadcasting financial details to a wide audience. Investigate a rising exception rate before increasing throughput; it may indicate a changed invoice layout or a mapping error rather than an AI model issue.

Data handling and licensing

An invoice can contain names, addresses, bank details and commercial terms. Confirm which service processes the document, what environment and region apply, who can view run history, and how long both source and extracted data are retained. Use a separate test environment with synthetic documents for development. Do not paste customer invoices into public prompt tools or use them as examples in training material.

Microsoft's AI Builder credit-management guidance has changed during 2026. Check the current page and the organisation's admin centre before estimating capacity. Count expected invoices, pages, actions, retries and peak volume. Do not rely on a historical price or assume that seeded capacity is still available. If the flow cannot use its required capacity, keep the manual process rather than repeatedly retrying the model.

Summary

Use Power Automate AI to prepare invoice fields for review, not to declare a payable approved. Keep the original document protected, validate every value, reconcile totals, and route every exception to a person. Start with a draft-only flow using synthetic test files, verify the current model output and licensing, and add a finance-system action only after its own approval and audit controls are ready.

Microsoft sources checked on 24 November 2026: Invoice processing in a cloud flow and AI Builder credit management.

Frequently asked questions

Does a Power Automate invoice flow need a separate OCR vendor?

Microsoft documents invoice-processing capabilities in AI Builder. That does not mean the document stays on a local device: check the current service and data-processing terms for the environment before sending financial documents.

Can extracted totals be written straight to a payable list?

Do not treat extraction as approval. Validate arithmetic and supplier data, then route the record to an authorised reviewer before it becomes an approved payable item.

What should happen when a field is missing?

Set the item to manual review. Do not fill a missing invoice number, date, supplier or total with a model guess.

How do I estimate AI capacity?

Count expected invoices, pages, model actions and retries, then check current consumption and capacity with the administrator. Do not use a historical price as a quote.

Was this helpful?