AddFileToDocument
Adds a file to the current FileNet® document.
Syntax
bool AddFileToDocument (StrParamMW)
Parameters
String value of the File name to add to the document and its path. Smart Parameters are supported.Returns
False if the specified file is not found, or if the active FileNet document has already been committed to the library. Otherwise, True.Attention: If the action cannot access the batch’s image files,
the action directs the Rulerunner task
to finish with a status of Aborted.
Level
All levels.Details
Adds any file you designate as a parameter to the current FileNet document.If the parameter does not include a path to a folder, the action will use the path to the current Batches directory as the default. You can also designate a variable of the bound object of the Document Hierarchy as the source of path’s value by using the # character followed by the variable’s name. For example: #FilePath.
- Example
NewDocument("1040EZtwo") AddTIFImageToDocument() AddFileToDocument("C:\Datacap\MQSW\Process\FNLog.log")This sequence assumes that Datacap logs its FileNet activities and that a resulting Log file is available for the document.