Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10665

Re: Add additional attachment in Document

$
0
0

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.


Viewing all articles
Browse latest Browse all 10665

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>