Hi,
Try the below:
int _attachentry = 1; //put here the actual OPDN.AtcEntry Attachments2 oAttach = oCompany.GetBusinessObject (oAttachments2); if (oAttach.GetByKey (_attachentry) ) { oAttach.Lines.Add oAttach.Lines.FileName = "filename"; //put here actual file name oAttach.Lines.FileExtension= ".ext"; //put here actual file extension oAttach.Lines.SourcePath= "path"; //put here actual file path oAttach.Update(); }
I never tried it for an existing document though.
Beni.