createFolder

public WSCreateFolderResponse createFolder(String userCredential, 
String partitionName, Locale requestedLocale,String name, 
String description,String securityPolicyName,
long parentFolderId,WSFolderTypeEnum folderType,
WSApplicationTypeEnum createdBy,long creatorObjectId)
 throws CampaignServicesException																							

Creates a new folder of type campaign/offer/sessions/segments.

Parameters

userCredential: the client user credential.

partitionName: optional name of the campaign partition to use.

requestedLocale: optional locale to use for this request.

name: name of folder to create.

description: description for new folder.

securityPolicyName: name of security policy to use.

parentFolderId: (optional) id of parent folder. If not provided, the folder is created at root.

folderType: type of folder-Offer/session/campaign/segment.

createdBy: (optional) object of type WSApplicationTypeEnum indicates which application created the folder. The possible values are Unica Campaign, Unica Plan, Collaborate, and Unica Deliver. If not provided, Unica Campaign is used.
Note: Plan=Unica Plan. Collaborate=Unica Collaborate.

creatorObjectId: (optional) used by Plan (Unica Plan) to link a folder in Unica Campaign with a folder in Unica Plan.

Returns

Returns object of type WSCreateFolderResponse.

Errors

Throws CampaignServicesException if the folder type is invalid or duplicate.