biuan SAP® BUSINESS ONE SDK
DTW Administration / System Initialization / Attachments2
API Attachments 2

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

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

SAP® B1 DI-API C# definition

public class Attachments2Class : IAttachments2, Attachments2 { public virtual int AbsoluteEntry { get; } public virtual DataBrowser Browser { get; } public virtual Attachments2_Lines Lines { get; } public virtual SAPbobsCOM.UserFields UserFields { get; } public extern Attachments2Class(); public virtual extern int Add(); public virtual extern string GetAsXML(); public virtual extern bool GetByKey( int lAbsoluteEntry); public virtual extern void SaveToFile( string bstrFileName); public virtual extern void SaveXML( ref string pbstrFileName); public virtual extern int Update(); }

Related information


Attachments 2 Lines Attachments2_Lines Object· Table: ATC1
The Attachments2_Lines is a child object of the Attachments2 object. Each line stores details about one attachment file. Source table: ATC1.
   Parent: Attachments 2 Attachments2 Object· Table: OATC


SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Icons by Icons8 Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates