Adds a folder to the report server database or SharePoint library.
Assembly: ReportService2010 (in ReportService2010.dll)
public function CreateFolder( Folder : String, Parent : String, Properties : Property ) : CatalogItem
- Type: String
The name of the new folder.
- Type: String
The full path name of the parent folder to which to add the new folder.
Return ValueType: ReportService2010.CatalogItem
The table below shows header and permissions information on this operation.
SOAP Header Usage
Native Mode Required Permissions
SharePoint Mode Required Permissions
The length of the full path name for the new folder cannot exceed 260 characters; otherwise, a SOAP exception is thrown with the error code rsItemLengthExceeded.
Folder names must be less than 128 characters long. The names cannot be null, consist of empty strings, or contain the following reserved characters: : ? ; @ & = + $ , \ * > < | . ". You can use the forward slash character (/) to separate items in the full path name of the folder, but you cannot use it at the end of the folder name.
If My Reports is enabled, a SOAP exception is thrown with the error code rsItemAlreadyExists if you attempt to create a folder named "My Reports" in the root folder of the report server database.
To compile this code example, you must reference the Reporting Services WSDL and import certain namespaces. For more information, see Compiling and Running Code Examples. The following code example uses the method to create a folder in the report server database: