Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Overview

Gets the branch id of a document.

string Document.BranchId { get; }

Example

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"]);

Examples

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

  • No labels