on-internet
← Community

Error attaching a file using the DI API in SAP Business One 9

Stack Overflow ·

I'm creating an application to attach scanned documents at SAP documents, but I have some problems with that process. I'm using SAP BO 9 PL8 and found the next problems: When I try to add a new attachment line in a existing attachment (using the attachments2 object) with the update method, the DI try to check older lines, and it's possible that the file not exists in the original source path. So, update method reports an error. I use the code below: Attachments2 oAtt = oCompany.GetBusinessObject(BoObjectTypes.oAttachments2); if (oAtt.GetByKey(doc.AttachmentEntry)) { oAtt.Lines.Add(); oAtt.Line

Comments

Sign in or sign up to comment and upvote.

No comments yet.