Skip to content

$Documents

Provides trusted server-side document automation within the current tenant. Normal operations do not enforce the invoking user ACL; authorize user-supplied targets before calling them. Use Document for lifecycle, files, profile, and security operations.

1
const $Documents;

Capabilities

Retrieval

Creation

  • DocumentsStatic.New: Creates an unsaved Draft document with new version and branch IDs, initially version 1.0.0.
  • DocumentsStatic.NewVersion: Creates a Draft version for the specified document family; call Save or Publish to persist the record.