PutAllInFolder (NotesDocumentCollection - LotusScript®)

Adds all the documents in the collection to the specified folder. If the folder does not exist in the document's database, it is created.

Defined in



C all notesDocumentCollection .PutAllInFolder( folderName$ [, createonfail ] )



String. The name of the folder in which to place the documents. The folder may be personal if the script is running on the workstation. If the folder is within another folder, specify a path to it, separating folder names with backward slashes, for example, "Vehicles\Bikes".


Note: This parameter is new with Release 5.

Boolean. Optional. If True (default), creates the folder if one does not already exist.


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

Call doc.PutAllInFolder( Vehicles\Bikes )

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