IBMCM_SetDestinationFolder

Sets the destination folder for uploading images to the IBM® Content Manager repository.

Syntax

bool IBMCM_SetDestinationFolder(string attribute, string attributeValue)

Parameters

String attribute: the attribute name.

String attributeValue: the unique attribute value or folder ID.

Parameters

If both parameters are not provided, the destination folder is set to the most recently created folder.

If the folder ID is used in the second parameter, leave the parameter empty ("").

Smart parameters are supported.

Returns

True, if the destination folder is successfully set. Otherwise, False. The action fails if a folder with the specified attribute or ID is not found.

Level

All levels.

Details

Sets the upload destination folder in the IBM Content Manager repository. To set the destination to a newly created folder, first create the folder by using the IBMCM_CreateFolder action. Then, call the IBMCM_SetDestinationFolder action with empty ("") parameters.
Example:
IBMCM_ SetDestinationFolder("Department”,“Human Resource”)
IBMCM_CreateItem("NOINDEX")
IBMCM_SetMimeType("image/tif")
IBMCM_UploadDCO_DOC() 

This example sets the destination folder to the folder with the attribute name "Department" and the attribute value "Human Resource" to upload images to it.

IBMCM_SetDestinationFolder("","A1001001A14B04B12546D00215")
IBMCM_CreateItem("NOINDEX")
IBMCM_SetMimeType("image/tif")
IBMCM_UploadDCO_DOC()

This example sets the destination folder to folder with the ID "A1001001A14B04B12546D00215" to upload images to it.

IBMCM_ CreateFolder("NOINDEX","","A1001001A14B04B12546D00215",true)
IBMCM_SetDestinationFolder("","")
IBMCM_CreateItem("NOINDEX")
IBMCM_SetMimeType("image/tif")
IBMCM_UploadDCO_DOC() 

This example sets the destination folder to the most currently created folder to upload images to it.