Equisys technical notes

Technical guidance, explanations and fixes for our products

HOWTO: Disable NAV write-back feature



ID: ZTN4222

This Zetadocs technical note applies to:

  • Version 1.0 of Zetadocs for Microsoft Dynamics NAV - Payables Approval


This technote explains how to disable the NAV write-back functionality which is part of the ‘Integration with NAV’ feature of Zetadocs Payables Approval.

This feature automatically updates the status of the invoices in Dynamics NAV during the process of approval.
For instance, once a purchase invoice is approved in Zetadocs Approvals, the status of the invoice in Dynamics NAV will be changed from ‘Open’ to ‘Released’.

More information

To disable this functionality, simply do the following:

  1. Open the Dynamics NAV Development Environment/Classic Client and connect to the company setup for Zetadocs Approvals.
  2. Open the Object Designer (Shift + F12).
  3. In the Codeunit section, locate the codeunit named “Zetadocs-Approvals + Capture” and click Design.
  4. Locate the following functions:
    • PurchaseInvoiceApproved
    • PostedPurchaseInvoiceApproved


  5. Comment out the content of these functions by putting comment characters at the beginning and end of each function. Respectively ‘{‘ and ‘}’.
  6. At the beginning of each function enter the following code:

  7.             EXIT(0);

  8. Close, save and compile the codeunit.

The Zetadocs Approvals process will no longer write back to update the status of invoice items in the Dynamics NAV database.

A Dynamics NAV Developer license is required to perform these steps.

Last updated: 27th December 2012 (SD/MW)

Equisys Logo, Document Management and Expense Management for Business Central

Replaced by script