- Copy the following files from the M-Files Workflow Activity folder in the distribution package into any folder on the M-Files server:
- Abbyy.MFiles.FlexiCapture.Activity.dll;
- Abbyy.Connectors.FlexiCaptureConnector.dll.
- Run the Command Prompt as administrator, go to the folder where the libraries were placed in step 1, and execute one of the following commands (to register the library in the registry):
- If you are using a 64-bit M-Files server version:
- If you are using a 32-bit M-Files server version:
- If you are using a 64-bit M-Files server version:
- If you are using a 32-bit M-Files server version:
To update Abbyy.MFiles.FlexiCapture.Activity.dll, you need to unregister the previously registered version of the library and register the new version of the library. For the changes to take effect, restart the M-Files Server service.
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Abbyy.MFiles.FlexiCapture.Activity.ConnectionSettings
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Abbyy.MFiles.FlexiCapture.Activity.FlexiCaptureWebClient
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Abbyy.MFiles.FlexiCapture.Activity.MFilesTargetContext
- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Abbyy.MFiles.FlexiCapture.Activity.RegistrationParameter
- In M-Files Admin, open the FlexiCapture Demo Vault that you have imported and click Workflows.
- Select one of the workflows and start editing the In Processing by FlexiCapture state. Then click the Actions tab, select the Run Script option, and click Edit Code….

- In the Edit VBScript Code dialog box, specify the following variable values in the code of the script:
- szFCServerUrl = “http://FlexiCapture”
- szFCUsername = “Username”
- szFCPassword = “Password”
- In the szFCServerUrl variable, specify the URL of the FlexiCapture Cloud instance that your company is registered in.
- Uncomment line 3 of the script and specify the name of your company here:
- Specify the credentials to be used for your company’s tenant in ABBYY FlexiCapture Cloud:
- szFCUsername = “Username”
- szFCPassword = “Password”
- Uncomment line 22 of the script to use the name of your company when connecting to the ABBYY FlexiCapture server:

The connector distribution package also contains a sample FlexiCapture project named “InvoiceDemoProject,” which is configured to be used in conjunction with the sample vault. For the scripts to run correctly in the FlexiCapture Demo Vault, be sure to complete the steps described in the “Setting up an InvoiceDemoProject project in ABBYY FlexiCapture” section.
The sections that follow contain scripts used for configuring M-Files workflows. To set batch registration parameters replace the code fragment iBatchId = oClient.SendTarget(szFCProject, szFCBatchType) in this these scripts with the following code:
