Hi.
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 document_type__label
or cabinets__label
. Everything is working fine so far when using those fields with the filter https://.../api/v4/documents/?filter_document_type__label=...
In some cases it would lead to better results when searching for a cabinet__id
or 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?
Best regards,
Torsten