JAVA/CORBA CLASSES


putInFolder method
Example

Adds a document to a folder. If the folder does not exist, it is created.

Defined in

Document

Syntax

public void putInFolder(String name)
   throws NotesException

public void putInFolder(String name, boolean createonfail)
   throws NotesException

Parameters

String name


boolean createonfail
Usage

If the document is already inside the folder you specify, putInFolder does nothing. If you specify a path to a folder, and none of the folders exists, the method creates all of them for you. For example:


If neither Vehicles nor Bikes exists, putInFolder creates both, placing the Bikes folder inside the Vehicles folder.

This method cannot add the first document to a folder that is "Shared, Personal on first use."

Language cross-reference

PutInFolder method in LotusScript NotesDocument class

@AddToFolder function in formula language

CreateFolder @command in formula language

Folder @command in formula language

FolderDocuments @command in formula language

Example