Blog
Blog

Setting External Document No./Vendor Invoice No. as Mandatory in Microsoft Dynamics 365 Business Central

Posted on 04-Jan-2025 by Kabinder Singh Rautela

Today we discuss about how to set External Document No./Vendor Invoice No. as mandatory in Business Central. 
You can enter external document numbers for customers and vendors in all sales and purchase orders, invoices, and credit memos. For example, 
On the Sales Order: External Document No. 

Entering an External Document No. on a Business Central Sales Order to track customer reference numbers.

On the Purchase Order: Vendor Invoice No. (With a red asterisk) 

A Business Central Purchase Order showing the Vendor Invoice No. field highlighted for mandatory entry.

We can use these numbers to search for posted sales and purchase lines later.  

Let have some scenarios  

We have Enabled Ex doc no mandatory in setup, but here we are not inserting it  in Purchase order. 

We see that we get an error.  

Business Central error: "You must enter an External Document No." when posting a document without a reference.

To make them mandatory the process is very easy we have to do set up in both Sales & Receivables Setup and Purchases & Payables Setup. 

Sales & Receivables Setup: Not enabled by default 

Ext. Doc. No. Mandatory 

Configuring Sales & Receivables Setup in Business Central to require an External Document No. for sales.
Specifies if it is mandatory to enter an external document number in the External Document No. field on a sales header or the External Document No. field on a general journal line. 

If we enable this setting in Sales & Receivables Setup, you can see a red asterisk in front of the External Document No., just like in Purchase Order. 

Purchases & Payables Setup: Enabled by default 

Ext. Doc. No. Mandatory 

Enabling the "Ext. Doc. No. Mandatory" toggle in Business Central Purchases & Payables Setup for vendors.
Specifies if it is mandatory to enter an external document number in the External Document No. field on a purchase header or the External Document No. field on a general journal line. 

It is to be noted that this field value is checked when we do posting on the respective document. 

Here on sales order we left the field blank,  

Sales Order page in Dynamics 365 Business Central showing External Document No. marked as mandatory

During Posting 

Ship and Invoice confirmation popup during sales order posting in Dynamics 365 Business Central

now when we do posting we will get error 

Error message stating External Document No. must have a value while posting Sales Order in Business Central

The error message on the Purchase Order is more user-friendly…… 

Error message indicating Vendor Invoice No. is required to link purchase document to original vendor invoice in Business Central

This will also affect the General Journal. 

We will get this error on the General Journals while posting the sales invoice  

In Microsoft Dynamics 365 Business Central ERP In General Journals tab the blank field of External Document Number

If we leave the field blank we will get error 

Error message of not filling the value of External Document Number in General Journal

So if you post an invoice through the General Journal, please add this field to the page first. It is hidden by default. 

It is also important to note that Business Central does not check if these external document numbers are unique or duplicates. So this requires some simple customization if you need this control.  


Post a Comment

Your email address will not be published. Required fields are marked (*)

Captcha
can't read? refresh

WhatsApp Now