IBMCM_StoreItemIDinDCO

Stores the Item ID of the most recently created folder or the most recently uploaded IBM® Content Manager item into a variable of the current object of the Document Hierarchy.

Member of namespace

ibmcm

Syntax

bool IBMCM_StoreItemIDinDCO(string itemID)

Parameters

String itemID: sets the attribute value on an IBM Content Manager document or folder.

Returns

True, if the Item ID is returned successfully. Otherwise, False.

Level

All levels.

Details

Stores the Item ID of the most recently created folder or the most recently uploaded IBM Content Manager document into a variable of the current object of the Document Hierarchy. If the variable does not exist, it is created on the current DCO Hierarchy object.

It might be useful to store the item ID if the object is referenced in the following action, such as setting the upload directory.

Example:
IBMCM_CreateFolder("NOINDEX","","",False)
IBMCM_StoreItemIDinDCO("ItemID")              

This example stores the ID of the new IBM Content Manager folder in a variable that is called ItemID in the current object of the DCO Hierarchy.

IBMCM_CreateItem("NOINDEX")
IBMCM_MimeType("image/tiff")
IBMCM_UploadDCO_DOC()
IBMCM_StoreItemIDinDCO("ItemID")

This example stores the ID of the new IBM Content Manager document in a variable that is called ItemID in the current object of the DCO Hierarchy.