Configuring an M-Files workflow
To configure unattended processing of documents in FC, complete steps 1 and 2 described in the “M-Files workflow activity: installation and use” section and then:- In the M-Files Admin application, navigate to Connections to M-Files Server → Local Computer → Document Vaults → <Vault_Name> → Workflows and create a workflow by clicking the New Workflow… button. Alternatively, you can modify your current workflow.
- Select the workflow that you just set up and create a state by clicking the New State button.
- In the Name field, type a name for the state (e.g. “In Processing by FlexiCapture”).
- On the Actions tab of the State Properties window, select the Run script option and click Edit Code….
For further information regarding workflow state actions, please see the M-Files User Guide.
- Paste the following script into the Edit VBScript Code window and provide your ABBYY FlexiCapture connection settings, the project name, and the batch type that you are going to use. When executed, this script will send a document from M-Files to FC for further processing. The script will stop once the file has been sent.
- Close the Edit VBScript Code window and click OK.
- Create a new state and give it a name (e.g. “Waiting for approval”) by repeating steps 1 through 3. This state will indicate that the document is ready for approval.

