Skip to content

Id

Gets the globally unique identifier of this document version. Use BranchId to identify the family across versions.

Type

string

Declaration

1
readonly string myDocument.Id

Examples

Store the ID of a new document

1
2
3
4
5
var doc = $Documents.New('Order ' + $Xml.Evaluate('Id'));
doc.Files.AddPDF($Xml.Evaluate('OrderHtml'), 'Order.pdf');
doc.Publish('Sales\\Orders');

$Xml.SetValue('DocumentId', doc.Id);

See Also