SP_Upload

Uploads the image file and any indexes that are specified for the batch, document, or page into SharePoint.

Syntax

bool SP_Upload()

Parameters

None.

Returns

True if all documents and indexes were successfully uploaded. Otherwise, False.

Level

All.

Details

Uploads the image file and any indexes specified for the current page, document, or batch to SharePoint. Uses TiffMerge file naming scheme to find document level or batch level image file: DocID.TIF or BatchID.TIF by default. Pages associated with other image file types (e.g. TM000001.pdf, TM000001.jpg, etc) can be uploaded.
Note: After uploading, the variable Upload_Folder in the page/doc/batch will be set to the SharePoint URL where the document(s) were uploaded.
Note: If some documents in a batch are successfully uploaded and some fail, and the batch is rerun through the SharePoint Upload task, only documents that failed to upload will be re-uploaded.
Note: If any document is re-uploaded, SharePoint will replace the existing document with the newer one, or save the old version and replace it with the new version, depending on SharePoint Versioning settings.
Example
SP_Upload()