Script functions reference > Script functions in alphabetical order > L > LotusNotesAttachFile

LotusNotesAttachFile
Syntax
LotusNotesAttachFile(str_path, str_compress);
str_path
str_compress
A boolean option for file compression. If the value is true (not case sensitive), the file will be compressed in the Lotus Notes Note.
Description
Attaches a file to the current Lotus Notes Note. If a file already is attached to the Lotus Notes Note it is replaced by the new file.
A Lotus Notes Note must be available, i.e. opened with the LotusNotesAddNote or the LotusNotesFind functions.
Returns
0
-1
Failed to attach the file to the document. Possible causes include no connection to the database, or that a Lotus Notes Note or the file was not available.
Example
$ret = LotusNotesAttachFile("C:\Files\My_file.pdf", "True");
OpenText StreamServe 5.6 Updated: 2013-03-01