Skip to content

New

Creates a new document in the repository and returns a document instance.

1
$Documents.New(title: string, contentType?: string):Document

Parameters

string title
    The title of the document.

string contentType optional
    The content type of the document.

Remarks

Example

1
2
var document = $Documents.New("Contract", "Contract");
document.Save();

See Also