<< Click to Display Table of Contents >>

Archive Commands


Archive document

To set whether a document is archived use the following command:

 

%%[archivedocument: «on or off»]

 

This command will override the setting within the Zetadocs client options.

 

 

Archive Folder

Documents can be archived to a network folder or to SharePoint. The ArchiveFolder command is used to specify the type of the archive and also the folder name. To set the folder where documents are archived as a network directory use the following command:

 

%%[ArchiveFolder: file:«folder name»]

 

Where «folder name» is the folder path. Here are some examples of archiving to folder:

 

%%[ArchiveFolder: file:\\myfileshare\zetadocs archive\]

%%[ArchiveFolder: \\myfileshare\zetadocs archive\]

%%[ArchiveFolder: C:\mylocalarchive]

 

Note that the default archive type is file and this can be omitted.

 

It is also possible to provide “NO_CLIENT_SUBFOLDERS” as the second parameter to disable subfolders defined in the client configuration:

 

%%[ArchiveFolder: C:\mylocalarchive, NO_CLIENT_SUBFOLDERS]

 

To set the archive location to be SharePoint use the following command:

 

%%[ArchiveFolder: sharepoint: «site url», «document library»]

 

Where «site url» is the url of the SharePoint site and «document library» is the document library to be used. Here are some examples of archiving to SharePoint:

 

%%[ArchiveFolder: sharepoint: http://mySharePoint, myDocLibrary]

%%[ArchiveFolder: sharepoint: https://mySharePoint, myDocLibrary/Equisys/]

 

Subfolders of a document library can also be specified by

 

%%[ArchiveFolder: sharepoint:  http://mySharePoint, myDocLibrary/Equisys/June/ ]

 

To instruct Zetadocs to use the Zetadocs Archive Service (if installed) use the following command:

 

%%[ArchiveFolder: zetadocs: http://localhost/Archive, myDocLibrary]

%%[ArchiveFolder: zetadocs: http://localhost/Archive, myDocLibrary/Equisys/]

 

Archive Document Type 

You can specify the content type to be applied to the document when it is archived in SharePoint by using the following command:

 

%%[archivedocumenttype: «name»]

 

where «name» is the content type name.