I would like to through the API get a list of all proposals (and later orders and invoices) where the fk_project has a specific value (in my current usecase that value is 6 and I knwo it before hand)
I tried setting the sqlfilter to (t.fk_project:=:6)
/dolibarr/api/index.php/orders?sortfield=t.rowid&sortorder=ASC&limit=100&sqlfilters=(t.fk_project%3A%3D%3A6)
But that column apparently does not exist even though I can see that when I extract the json for a order or proposal or invoice that has a project value set.
{
"error": {
"code": 503,
"message": "Service Unavailable: Error when retrieve commande list : Unknown column 't.fk_project' in 'where clause'"
},
"debug": {
"source": "api_orders.class.php:251 at call stage",
"stages": {
"success": [
"get",
"route",
"negotiate",
"authenticate",
"validate"
],
"failure": [
"call",
"message"
]
}
}
}