Script functions reference > Lotus Notes functions > Lotus Notes examples

Lotus Notes examples
Example 43
This script is used to connect to a Notes database and attach a document to a file.
// Domino Server
$server_name = "StuNt01/streamserve";
// The Lotus Notes database where you want to create a new document 
$database_file = "AGFax.nsf";
// Your password 
$password = "streamserve"; 
// Create a connection to Lotus Notes
LotusNotesConnect($server_name, $database_file, $password); 
// Create a new document in the database.
LotusNotesAddNote(); 
// Set the field NFaxno to 123456789 in the new document.
 LotusNoteSsetText("NFaxno","123456789"); 
//This will only be done once, i.e in Runtime mode not in Preproc
if (preproc()=0) {
    $ret = LotusNotesAttachFile("C:\Files\My_file.pdf", "True"); 
}
LotusNotesdisconnect();
 
 
OpenText StreamServe 5.6 Updated: 2013-03-01