M-Files - ExportScript - Configure by script.cs script and in the default.config.xml configuration file.
Connection settings
For instructions on configuring web access, see the M-Files User Guide.
Document naming settings
Dynamic tags for document names
A document name can have an unchanging static part and a changing dynamic part. Tags define the dynamic part, and ABBYY FlexiCapture replaces them with document property values at the time of export. Enclose each tag in angle brackets. In an XML file, write< for < and > for >.
The following tags are available:
The following example produces a document name with a static part:
Runtime replacement tags for updating the original document
Runtime replacement tags update documents that were sent from M-Files to ABBYY FlexiCapture for processing. They apply when the ABBYY FlexiCapture batch was created by the M-Files workflow activityAbbyy.MFiles.FlexiCapture.Activity.dll.
The M-Files workflow activity creates the batch registration parameters, and these tags are replaced with the values of those parameters. ABBYY FlexiCapture then updates the original document in M-Files based on the same registration parameters.
These tags are case-sensitive. Preserve the character case shown in the table.
Name conflict resolution
NameConflictResolution resolves name conflicts. It takes one of the following values:
For example:
NewVersion updates the document in M-Files only when the name and format specified in the script match the name and format of the document in M-Files. If they do not match, a new document is created in M-Files.Document class
DmsMetadataTemplate contains the name of the document class in M-Files. For example:Field mapping
FieldPairs contains a collection of field pairs. It maps ABBYY FlexiCapture Document Definition fields to M-Files property definitions.Map fields in an XML file
If your export settings are stored in an XML file, map the fields as follows:AfcField– The full path to the ABBYY FlexiCapture Document Definition field that data is read from at the time of exportDmsField– The name of the M-Files property definition that data is written to at the time of export
Map fields in a script
If your export settings are stored in the script, map the fields in a dictionary as follows:Image settings
M-Files-specific options
DmsSpecificOptions holds the settings that are specific to M-Files.
For example:
