Skip to content

New

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

$Documents.New(title: string, contentType?: string):Document (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