Skip to main content
Specify the options used for export in the XML configuration file or in the script, depending on how you chose to configure your export settings. The options cover the connection parameters for UiPath Orchestrator, the output image options, the method of naming export files, and the field mapping.

UiPath Orchestrator connection settings

With UiPath Cloud Platform, an old account from UiPath Community Orchestrator has to be migrated to the new authentication method first, by resetting the password. For more information, see Consuming APIs with the new cloud Orchestrator.

Server address examples

For UiPath Enterprise Orchestrator, specify the address of the Orchestrator web application:
For UiPath Cloud Platform Orchestrator, specify the following server address:

Repository example

For UiPath Cloud Platform, specify your service name:
To find the name of an available service, open your UiPath Cloud Platform account and navigate to the Services tab.
Screenshot of the Services tab in a UiPath Cloud Platform account, listing the available services whose name is used as the Repository option value.

Required Orchestrator user roles

Assign the following roles to the user in Orchestrator: view queues, create transactions, and view units.
Screenshot of the role editing page in UiPath Orchestrator, showing the View permission selected for Queues, the Create permission selected for Transactions, and the View permission selected for Units.

Export file names

In the FileName field, specify the template used to generate the names of the export files. The <FileNameWithoutExtension> tag works when the image was received from the UiPath activity, because the batch then holds this registration parameter with the name of the source image file.

Orchestrator queue name

In the DmsMetadataTemplate.Name field, specify the Orchestrator queue name:
After the export script runs, a new transaction with the data is created in this queue. Create the queue in Orchestrator.
Screenshot of the queue creation dialog box in UiPath Orchestrator, where the queue name entered here must match the DmsMetadataTemplate.Name value in the export settings.

Output image options

The ExportImageSavingOptions option covers the settings available for output images, such as the image format options and the ability to redact fields holding confidential information. For more information, see IExportImageSavingOptions.

Field mapping

Map the fields to export the recognized metadata. For each Document Definition field whose value you want to export, specify its name in the transaction. Only the Document Definition fields that have been mapped are exported to the transaction. Any number of fields can be mapped. If you configure export options using a script, the field pair must be in the following format:
If you configure export options using XML, the field pair must be in the following format:
In both formats, the first value is the full path to the field in the ABBYY FlexiCapture Document Definition, and the second value is the name of the field in the UiPath Orchestrator transaction. You can choose any name for the field in the transaction. Fields with the specified names are created in the transaction at runtime.

Additional UiPath export options

Specify additional UiPath export settings using the DmsSpecificOptions property. In each of the following code samples, the first attribute is the option name and the second attribute is the option value.

AuthenticationType

AuthenticationType sets the authentication type used when logging in to UiPath Orchestrator. It has only two values, Basic and OAuth2. For UiPath Cloud Platform Orchestrator, this option is required and its value must be OAuth2. For UiPath Enterprise Orchestrator, the option is not required, and its value is Basic.

Reference

Reference specifies a reference to use when creating a transaction. Specify Document.Batch.Id.ToString() as the value to use the batch identifier as the reference.

OrganizationUnitName

OrganizationUnitName exports the processing results to the specified Orchestrator organization unit. This option is available only for UiPath Enterprise Orchestrator, and the Organization Unit feature has to be enabled in Orchestrator. Specify the name of the organization unit as the option value.

AccountLogicalName

AccountLogicalName specifies which UiPath Cloud Platform account the processing results are exported to. Use it when several UiPath Cloud Platform accounts are available to the user. This option is available only for UiPath Cloud Platform Orchestrator. The account logical name is the editable part of the Orchestrator site URL in the Orchestrator Account Settings. It is also visible in the browser’s address bar after you log in to your account.
Screenshot of the Account Settings page in UiPath Orchestrator, showing the Orchestrator site URL whose editable part is the account logical name.

Several options in one script

To use several options in a single export script, list them as elements of the Option array, separated by commas:

Saving document images

The SaveDocumentImages option indicates whether image files are saved to a UiPath Orchestrator transaction. Set it to true to save images, or to false to save none.

Reference files

Examples of setting up the export options are in the \Single-task package\Samples\FlexiCapture Scripts folder of the connector installation path. Look for the files named default.config.xml and UiPath - ExportScript - Configure by script (Attended service).cs.