Prerequisites
- ABBYY FlexiCapture Distributed installed on the local computer (in particular, the Project Setup Station)
- A project configured in ABBYY FlexiCapture version 12.0.1.530 or later
- Company administrator credentials for FlexiCapture Cloud
- The ABBYY FlexiCapture Connector for Appian distribution package
Configuring the project
- Start the Project Setup Station and, in the File menu, select Open Project….
Note: If you want to open a project previously uploaded to the server, select Open Project from Server… and go to step 6 of these instructions. - Select the previously configured FlexiCapture project (.fcproj file) and click Open.
- After opening the project, upload it to the server (the Upload Project to Server… button on the toolbar):
- In the dialog box that opens:
- specify the name of the FlexiCapture server in the format https://europe.flexicapture.com#Company, where Company is the tenant name.
- select Use server authentication option and specify credentials.
- click Test Connection button to make sure that credentials are valid.
- Click OK and wait for the project to upload to the server.
Note: If the Project Setup Station version does not match the Processing Server version in the cloud, the error “Application Server version is not compatible.” appears on screen.
- Open the project that was uploaded to the server.
Note: You can see the address of the server hosting the project opened in Project Setup Station in the title bar of the Project Setup Station window. - If necessary, change the administration, scanning, and verification settings. To do this:
- follow the link: https://europe.flexicapture.com/
- on the login page, click Log in to Tenant and enter the company name and login credentials.
- access to the Administration and Monitoring Console, Web Scanning Station and Web Verification Station is provided in the Available web stations block.
- Further configuration is performed in the project uploaded to the server. Open the list of document definitions (the Project → Document Definitions… menu).
- Select the required document definition and click Edit…. The Document Definition Editor window opens.
- Go to the Document Definition → Document Definition Properties… menu.
- In the window that opens, go to the .Net References tab. Click Add… and add the libraries from the ABBYY FlexiCapture Connector for Appian distribution package as Attached file:
- AfcDmsConnector.dll
- AppianConnector.dll
- DmsConnector.dll
- Newtonsoft.Json.dll
- Apply the changes and save the Document Definition.
- Go to the Document Definition → Export settings… menu to create an export profile for Appian.
- Click Add…. A wizard for creating a new export profile opens.
- On the first step, select Type: Custom export (script) and the profile application condition, for example, Document condition: Errors are irrelevant. Click Next.
- In the next window, click Edit script….
- In the Script editor window that opens, select Script language C# .Net and paste the ExportScript - Appian - Configure by script.cs script from the Samples folder of the ABBYY FlexiCapture Connector for Appian distribution package.
- In the script, set the export settings:
- The address of the Appian server:
connectorSettings.DmsConnectionSettings.Server = “computername.domain.com:8080”; - Repository contains Knowledge Center ID in Appian:
connectorSettings.DmsConnectionSettings.Repository = “6209”; - Specify username and password of Appian user.
- Set the name of the folder that will be created in the Appian system:
connectorSettings.DmsDocumentDestination.FolderPath = Document.BatchName; - Specify the Record type in Appian:
connectorSettings.MappedFields.DmsMetadataTemplate.Name = “CreateRecord”; - Set up the field mapping. To map a field from the FlexiCapture document definition to a field from the Appian Record Type, create a field pair:
fieldPairs.Add(@“FlexiCapture Document Definition Section\Number”, “Document”);
where the first value before the comma is the field name in the FlexiCapture document definition, and the second is the field name in Appian. - Set the image file export settings IExportImageSavingOptions.
- The address of the Appian server:
- Save the changes and close the Script editor, and then click Next.
- On the next step, enter the name of the new export profile. For example, Export to Appian. Click Finish.
- In the list of export profiles, mark the new profile as Enabled.
- Save the changes in the document definition, close the Document Definition Editor window, and publish the new version of the document definition.
