Skip to content

Document.Publish

Overview

Document Document.Publish ( [ folderPath ] )
Publishes document to specified folders and returns current document instance.

Arguments

String folderPath Path of folder(s

Remarks

This method changes State property to "Published" and saves document.

If folderPath argument is specified document is attached to specified folder. Path can be specified as full path. If folder is not exist automatically created.

Examples

var doc = $Documents.Get(id);

doc.Title = 'Sample Document';
doc.Publish('Testing\Folder1;Testing\Folder2');

See Also