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)


Recent news

As part of our drive towards making the software simpler to use, Zetadocs Expenses now supports single sign-on using Microsoft work or school accounts. This makes it easier for Office 365 ...

This article describes the new features and other improvements in the August 2019 release of the Zetadocs Expenses service. Zetadocs Expenses ...