AttachVCard (NotesDocument - LotusScript®)

Attaches one or more documents in vCard format.

Note: This method is new with Release 8.0.

Defined in



Call notesDocument .AttachVCard( ClientADTObject )



Document, DocumentCollection, or NotesCollection. The Contact document or documents to be attached in vCard format. If a collection is specified, a single attachment will be made with the individual vCards lying end to end.


To keep the new attachment in the document, you must call the Save method after calling AttachVCard.

If an empty collection is supplied, the error "No documents in collection" will be thrown.

If documents are not Contact documents, the documents will not be attached, and the error "Attach of VCard failed" will be thrown.

The attachment will be in the UTF-8 character set.