...
Code Block | ||
---|---|---|
| ||
var doc = $Documents.New('My Document'); doc.Publish(["myfolder", "otherfolder"]); var id = doc.Id; var existingDocument = $Documents.Get(id); // Using Branch.Id after copying document: var newVersion = $Documents.NewVersion(existingDocument.BranchId, 'My Document Version'); newVersion.Publish(["myfolder", "otherfolder"]); |
See Also
- Document.Id
- Documents$Documents.New
- Documents$Documents.Get
- Documents$Documents.NewVersionDocument.Publish