How to Set Up Invoice Capture in D365 F&O
Accounts payable is still one of the most manual areas in many Dynamics 365 Finance & Operations (D365 F&O) implementations. Vendor invoices arrive as documents, and someone has to read each one and enter it in the system. Invoice Capture in D365 F&O is Microsoft’s standard answer to that problem: it reads incoming invoices with OCR, validates them and creates the vendor invoice for you.
In this guide, I’ll walk you through the full setup: the architecture, roles and licensing, the prerequisites, installing the solution, connecting an Outlook channel, the core configuration, how invoices are reviewed and transferred, and how to extend the solution with a custom AI model, financial dimensions and custom fields.
The Problem Worth Solving
The business requirement in our scenario is simple to state: automate the import of vendor invoices into D365 F&O instead of entering them by hand.
Invoice Capture is a standard Microsoft solution built for exactly this. It uses OCR to extract the invoice data and imports it into D365 F&O. The extraction is done by an AI model, and you can train that model with example invoices, so it becomes the brain that reads the data from every incoming document.
Every step below maps back to this scenario: invoices arrive in an Outlook mailbox, Invoice Capture reads and validates them, and they end up as vendor invoices in D365 F&O.
What Is Invoice Capture in D365 F&O?
Before configuring anything, it helps to see how the pieces fit together. The major components of the solution, and the path an invoice takes through them, are shown in the diagram below.
Reading it from left to right: invoices arrive through a channel such as Microsoft Outlook, SharePoint or OneDrive. Power Automate picks them up, AI Builder extracts the data, and the captured invoices are reviewed in a Power Apps application backed by Microsoft Dataverse. From there, they are transferred to D365 F&O as vendor invoices.
For our scenario, this means nothing has to be built from scratch. The channel, the flow, the OCR model and the review app all come with the solution. Our job is to install and configure them.
Roles and Licensing
The following table shows the roles that are required to set up and use Invoice Capture.
| Role | Actions | Systems | Role names |
|---|---|---|---|
| Administrator | Set up environments in Power Platform. Deploy solutions in Power Platform. Set up connections between D365 and AI Builder. Set up Azure Data Lake Storage locations. Install Invoice Capture. | D365 Finance Power Platform Azure Data Lake Storage | Dynamics 365 administrator Power Platform Administrator Storage Blob Data Owner |
| Environment maker | Create custom AI models and create flows in Power Automate. | Power Platform | Environment maker |
| AP admin | Set up and configure Invoice Capture. | Invoice Capture in Power Platform D365 Finance | Accounts payable admin InvoiceCaptureOperator |
| AP clerk | Review and correct captured invoices in Invoice Capture. | Invoice Capture in Power Platform D365 Finance | Accounts payable clerk InvoiceCaptureOperator |
Besides the Accounts payable clerk and Accounts payable manager roles, the InvoiceCaptureOperator role must be included in the role settings. Without it, the derivation and validation logic in Invoice Capture can’t run, and the invoice can’t be transferred to D365 F&O. For the touchless scenario, the role also has to be assigned to the flow user on the D365 F&O side.
The Environment maker role is required for the Accounts payable admin if they are the one creating the channels in Invoice Capture. Assign all of these roles after the solution is installed in the environment.
Licensing
To use Invoice Capture, D365 Finance customers need to consider three additional cost items:
| License | What to know |
|---|---|
| Power Apps license (per user) | Only needed for users who don’t have a full D365 Finance license. Those users need a Power Apps license to open Invoice Capture, plus the InvoiceCaptureOperator role in D365 F&O. |
| Azure Data Lake Storage and Dataverse storage | Normally no extra Azure Data Lake Storage subscription is needed if the entitled 20 GB Dataverse file capacity is enough to store the original invoice documents. That capacity is shared with other apps, so you may need to buy more. The same applies to Dataverse database storage (10 GB by default), which holds the captured invoice data. |
| Invoice processing fee | D365 Finance customers are entitled to 100 invoice capture transactions per tenant per month. Additional transactions are bought as the Electronic Invoicing SKU, at 300 USD for 1,000 transactions per tenant per month. |
Important: Transaction capacity is use-it-or-lose-it on a monthly basis. Unused transactions don’t roll over, so you need to purchase for your peak month.
Prerequisites
Before you can install the Invoice Capture solution, these requirements must be in place:
Requirements
• D365 Finance version 10.0.33 or later. Invoice Capture 1.1.0.10 and later needs at least build 10.0.1591.124 on 10.0.34, build 10.0.1627.86 on 10.0.35 or build 10.0.1695.28 on 10.0.36.
• The feature Invoice capture for Dynamics 365 Finance is enabled.
• The Power Platform environment is created.
• The finance and operations virtual entity is installed in the Power Platform environment.
• Enable Finance and Operations User Impersonation in Dataverse is turned on in the Power Platform environment settings. Do this before you open Invoice Capture from the D365 F&O tile for the first time.
Invoice Capture officially supports only integrated Power Platform environments. In an integrated environment, the finance and operations virtual entity is already installed.
Confirm the Virtual Entity Is Installed
- In the Power Platform admin center, go to Environments and open the Environment details page.
- Select Resources > Dynamics 365 apps.
- Confirm that Finance and Operations Virtual Entity appears in the list with the status Installed.
Enable the Feature
In D365 F&O, open Feature management and enable Invoice capture for Dynamics 365 Finance. This is the entry point for everything that follows.
Step 1 - Configure Invoice Capture in D365 F&O
Once the feature is enabled, a new menu appears under Accounts payable > Setup > Invoice capture.
Complete this setup before you install the solution:
- Synced legal entities: decide which legal entities you onboard.
- Attachments: decide whether the invoice file is transferred together with the invoice from Invoice Capture. When this parameter is enabled, the Document type column in Synced legal entities is enabled and defaults to the value of the File field under Organization administration > Document management > Default document types. You can select another document type from the list.
- Invoice type mapping: maintain the mapping between the invoice type in Invoice Capture and the invoice framework used to create it in D365 F&O. The current version supports these options:
| Invoice type in Invoice Capture | Invoice framework in D365 F&O |
|---|---|
| PO invoice | Vendor invoice |
| Header-only invoice | Vendor invoice |
| Cost invoice | Vendor invoice or Invoice journal |
When you choose Invoice journal, the Invoice journal name column in Synced legal entities is enabled and the default journal name is assigned. You can select another journal name to control which journal is used to create cost invoices in D365 F&O.
The Document type and Invoice journal name columns are available from version 10.0.39.
Step 2 - Install the Invoice Capture Solution
Since release 10.0.38, D365 F&O has an Invoice capture tile on the home page. The feature Invoice capture for Dynamics 365 Finance and Operations decides whether the tile is displayed.
If Invoice Capture isn’t installed yet in the integrated Power Platform environment, the tile takes you to the install page. Once it’s installed, the tile opens the Invoice Capture home page.
To install the solution:
- In AppSource, search for Invoice Capture for Dynamics 365 Finance, or open the listing here.
- Sign in and choose Free trial.
- Review and confirm the terms of use, then choose Get it now again.
- You are redirected to the Power Platform admin center in the same tenant. Select the environment where you want to install the solution.
The solution installs in the background. Wait a couple of minutes, and you will see the installed solutions in the selected environment in Power Apps.
Step 3 - Sync Legal Entities and Vendors
After installation, open the Invoice Capture app and go to Setup system > Manage legal entities and Manage vendors to sync the entries from D365 F&O.
Legal entities and vendors are the two types of master data Invoice Capture uses to classify incoming invoices, so this sync is the foundation for everything that follows.
Notice the highlighted Manage legal entities and Manage vendors entries in the menu, and the sync button at the top right that pulls the records from D365 F&O.
Step 4 - Create an Outlook Channel
Channels determine which sources Invoice Capture receives invoices from. In our scenario, invoices arrive by email, so I’ll show you how to set one up for Microsoft Outlook.
In the Invoice Capture app, go to Manage channels and create a new channel.
Start from the highlighted Manage channels menu item and the New button.
Then configure the channel:
- Name and description. Identify the channel so it’s easy to recognize later.
- Use managed flow. Turn this on, so the Power Automate flow is created automatically when you save the configuration.
- File filter. Select the filters to apply to the files the flow extracts.
- Flow template. The most important setting, because it defines the source. In our case, Outlook 365.
Notice that Use managed flow is switched on and the flow template on the right points to Outlook. Together, they let Invoice Capture create the flow for you.
When you save, the flow is generated. Open it and complete the sign-ins it needs, such as the Outlook account and SharePoint connections. Once the flow is ready, go back to Invoice Capture and switch it on under Manage flow:
Step 5 - Configure System Preferences
After installation, Invoice Capture comes with default configurations, which you find under System preferences. These defaults might not fully meet your requirements, so you can create new settings and replace the default ones to fit your business.
| Setting | What it does |
|---|---|
| AI Builder model | Defaults to the prebuilt Invoice processing model, which handles the most common invoices in various languages. You can build your own model on top of it by uploading additional sample invoices, tagging the fields and training the model (see Use a Custom Invoice Model below). |
| Channel for file upload | The channel we created in Step 4. |
| File filter | Applies additional filtering to incoming files at the application level. |
| Configuration group | Used during invoice processing when no configuration group is set at the legal entity or vendor account level. |
| Use continuous learning | Turns on the continuous learning feature (see Step 7). |
| Auto invoice cleanup | Every day, automatically cleans up transferred and voided invoices that are older than 180 days. |
Manage Processing Rules
If the business requirement is complex, you might need processing rules. During processing, Invoice Capture applies derivation and validation rules to make sure the invoices are complete and correct. Some of these rules don’t apply to every customer, so additional parameters let you enable or disable that logic.
Manage File Filters
Manage file filters lets the admin define additional filters for incoming invoice files. Files that don’t meet the filter criteria are still received and appear in the Received files (Pending) list with the status Canceled. The AP clerk can review them and decide whether to void them and mark them obsolete.
This behaves differently from the filter in the flow behind the channel. Files that don’t meet the flow’s criteria never appear in the Received files list at all.
A default file filter is provided after installation. It can’t be edited or removed, so if you want different conditions, create a new filter and update the default setting.
Step 6 - Set Up Configuration Groups
Only the AP admin can access System preferences, Manage legal entities and Manage vendors.
Invoices from different vendors come in different styles and resolutions, so they may need different confidence score thresholds before a manual review is required. A vendor usually sends one type of invoice (a purchase order invoice or a cost invoice) in a consistent format. When a vendor sends both types, you might need separate display fields per type, and Invoice Capture applies derivation and mapping logic specific to each one.
The configuration group holds all of these review settings in one place.
The admin can assign configuration groups at three levels. Once the vendor account and legal entity are determined, Invoice Capture looks for a configuration group in this order:
- The vendor account.
- The legal entity, if the vendor has no group.
- The group in System preferences, if neither the vendor nor the legal entity has one.
To manage configuration groups, go to Setup > System setup > Manage configuration groups. To create a new one, select an existing group and select Copy. The copy appears in the list with the same values as the original for every setting except Group name and Group description.
Here you set up the fields you want per invoice type, and the confidence score thresholds that classify a value as an error, a warning or OK. You also decide when an invoice needs a manual review.
Mapping Rules (Optional)
Mapping rules bring basic master data from D365 F&O, so the information needed to create the vendor invoice is derived automatically. With mapping rules in place, the AP clerk checks the status instead of filling in every missing field by hand.
Invoice Capture already derives entity values in several other ways, so mapping rules aren’t mandatory. Maintain them only when your business process has specific requirements. There are four types:
- Legal entity
- Vendor account
- Item
- Expense type
Step 7 - Review Captured Invoices
With the channel running, invoices start to flow in. This is where the AP team works with them every day.
Dashboard
The dashboard includes charts that give an overview of the imported invoices. They help the AP manager analyze how the invoice generation process is performing, and filters let you drill down into the details.
Received Files
Manage invoices > Received files is the central place where invoice files from all sources arrive. In most cases, files are processed automatically without any manual intervention. When there are exceptions or errors, the user has to make sure every invoice file is accounted for, so nothing is missed.
Captured Invoices
When AI Builder recognizes an invoice and maps it to invoice fields, Invoice Capture automatically enriches it and validates it against the rules before converting it into a vendor invoice in D365 F&O. If the invoice is incomplete, or the confidence score of the recognition isn’t high enough, a manual review is required. All invoices are kept under Manage invoices > Captured invoices.
The Side-by-Side Viewer
The side-by-side viewer shows the original document and the invoice form next to each other. It uses Microsoft form recognition technology to fill the invoice fields with data extracted from the document, and links each field to its place in the original, so the reviewer can navigate with a single click.
When a field is linked to a value returned by AI Builder, an eye icon appears on its left. Select it, and the viewer highlights the matching value in the original document.
The screenshot labels the areas of the viewer: the original document on the left, and the messages, invoice header and invoice lines on the right.
Other features of the side-by-side viewer:
- Field-level messages. Errors and warnings appear as an icon to the right of the related field; select it to see the details. A message is always linked to a specific field, except when the invoice isn’t fully classified.
- Resizable layout. The interface can be resized to fit different invoice formats.
- Live lookups. Lookup lists are fetched from D365 F&O at runtime, so the values are always up to date.
- Adapts to invoice types. The interface is flexible and adjusts to the type of invoice being reviewed.
Start Manual Review
A captured invoice might need a manual review because of errors or warnings. In the side-by-side viewer, its status is Captured and its current version is Original version. You can only start the review once the header information (legal entity, vendor account and invoice type) is complete.
Select Start review. The status changes to In review and the current version to Modified version. The form switches to edit mode, so you can change field values and select the correct entity from the lookup lists.
Notice the highlighted Start review button at the top of the viewer.
Continuous Learning
To raise the touchless rate, continuous learning derives the legal entity, vendor account and item numbers based on the mapping from the last transferred invoice. It also extracts values from key-value pairs (KVPs) and assigns them to the matching invoice fields. For charges, it derives the charges code from the last matched record as well. You switch it on or off in Setup system > System preferences.
Step 8 - Transfer the Invoice to D365 F&O
Once the review is complete and the invoice has no errors, the last step is to send it to D365 F&O. Select Transfer, and the invoice is created in D365 F&O. If the transfer succeeds, the status of the captured invoice changes to Complete. If it fails, you get an error message.
There are two ways the transfer can happen:
- Manual. When the AP clerk selects Transfer, it runs in synchronous mode.
- Touchless. If the invoice doesn’t need a manual review (based on the configuration group), it moves to the Awaiting list. The process automation job Transfer invoices from invoice capture in D365 F&O picks up these invoices regularly and processes them.
After the transfer, select the Dynamics 365 Finance button on the invoice to go straight to the record in D365 F&O. Depending on your Invoice Capture settings, this is either a pending vendor invoice or an invoice journal.
If an invoice isn’t valid, you can Void it. Voided invoices appear in the Captured invoices (Voided) view, where you can Delete them. Deleting removes them permanently from Dataverse, together with the linked entry in Received files.
Extend Invoice Capture
The standard setup covers a lot, but most projects need at least one of the extensions below: financial dimensions, custom fields or a custom invoice model.
Financial Dimensions
For cost invoices, financial dimensions matter because they usually decide who approves the invoice in D365 F&O. By default, Invoice Capture has three financial dimension fields on both header and line level: Business unit, Department and Cost center.
To show them in the side-by-side viewer, go to Manage configuration groups, select your configuration group, choose the Cost invoice type and select Manage visible fields. The AP clerk can then select the dimension values from a lookup during the review.
When the invoice is transferred, the dimensions are mapped to D365 F&O automatically. On a vendor invoice, you find them on the pending vendor invoice header under Financial dimensions. On an invoice journal, you find them on the offset account.
If your financial dimension setup is different from the standard three, you need a small extension. From 10.0.39, Microsoft exposes the class VendInvoiceCapInvDataUpdateHandler with four methods for updating the header and lines of pending vendor invoices and invoice journals. Extend these methods with Chain of Command and map your own dimension fields to D365 F&O. This keeps the solution upgrade-safe, because you build on Microsoft’s extension point instead of changing standard code.
Custom Fields
If the standard fields are not enough for your business requirement, you can add custom fields:
- In make.powerapps.com, create a new solution and add the tables Staging Invoice Header, Staging Invoice Line and User Defined Field Setting.
- Add a new column to the header or line staging table and note its logical name.
- Create a new row in User Defined Field Setting with the scope (Header or Line), the logical name and the field group.
- In Invoice Capture, add the field to your configuration group with Manage visible fields.
The field now shows up in the side-by-side viewer. Its value can be extracted by your custom model or entered manually by the AP clerk.
To get the value into D365 F&O, use the same VendInvoiceCapInvDataUpdateHandler class: extend it with Chain of Command, read your field from the attributes and assign it to the target field on the invoice.
Use a Custom Invoice Model
Instead of the prebuilt model, you can create your own model and use it for the OCR recognition. Invoice Capture supports only a single AI model for recognition, so the recommended approach is a custom invoice model built on top of the prebuilt one. In it, you can correct the recognition result by tagging the right place on the invoice, or capture additional information by defining new model fields.
Important: A custom model removes some side-by-side viewer features, such as key-value pair mapping and charges and tax amount mapping. Check the Known Limitations section below before you switch.
Create and Train the Model
- Create the custom invoice model. Make sure you start from Power Apps > AI models > Extract information from invoices.
- Select Create custom model.
- Define new fields or tables, if you need them.
- Upload the sample invoices (at least five are required) and tag them.
- Train the model.
- Rename the model, if needed.
Notice the highlighted Train button at the bottom of the model summary.
- Publish the model by selecting Publish.
Connect the Model to Invoice Capture
- Open the Invoice Capture app, go to Setup system > System preferences and select your AI Builder model.
- Select the model name to open the mapping form. Here you map the fields your custom model extracts to the invoice fields in Invoice Capture.
Important: Only the AP admin can change this mapping. The user who selects the model in System preferences also needs the Environment maker role. The AP clerk and AP admin only have read access there, so without that role they can’t pick a model from the dropdown.
Keep these points in mind when you do the mapping:
- Prebuilt fields map themselves. The first time you open the mapping form, the prebuilt fields are mapped automatically.
- Invoice fields use logical names. The invoice field is the logical name of the field in the staging invoice header or line table.
- Model field names must match. Use exactly the name you defined in your custom model.
- One-to-one on the invoice side. One invoice field can be mapped to only one model field, but one model field can be mapped to several invoice fields.
- Blank is allowed. If no model field fits, leave it empty.
- Refresh after table changes. If you add or remove fields on the staging tables later, open the mapping again from System preferences so the changes show up.
Known Limitations
Understanding these constraints upfront prevents unrealistic expectations from users and stakeholders.
| Limitation | Impact |
|---|---|
| Only integrated Power Platform environments are officially supported | The finance and operations virtual entity must be in place before you install. |
| 100 invoice capture transactions per tenant per month | Higher volumes need extra capacity, purchased for your peak month. |
| Custom model: no key-value pair mapping | The mapping key-value pair function isn’t available in the side-by-side viewer document preview panel. |
| Custom model: no charges or tax amount mapping in the initial release | The user enters charges (charges code and amount) manually. The Sales tax panel isn’t available, because only the total sales tax amount needs to be transferred to D365 F&O. |
| Standard financial dimension transfer from 10.0.39 (header) and 10.0.40 (lines) | Older versions need an extension to map dimensions to the invoice. |
Final Thoughts
That’s it for the basic setup of Invoice Capture in D365 F&O. We installed the solution, created an Outlook channel, configured the system preferences and configuration groups, and followed an invoice from the mailbox to a captured invoice, through the review, and finally to a vendor invoice in D365 F&O.
My recommendations as you start building:
- Assign InvoiceCaptureOperator to the flow owner. Without this role in D365 F&O, the touchless transfer won’t work.
- Enable user impersonation first. Turn on Enable Finance and Operations User Impersonation in Dataverse in the Power Platform environment settings before you open Invoice Capture from the D365 F&O tile.
- Keep an eye on licensing. You only get 100 invoice transactions per tenant per month. Beyond that, you need to buy extra capacity.
- Start with the prebuilt model. Use it with the Default configuration group, and only move to a custom model once you see which vendors’ invoices aren’t recognized well.
- Test the whole flow in a sandbox. Use real sample invoices from your main vendors before going live.
If you want to see another side of AI in D365 F&O, read my guide on how to build an AI agent using the D365 ERP MCP.
I hope this helps you get started with Invoice Capture. If you have any questions, feel free to reach out. I’m always happy to help and exchange ideas with the community.
Contact me here: https://ebregu.com/contact/
