- On the Project Setup Station open your FC project.
- Click Project → Document Definitions… to open the list of Document Definitions available for the project, select the Document Definition for which you want to specify new export settings, and click Edit…
- Click Document Definition → Export Settings…
- Click the Add… button to start the export profile creation wizard.
- In the Select the Type of Destination step, select Custom export (script) from the Type drop-down list. Leave the other settings unchanged or modify them as described in FC Help. Click Next.
- In the Script Export step, click the Edit Script… button, select Script Language: C# .Net, and paste into the script editor one of the two sample scripts that are available in the Samples folder in the UiPath Connector distribution package: UiPath - ExportScript - Configure by script (Attended service).cs (please see Using a script to specify export settings for details) or UiPath - ExportScript - Configure by XML (Attended service).cs (please see Using an XML file to specify export settings for details). For a detailed description of the export options, see Specifying export options.
- In the Select the Destination Name step, specify a name for your export profile and click Finish.
- The newly created export profile will appear in the list of available export profiles in the export setup dialog box. To make ABBYY FlexiCapture use this profile on Export stage, select the box next to the profile in the Enabled column.
- Click OK and close the Document Definition editor. Next, click the Publish button to publish your Document Definition.
Using an XML file to specify export settings
The advantage of using an XML file is that you don’t have to edit the script code or the Document Definition. All modifications can be made by editing the XML file, which is much simpler than editing the script code. However, the XML file should be located on every FC Processing Station. And you will also have to synchronize it manually on all of the FC stations from which data is to be exported to UiPath. To specify export settings in an XML file:- Create an export script in the document definition that contains the sample script UiPath - ExportScript - Configure by XML (Attended service).cs. This script gets the export settings from the XML file.
- Create such an XML file named <Project name>_<Document Definition name>.xml. This naming scheme will allow you to have multiple XML files for different Document Definitions.
- In the registry of the computer with ABBYY FlexiCapture Processing Station, locate HKEY_LOCAL_MACHINE\SOFTWARE\ABBYY\FlexiCapture\12.0\Connectors\UiPath. Create new string value and name it “XmlFolder”. Then in its value data field specify the path to the folder in which the XML file with export settings was created.
- In the registry of the computer with ABBYY FlexiCapture Processing Station, locate the HKEY_LOCAL_MACHINE\SOFTWARE\ABBYY\FlexiCapture\12.0\Connectors\ and create new string value and name it “UiPath”. Set its value data field as true.
Note: If you do not have the necessary keys in the HKEY_LOCAL_MACHINE \ SOFTWARE registry branch, create them.
Note: As an example of a configuration XML file with detailed comments, please see default.config.xml file that is located in the Sample folder in the UIPATH distribution package.
Note: In the code of UiPath - ExportScript - Configure by XML (Attended service).cs, you can also find some other possible naming schemes for your XML files.
