Finding the Document Source and Template
For all incoming documents, Continia Document Capture attempts to identify a source (such as a vendor) and a template, which will then be linked to each individual document. As Document Capture is a generic solution, it can basically link incoming documents to any record in Microsoft Dynamics 365 Business Central. However, instead of explaining the above process in general terms, this article will use purchase documents and vendors as an illustrative basis, as this is generally easier to relate to.
You can set up Document Capture to link documents to both a vendor and a template, or to link them only to a vendor. If you only link a document to a vendor and not to a template, you won’t be able to capture the fields of the document, as field recognition is tied to a template. This is of course perfectly fine if you simply want to link the document to a vendor and don’t need to process any of the data in the document or if, for example, you want to link a shipment confirmation document to a sales shipment record as proof of delivery. However, for something like purchase invoices and credit memos, you must also assign a template that defines which fields and what information should be extracted and processed in the document.
Whenever you import a purchase document, Document Capture searches for the vendor in the three steps outlined below:
|Identification templates||Document categories such as the one for purchase documents contain an identification template that searches for the VAT registration numbers of incoming documents. If Document Capture identifies a VAT registration number for a document, it searches through the vendor table for a vendor with a corresponding VAT registration number and, if successful, then applies the identified vendor and its associated default template to the document. You can adjust certain parts of the identification templates, such as what captions to search for in order to identify a VAT registration number. To learn more, see Understanding Identification Templates.|
|Identification fields||For each document category, you can specify which fields in the source table (that is, the vendor table for purchase documents) you want to search for in a document in order to find the correct vendor. For example, the default Document Capture configuration sets up the document category for purchase documents to search for vendor name, address, phone number, and a number of other specific fields. When you run field recognition on a document, Document Capture will search the document for these fields and apply the identified vendor and its associated default template to the document. To learn more about setting up identification fields, see Setting up Identification Fields.|
|Search texts||For each vendor template, you can use search texts to let Document Capture know that it should assign that specific template and its associated vendor to any document in which the specified search text appears. Normally, you use search texts if Document Capture can’t find a vendor, or if it identifies an incorrect vendor using the identification template or the identification fields search option. As an example, you could tell Document Capture to assign a specific vendor and template whenever it finds a certain bank account number or phone number in a purchase invoice. For more information, see Setting up Search Texts for a Template |
For documents with more than one page, note that Document Capture only searches through words on page one.
Each of the steps above are carried out by Document Capture in the order shown below. It’s important to note that if one of the steps succeeds in finding a vendor and a template, any subsequent steps will be skipped:
- Search texts
- Identification templates
- Identification fields
Search texts are optional and not necessarily part of the identification process, but they’re an important and very useful feature when Document Capture fails to identify the correct vendor and template for a document using the other methods. In such cases, you can always use search texts to override any vendor identified using either identification templates or identification fields.
Excluding certain sources (vendors) from recognition
Some organizations set up their own company branches as vendors in Business Central, for various reasons. This may cause Document Capture to assign those vendors to many of the incoming purchase documents, as the branch name, address, VAT number, etc., appear in those documents as the recipient of the purchase documents – but not as the sender/vendor. If you’re not using such vendors for receiving purchase invoices, you can exclude them completely from identification within a document category. To learn more, see Working with Document Categories.
Understanding Identification Templates
Working with Document Categories