$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 | |
Capabilities¶
Retrieval¶
- DocumentsStatic.Get: Returns a document instance from the repository if found; otherwise, returns null.
- DocumentsStatic.GetLastVersion: Returns the last version of the document instance from the repository if found; otherwise, returns null.
- DocumentsStatic.ListDocuments: Lists published documents in the specified folder.
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.