We can use the rest api’s document
GET endpoint with filter criteria to search for specific documents. I learned that we can use all the fields provided in the
SEARCHMODEL, which contains for example
cabinets__label. Everything is working fine so far when using those fields with the filter
In some cases it would lead to better results when searching for a
document_type__id in stead of the labels, for example when having the same cabinet sub-structure for several cabinets with label duplicates:
Cabinets -> Project A -> Invoices -> ... -> Project B -> Invoices -> Cad -> ...
So the Invoices-Cabinets have the same label but different ids of course. Is there any posibility to use the id fields (foreigns keys) together with the filter options in the documents GET api endpoint?