What Embedded commands are there?


Automation commands

 

Note: These embedded commands apply specifically to the automation add-on and will work only if you have purchased a licence for automation.

 

Batch

You can specify the name of the batch by the adding the following command:

 

%%[batch: <name>]

 

where <name> is the name of the batch. This name will be displayed in the column entitled Name, of the batch preview pane. Specifying a batch name is optional.

 

Preview

You can either hold your documents in the batch for preview in the Zetadocs Client or send them automatically. This will override the Preview batch before sending option you have already set in the Automation tab from Tools menu>Options. To override the Hold for preview option you had set as default, you can this command:

 

%%[batchpreview:<on or off>]

 

specifying on means that the documents in the batch will be held for preview in the Zetadocs Client.

 

specifying off means that the documents in the batch will be sent automatically via the delivery options specified. Only documents not sent successfully will remain in the Zetadocs Client.

 

 

Delivery Option 

You can specify delivery options for a batch, which will then act as a "failover" mechanism. This means that if the document cannot be sent by the first method specified, for example if the email address is wrong, it will be sent using the second method. 

 

%%[deliveryoption: Email, Fax, Print]

 

in the example above, the document will be sent by email first, if it is not sent successfully, then it will be sent by fax. If not successful, the document will be sent to the printer.

 

 

%[deliveryoption: EmailandFax]

 

in the above example, the document will be sent both by email and fax. Both the email address and fax number are displayed in the column entitled Delivery of the batch preview pane.

 

 

%%[deliveryoption: Fax, Print]

 

in this example, the document will be sent by fax first, if it is not successfully sent, then it will be sent to the printer you specify.

 

Archiving

%%[archivedocument: <on or off>]

 

Specifying on or off means that your documents will be or will not be archived after sending respectively.

 

 

You can specify the content type by the adding the following command:

 

%%[archivedocumenttype: <name>]

 

where <name> is the content type name.