Skip to content

Get

Returns a document instance from the repository if found; otherwise, returns null.

1
$Documents.Get(id: string):( Document | `"null"` )

Parameters

string id
    The ID of the document.

Remarks

The ID must be a version GUID, not a BranchId. A syntactically valid ID that is not found returns null; an invalid ID raises a script error. This trusted server API checks the tenant boundary, not the invoking user ACL.

See Also