Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Document Document myDocument.Publish()

Document Document myDocument.Publish(folderPath: string)

...

string folderPath
Path of folder(s)

Remarks

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

After creating a new document, it's better to use this function instead of just Document.Save( ). This function will save it in a folder where the document can be accessed, and not just in the system and saving without an access like Document.Save( ).

Example

...

Code Block
languagejs
var doc = $Documents.Get(id);

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

...

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

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

After creating a new document, it's better to use this function instead of just Document.Save( ). This function will save it in a folder where the document can be accessed, and not just in the system and saving without an access like Document.Save( ).

Example

Publish a document to multiple folders.

Code Block
languagejs
var doc = $Documents.Get(id);

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

Examples

...

languagejs

...

See Also