SAPbobsCOM.Attachments2 att = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oAttachments2); att.Lines.Add(); att.Lines.SetCurrentLine(0); att.Lines.SourcePath = ""c:\\tmp""; // set the folder where you downloaded the PDFs (other than Attachments folder) att.Lines.FileName = ""TestingPDF_with_EDocSign_flag""; att.Lines.FileExtension = ""pdf""; att.Lines.EDocSign = BoYesNoEnum.tYES; retVal = att.Add(); int attAbsEntry = Convert.ToInt32(oCompany.GetNewObjectKey());