CreateFolder

Creates a folder in the document repository.

Tip:

CreateFolderEx also creates a folder, and provides additional options for flagging the folder as private or public, overwriting existing folders, and specifying the folder’s content type.

Syntax

<HFMwManageDocuments>.CreateFolder bstrPath, bstrName, bstrDescription, bstrSecurityClass

Argument

Description

bstrPath

The path of the document repository folder in which to create the new folder. Precede the new folder name with a backslash ( \ ).

Caution!

If the specified path does not exist, an error occurs.

To create the new folder in the root folder, pass an empty string.

Input argument. String subtype.

bstrName

The name of the new folder.

Input argument. String subtype.

bstrDescription

The description of the new folder.

Input argument. String subtype.

bstrSecurityClass

The name of the security class for the folder.

Input argument. String subtype.

Example

The following example creates a folder named Joe in the Sales folder.

Dim cHFMDocuments
Set cHFMDocuments = Server.CreateObject("Hyperion.HFMwManageDocuments")
'g_cHFMSession is an HFMwSession object reference
cHFMDocuments.SetWebSession g_cHFMSession
cHFMDocuments.CreateFolder "\Sales", "Joe", "Joe’s folder", "[Default]"