Aggiunge un oggetto Attachment alla raccolta.
Questo metodo crea un nuovo oggetto Attachment per il file e aggiunge l'oggetto alla fine della raccolta. È possibile richiamare elementi dalla raccolta con l'utilizzo del metodo Item.
VBScript
attachments.Add filename, description
VBScript
' This example assumes there is at least 1 attachment field ' associated with the record. set currentSession = GetSession set attachFields = AttachmentFields set attachField1 = attachFields.Item(0) set theAttachments = attachField1.Attachments If Not theAttachments.Add("c:\attach1.txt", "Defect description") Then OutputDebugString "Error adding attachment to record." End If