> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieving the Matched Section Variant

Sometimes you need to get the section variant that was matched to a particular document, for example, if you are going to [train field extraction](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/fieldsextractiontraining.md) for different variants.

The matched section variants are not accessible via ABBYY FlexiCapture SDK API. To work around this, you can configure your Document Definition in FlexiCapture Developer's Package, adding a service field that will return the data set record for the section variant. Consult [ABBYY FlexiCapture online help](http://help.abbyy.com/en-us/flexicapture/12/distributed_administrator/fieldtraining_servicefield) for details.

A sample project with a Document Definition that contains a service field of this type can be found in %ProgramData%\ABBYY\FCSDK\12\FlexiCapture SDK **\Samples\FieldsExtractionWorkingPlace**. It is used in the [Fields Extraction Training](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/samples.md#fieldsextractiontraining) code sample.

## See also

[Document Classification Training](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/documentclassificationtraining.md)

[Fields Extraction Training](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/fieldsextractiontraining.md)
