Description
The Attachments2 object enables to copy files from a source folder to the Attachments folder that is defined through the application.
Files stored in the Attachments folder can be associated by the AttachmentEntry property of the following objects: Contacts, ContractTemplates, CustomerEquipmentCards, EmployeeInfo, KnowledgeBaseSolutions, Messages, Message, SalesOpportunities, and ServiceContracts.
This object replaces the Attachment and Attachments objects.
Source table: OATC.
Object Model
Attachments2![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Remarks
The Attachments Path must be defined in the application before using this object. This path is stored in the AttachePath field of the OADP table, which is not exposed through the DI API.
Mandatory property: Lines.
You must set the Attachments2_Lines child object whith the following properties: SourcePath, FileName, and FileExtension.
To define the Attachments Path in the application:
- Select Administration -->System Initialization -->General Settings -->Path tab.
See Also
Attachments2 Members | AttachMentPath (Company) | AttachmentEntry (Contacts) | AttachmentEntry (ContractTemplates) | AttachmentEntry (CustomerEquipmentCards) | AttachmentEntry (EmployeesInfo) | AttachmentEntry (KnowledgeBaseSolutions) | AttachmentEntry (Messages) | AttachmentEntry (SalesOpportunities) | AttachmentEntry (ServiceContracts) | Attachment (Message)