Equisys technical notes

Technical guidance, explanations and fixes for our products

PRB: Sent remittance advice reports do not appear in the vendor's related documents



ID: ZTN4179

This Zetadocs technical note applies to:

  • Versions 4.x of Zetadocs for NAV


When a remittance advice – journal report is sent and archived to SharePoint using Zetadocs it should appear in the list of related documents for the vendor record that it was based on. In some cases this is not happening.

On sending a remittance advice – journal report, a Zetadocs Archive ID is generated for it, but it is not saved against the vendor record. This means that the related documents cannot be retrieved.


This problem occurs because of an error in the modifications made to the report.  By following the standard report modification instructions, the code in the ‘Zetadocs – OnPostDataItem()’ trigger would look like this:



This code causes the problem because VendTemp is a temporary record, so the record id that is being passed into the AddRecord function is pointing at a temporary record rather than the record in the database that we actually want to modify.


To correct this problem, some modifications should be made to the code in the ‘Zetadocs – OnPostDataItem()’ trigger.

First, create a new local variable:

  • Name:               ZdVendor
  • Type:                Record
  • SubType:          Vendor

Then change the code in the trigger to the following:


ZdVendor.SETRANGE(ZdVendor." No." , VendTemp." No." );

IF ZdVendor.FIND('-') THEN






This has been identified by Equisys as a problem with the software versions given above.

Last updated: 24th February 2012 (JW/MW)

Equisys Logo, Document Management and Expense Management for Business Central

Replaced by script
Recent news

Understanding the profitability of projects is often a difficult and cumbersome process, especially if there is a lack of visibility around all the project costs. Getting that visibility of all ...

This article describes the new features and other improvements in the September 2021 update of the Zetadocs Expenses service. Zetadocs Expenses Release ...

North America
Equisys Inc
30000 Mill Creek Avenue
Suite 335
Alpharetta, GA 30022
(770) 772 7201
Equisys Ltd
91 Southwark Bridge Road
United Kingdom
+44 (0)20 7203 4000

© Equisys Ltd
All rights reserved

© Equisys Ltd    All rights reserved    Contact    Privacy policy    Cookies