Skip to content

Files

Gets the collection of attached files for the document.

Type

DocumentFiles

Declaration

1
readonly DocumentFiles myDocument.Files

Examples

Add a file and read the files of a document

1
2
3
4
5
var doc = $Documents.New('Delivery Note');
doc.Files.AddFile($Xml.Evaluate('DeliveryNoteFile'));

var first = doc.Files[0];
console.log(doc.Files.length + ' file(s), first: ' + first.Name);

See Also