To retrieve all fields from a given agenda, you need to add the parameter detail=full.
The default detail level is detail=summary, which includes only the most important fields.
Detail=full is the way to list all fields. However, all fields are usually not needed in the output. Your application will load a large amount of data this way, while only some of it will actually be used. The fields that your application will process are already known in advance. There is therefore no reason to use detail=full.
The right question to ask is: how do I retrieve all the fields I need in the output? The answer is to use the detail=custom:… parameter, which allows you to list the specific fields you want ABRA Flexi to return.
Using detail=custom can also help you speed up ABRA Flexi response times. Objects that you do not specify will not be loaded from the database, which eliminates many SQL queries. In addition to faster responses from ABRA Flexi, the memory usage of your application will also be reduced, as it will not need to hold such large responses in memory.
To find out what fields a given agenda provides, the simplest and most convenient option is to use /properties (e.g. https://demo.flexibee.eu/c/demo/faktura-vydana/properties).
In this output, you will learn what values individual fields can hold. For relational objects, you will find out which agenda they reference, and importantly, whether the field will be considered during XML import.
Example:
https://demo.flexibee.eu/c/demo/faktura-vydana.xml – detail=summary https://demo.flexibee.eu/c/demo/faktura-vydana.xml?detail=full – detail=full https://demo.flexibee.eu/c/demo/faktura-vydana.xml?detail=custom:id,typDokl,nazFirmy,sumCelkem,zbyvaUhradit – detail=custom, který vrací jen potřebná pole
