Updating IBM Content Manager content with search and download actions

Processes the downloaded files (using the Search and Download action) in Datacap application to find any additional data in the content.

Using the search and download actions, you have downloaded the IBM Content Manager content onto a directory. You are now ready to process these files in your Datacap application to find any additional data in the content. These new data can then be directly updated as new or updated attributes in the IBM Content Manager repository.

The example in the following table shows the sequence in which you must add the actions for the update scenario.

Table 1. The sequence of actions to update a document’s attributes into IBM Content Manager
Action Description
IBMCM_Logon("ibmcmsrv,userid,password") logs on to the IBM Content Manager server.
IBMCM_SetSearchAndDownloadCriteria("APT","APT_FLAG","=","NA","String") sets the criteria for the file downloads.
IBMCM_SetSearchAndDownloadDirectory("@APPPATH"(vscanimagedir)") sets the download directory.
IBMCM_SearchAndDownload() searches and downloads the files.
Vscan.SetSourceDirectory("@APPPATH"(vscanimagedir)") sets the source directory for the scan (must be the same directory from the download).
Vscan.Scan() scans the files in the directory and sets the PageName.
IBMCM_SetSearchOnlyFolderItems("False") sets up to search for all items.
IBMCM_SearchItem("", @P.PageName") searches and sets the current object based on the item ID in PageName.
IBMCM_SetAttributeValue("APT_FLAG","DONE") updates the document attributes in IBM Content Manager.
IBMCM_SetAttributeValue("newAttribute","newAttributeValue") updates the document attributes in IBM Content Manager.

For more information about IBM Content Manager actions, see IBM Content Manager actions.