Equisys technical notes

Technical guidance, explanations and fixes for our products

HOWTO: Specify a Zetadocs template depending on company in GP



ID: ZTN4068

This Zetafax technical note applies to:

  • Zetadocs for GP v2.0
  • Microsoft Dynamics GP v9


A template can be automatically applied to a GP report by hard coding the %%[Template: ] embedded command in Report Writer.

Users may want to apply a different template depending on which company they are logged into.

The Zetadocs template embedded command can be made dynamic by including the Global variable “Company Name” text string in the name of the template file.

More information

First create a calculated field which calls the company name

Result type: String

Name: ZDcompany

Field: Globals | “Company Name”

Create a calculated field for the Zetadocs Template:

Name: ZDTemplate

Result Type: String

Field: “%%[Template: “ # STRIP ( ZDCompany ) # “.zdt]”

You can specify more information if appropriate


“%%[Template: \\machine-name\zetadocs templates“ # STRIP ( ZDCompany ) # “.zdt]”

“%%[Template: “ # STRIP ( ZDCompany ) # “ invoice template.zdt]”

Last updated: 14th December 2009  (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