Box Connector upload examples

A ruleset for exporting data to Box performs three main functions: establishing the authentication token; specifying upload settings; and initiating the export process. The initiation of the export process (with the Upload action) must be the last action in the ruleset sequence.

Example

Here is an example ruleset:

Action Description
TargetFolder("Datacap") Specifies the Box target folder as Datacap. For more information, see TargetFolder.
CreateBatchSubfolder(True) Indicates that batch subfolders are to be created in the Box target folder. For more information, see CreateBatchSubfolder.
AddParentDataToPageMetadata(True) Indicates that the parent batch and parent document data is to be included in the exported metadata for a page. For more information, see AddParentDataToPageMetadata.
FailIfFileExists(False) Indicates that the export process does not fail in the following circumstance: an existing file in the Box target folder has the same name as a file to be exported. For more information, see FailIfFileExists.
OverwriteExistingFiles(False) For a file to be exported, indicates that the latest existing version of that file in Box is not to be deleted. For more information, see OverwriteExistingFiles.
ReplaceMetadata(False) Indicates that the newly exported metadata for a file is to be merged with any existing Box metadata for that file. For more information, see ReplaceMetadata.
FieldsAreMetadata(True) Indicates that field values are to be included in the exported metadata. For more information, see FieldsAreMetadata.
DCOVarsAreMetadata(False) Indicates that DCO variables are not to be included in the exported metadata. For more information, see DCOVarsAreMetadata.
DocumentsToPDF(False) Indicates that pages (as opposed to PDF files) are to be exported to Box . For more information, see DocumentsToPDF.
ProcessChildren(True) Indicates that all child objects of the current DCO object are to be exported. For more information, see ProcessChildren
Upload() Initiates the export process. For more information, see Upload.